:root{
  --btp-gold:#d7a332;
  --btp-gold-2:#f0cb78;
  --btp-gold-soft:#fbf2df;
  --btp-navy:#1e2e45;
  --btp-navy-2:#273955;
  --btp-charcoal:#243142;
  --btp-ink:#11202f;
  --btp-gray:#687585;
  --btp-gray-2:#8d97a3;
  --btp-bg:#f4f4f1;
  --btp-surface:#ffffff;
  --btp-surface-2:#fbfbfa;
  --btp-border:#e7e8ea;
  --btp-green:#1f8a59;
  --btp-red:#c85c5c;
  --btp-shadow:0 18px 45px rgba(20,31,48,.08);
  --btp-shadow-soft:0 10px 26px rgba(20,31,48,.05);
}

html,body{max-width:100%;overflow-x:hidden}
body:has(.btp-app), body:has(.btp-login-shell){background:var(--btp-bg)!important}
body:has(.btp-app) #wpadminbar, body:has(.btp-login-shell) #wpadminbar{display:none!important}
body:has(.btp-app), body:has(.btp-login-shell){margin-top:0!important;padding-top:0!important}
.btp-app, .btp-login-shell{font-family:Inter,Montserrat,Arial,sans-serif;color:var(--btp-charcoal)}
.btp-app *,.btp-login-shell *{box-sizing:border-box}
.btp-app button,.btp-app input,.btp-app select,.btp-app textarea,.btp-login-shell button,.btp-login-shell input{font:inherit}

/* Login */
.btp-login-shell{min-height:100vh;padding:32px;background:
 radial-gradient(circle at top right, rgba(215,163,50,.20), transparent 23%),
 linear-gradient(180deg, #f7f6f2 0%, #f2f1ec 100%);display:flex;align-items:center;justify-content:center}
.btp-login-card{width:min(520px,100%);background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.75);box-shadow:0 30px 80px rgba(24,36,53,.12);border-radius:32px;padding:34px 32px;position:relative;overflow:hidden}
.btp-login-card:before,.btp-login-card:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.btp-login-card:before{width:220px;height:220px;background:rgba(215,163,50,.10);right:-90px;top:-110px}
.btp-login-card:after{width:180px;height:180px;background:rgba(30,46,69,.05);left:-70px;bottom:-90px}
.btp-login-brand,.btp-brand{display:flex;align-items:flex-end;gap:3px;position:relative;z-index:1}
.btp-brand-wrap{margin-bottom:24px}
.btp-brand-tag{margin:14px 2px 0;color:#d9dfe6;font-size:12px;line-height:1.5}
.btp-brand-script{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:46px;line-height:.82;color:var(--btp-gold);letter-spacing:-4px;text-shadow:0 4px 15px rgba(215,163,50,.22)}
.btp-brand-name{font-size:24px;font-weight:500;color:inherit}
.btp-login-brand small,.btp-brand small{display:block;font-size:13px;margin:0 0 -16px -66px;letter-spacing:.06em;color:#9aa6b3}
.btp-login-kicker{display:inline-block;font-size:12px;letter-spacing:.18em;color:#9b6a00;font-weight:800;margin:18px 0 10px;position:relative;z-index:1}
.btp-login-card h2{margin:0 0 10px;color:var(--btp-ink);font-size:34px;line-height:1.08;position:relative;z-index:1}
.btp-login-card p{margin:0 0 24px;color:var(--btp-gray);line-height:1.7;position:relative;z-index:1}
.btp-login-error{position:relative;z-index:1;background:#fff0f0;border:1px solid #efc9c9;color:#a84b4b;padding:12px 14px;border-radius:16px;margin-bottom:16px}
.btp-login-form{display:grid;gap:14px;position:relative;z-index:1}
.btp-login-form label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#556373}
.btp-login-form input[type="text"],.btp-login-form input[type="password"]{height:54px;border:1px solid var(--btp-border);background:#fff;border-radius:16px;padding:0 16px;outline:none;color:var(--btp-charcoal)}
.btp-login-form input[type="text"]:focus,.btp-login-form input[type="password"]:focus{border-color:rgba(215,163,50,.75);box-shadow:0 0 0 4px rgba(215,163,50,.14)}
.btp-check{display:flex!important;align-items:center;gap:10px;font-weight:500!important}
.btp-check input{width:18px;height:18px}
.btp-login-links{margin-top:18px;position:relative;z-index:1}
.btp-login-links a{color:var(--btp-navy);font-weight:600;text-decoration:none}

/* App layout */
.btp-app{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh;background:var(--btp-bg);color:var(--btp-charcoal)}
.btp-sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#162231 0%, #1f2f46 60%, #243550 100%);padding:28px 20px;display:flex;flex-direction:column;color:#fff;box-shadow:24px 0 60px rgba(16,25,38,.14);z-index:5;border-right:1px solid rgba(255,255,255,.05)}
.btp-sidebar:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(240,203,120,.04), transparent 22%);pointer-events:none}
.btp-sidebar nav{display:grid;gap:8px;position:relative;z-index:1}
.btp-sidebar nav button{border:0;background:transparent;color:#d3dae2;padding:13px 14px;border-radius:16px;text-align:left;cursor:pointer;display:flex;gap:12px;align-items:center;transition:.24s;letter-spacing:.01em}
.btp-sidebar nav button:hover,.btp-sidebar nav button.is-active{background:rgba(255,255,255,.08);color:#fff;box-shadow:inset 0 0 0 1px rgba(240,203,120,.14)}
.btp-sidebar nav button.is-active{background:linear-gradient(90deg, rgba(215,163,50,.22), rgba(215,163,50,.12));box-shadow:inset 3px 0 0 var(--btp-gold), inset 0 0 0 1px rgba(240,203,120,.20)}
.btp-sidebar-foot{margin-top:auto;font-size:12px;color:#95a2b2;padding:14px 8px 6px;position:relative;z-index:1}
.btp-main{padding:28px 32px 56px;min-width:0}
.btp-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:26px}
.btp-topbar h1{margin:0;color:var(--btp-ink);font-size:22px;letter-spacing:-.02em}.btp-topbar p{margin:5px 0 0;color:#8a939f;font-size:13px}
.btp-userbox{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.btp-usercard{display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.78);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.55);padding:10px 14px;border-radius:18px;box-shadow:var(--btp-shadow-soft)}
.btp-useravatar{display:inline-flex;width:40px;height:40px;border-radius:14px;align-items:center;justify-content:center;background:linear-gradient(180deg,#fffaf0,#f4e4b9);border:1px solid rgba(215,163,50,.22);font-weight:800;color:#8a630a}
.btp-usertext{min-width:0}
.btp-usertext strong{display:block;color:var(--btp-navy);max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btp-usertext small{display:block;color:#8c97a4;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.btp-view{display:none}.btp-view.is-active{display:block}
.btp-hero{background:linear-gradient(135deg,rgba(255,255,255,.96) 0%, rgba(255,255,255,.92) 62%, rgba(251,242,223,.94) 100%);border:1px solid rgba(255,255,255,.6);border-radius:30px;padding:30px;display:flex;justify-content:space-between;gap:28px;align-items:center;box-shadow:var(--btp-shadow);position:relative;overflow:hidden}.btp-hero:before{content:"";position:absolute;width:460px;height:460px;border-radius:50%;right:-260px;top:-220px;background:radial-gradient(circle, rgba(215,163,50,.18), rgba(215,163,50,0) 65%)}.btp-hero:after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(215,163,50,.10);right:-45px;bottom:-70px}
.btp-hero span,.btp-section-head span{font-size:12px;letter-spacing:.20em;color:#9b6a00;font-weight:800}.btp-hero h2,.btp-section-head h2{margin:10px 0 10px;color:var(--btp-ink);font-size:34px;line-height:1.06;letter-spacing:-.03em}.btp-hero p,.btp-section-head p{margin:0;color:var(--btp-gray);line-height:1.7;max-width:760px}
.btp-goal{min-width:300px;background:rgba(255,255,255,.8);border:1px solid rgba(255,255,255,.55);backdrop-filter:blur(10px);border-radius:24px;padding:20px 22px;z-index:1;box-shadow:var(--btp-shadow-soft)}.btp-goal strong{font-size:34px;color:var(--btp-ink);display:block}.btp-goal small{color:#8a939f}.btp-goal em{display:block;margin-top:12px;color:#74808f;font-style:normal;font-size:13px}
.btp-progress{height:10px;background:#eceff2;border-radius:20px;margin-top:16px;overflow:hidden}.btp-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--btp-gold),var(--btp-gold-2));border-radius:20px;box-shadow:0 4px 12px rgba(215,163,50,.3)}

.btp-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}.btp-cards article,.btp-panel,.btp-message-card{background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9));border:1px solid rgba(255,255,255,.62);border-radius:24px;box-shadow:var(--btp-shadow-soft)}
.btp-cards article{padding:22px}.btp-cards article span{display:block;color:#7c8794;font-size:13px}.btp-cards article strong{display:block;color:var(--btp-ink);font-size:30px;margin:8px 0 6px;letter-spacing:-.03em}.btp-cards article small{color:#9aa3ad}.btp-cards-finance article:nth-child(1){box-shadow:inset 0 3px 0 var(--btp-green), var(--btp-shadow-soft)}.btp-cards-finance article:nth-child(2){box-shadow:inset 0 3px 0 var(--btp-red), var(--btp-shadow-soft)}.btp-cards-finance article:nth-child(3),.btp-cards-finance article:nth-child(4){box-shadow:inset 0 3px 0 var(--btp-gold), var(--btp-shadow-soft)}

.btp-section-head{display:flex;justify-content:space-between;align-items:flex-end;margin:8px 0 18px}.btp-section-head h2{font-size:26px}.btp-panel{padding:24px;margin-bottom:18px}.btp-table-panel{padding:0;overflow:hidden}.btp-table-panel .btp-section-head{padding:24px 24px 0}.btp-table-wrap{overflow:auto;padding-bottom:4px}
.btp-table{width:100%;border-collapse:collapse;min-width:860px}.btp-table th{font-size:12px;letter-spacing:.10em;text-transform:uppercase;color:#929ca7;background:#f8f8f8;padding:14px 16px;text-align:left;border-top:1px solid #eceef0;border-bottom:1px solid #eceef0}.btp-table td{padding:15px 16px;border-bottom:1px solid #eff1f3;vertical-align:middle;background:transparent}.btp-table tr:hover td{background:rgba(251,242,223,.18)}.btp-table td strong,.btp-table td small{display:block}.btp-table td small{color:#8d97a3;margin-top:4px}.btp-table a{color:#8a630a;text-decoration:none;font-weight:700}
.btp-empty{text-align:center;padding:38px 18px!important;color:#7d8792}.btp-empty strong{display:block;font-size:18px;color:var(--btp-ink);margin-bottom:8px}.btp-empty small{display:block;color:#97a1ab;max-width:430px;margin:0 auto;line-height:1.6}
.btp-score{display:inline-flex;width:44px;height:44px;border-radius:14px;align-items:center;justify-content:center;font-weight:800;letter-spacing:-.02em}.btp-score.hot{background:#fff0e7;color:#b95c30}.btp-score.warm{background:#fff7df;color:#9a6a00}.btp-score.cool{background:#eff2f5;color:#627181}.btp-badge{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.04em}.btp-badge.danger{background:#fff0f0;color:#b64e4e}.btp-status{border:1px solid #dfe4e8;border-radius:12px;padding:9px 10px;background:#fff;color:#3d4751;min-width:130px}

.btp-app .btp-mini,.btp-app .btp-primary,.btp-login-shell .btp-primary,.btp-app .btp-ghost{appearance:none;-webkit-appearance:none;border:0;cursor:pointer;border-radius:14px;font-weight:700;transition:.22s;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.btp-app .btp-mini{padding:9px 12px;background:#f3f4f6;color:#34404d;border:1px solid #e6e8eb}.btp-app .btp-mini:hover{background:#eceff2}
.btp-app .btp-primary,.btp-login-shell .btp-primary{padding:14px 18px;background:linear-gradient(180deg,var(--btp-gold-2),var(--btp-gold))!important;color:#182331!important;border:1px solid rgba(186,132,11,.08)!important;box-shadow:0 12px 28px rgba(215,163,50,.22)}
.btp-app .btp-primary:hover,.btp-login-shell .btp-primary:hover,.btp-app .btp-ghost:hover{transform:translateY(-1px);filter:brightness(.98)}
.btp-app .btp-ghost{padding:12px 16px;background:rgba(255,255,255,.84);color:var(--btp-navy);border:1px solid rgba(255,255,255,.65);box-shadow:var(--btp-shadow-soft)}

.btp-form-grid{display:grid;grid-template-columns:2fr 2fr 1fr auto;gap:14px;align-items:end}.btp-form-grid label{display:grid;gap:8px;font-size:12px;font-weight:800;color:#606b77}.btp-form-grid label.wide{grid-column:1/-1}.btp-form-grid input,.btp-form-grid select,.btp-form-grid textarea{width:100%;height:52px;border:1px solid #dde2e7;background:#fff;border-radius:16px;padding:0 14px;color:#2f3945;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}.btp-form-grid textarea{height:auto;min-height:120px;padding:12px 14px}.btp-form-grid input:focus,.btp-form-grid select:focus,.btp-form-grid textarea:focus{border-color:rgba(215,163,50,.75);box-shadow:0 0 0 4px rgba(215,163,50,.12)}.btp-form-grid small{font-weight:500;color:#8c949c;line-height:1.5}
.btp-feedback{margin-top:10px;font-size:13px;color:#6c7580}.btp-feedback.success{color:var(--btp-green)}.btp-feedback.error{color:var(--btp-red)}

.btp-pipeline{display:grid;grid-template-columns:repeat(6,minmax(220px,1fr));gap:14px;overflow:auto;padding-bottom:8px}.btp-pipe-col{background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.55);border-radius:22px;padding:12px;min-height:360px;box-shadow:var(--btp-shadow-soft)}.btp-pipe-col h3{margin:4px 6px 14px;font-size:13px;color:#64707d;text-transform:uppercase;letter-spacing:.10em;display:flex;align-items:center;justify-content:space-between;gap:10px}.btp-pipe-col h3 em{font-style:normal;color:#9aa5b1;font-size:12px}.btp-pipe-col article{background:#fff;border:1px solid #e3e7eb;border-radius:18px;padding:12px;margin-bottom:10px;box-shadow:0 6px 16px rgba(37,49,66,.04)}.btp-pipe-col article strong,.btp-pipe-col article small{display:block;margin-top:7px}.btp-pipe-col article small{color:#8c949d}.btp-pipe-col .btp-score{width:36px;height:36px;font-size:12px}.btp-pipe-empty{min-height:160px;display:flex;align-items:center;justify-content:center;text-align:center;color:#95a0aa;font-size:14px;border:1px dashed #dfe4ea;border-radius:16px;background:rgba(255,255,255,.46);padding:12px}

.btp-message-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.btp-message-card{padding:22px}.btp-message-card>span{font-size:12px;letter-spacing:.16em;color:#a56f00;font-weight:800}.btp-message-card h3{margin:10px 0 12px;color:var(--btp-ink)}.btp-message-card pre{white-space:pre-wrap;word-break:break-word;font-family:inherit;color:#55626e;line-height:1.62;background:#fafbfc;border:1px solid #eef1f3;border-radius:16px;padding:15px;max-height:240px;overflow:auto}

.btp-modal{position:fixed;inset:0;background:rgba(16,23,33,.55);display:none;align-items:center;justify-content:center;padding:20px;z-index:99999}.btp-modal.is-open{display:flex}.btp-modal-card{width:min(760px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:28px;padding:24px;position:relative;box-shadow:0 30px 90px rgba(20,29,40,.28)}.btp-modal-close{position:absolute;right:16px;top:14px;width:40px;height:40px;border:0;border-radius:50%;background:#f1f3f5;cursor:pointer;font-size:24px}.btp-lead-detail h2{margin-top:0;color:var(--btp-ink)}.btp-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.btp-detail-grid div{background:#fafbfc;border:1px solid #edf0f2;border-radius:16px;padding:13px}.btp-detail-grid span{display:block;font-size:12px;color:#89929d;text-transform:uppercase;letter-spacing:.08em}.btp-detail-grid strong{display:block;margin-top:5px}.btp-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.btp-evidence{margin-top:18px;background:#fff9e9;border:1px solid #f9e2a5;border-radius:18px;padding:14px}.btp-evidence ul{margin:8px 0 0 18px;padding:0}.btp-outcome-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.btp-outcome-form input,.btp-outcome-form select{border:1px solid #dde2e6;border-radius:12px;padding:11px;height:48px}.btp-outcome-form .wide{grid-column:1/-1}

@media (max-width:1180px){
  .btp-app{grid-template-columns:92px minmax(0,1fr)}
  .btp-sidebar{padding:24px 12px}
  .btp-brand-name,.btp-brand small,.btp-sidebar nav span,.btp-sidebar-foot,.btp-brand-tag{display:none}
  .btp-brand{justify-content:center}
  .btp-brand-script{font-size:40px}
  .btp-sidebar nav button{justify-content:center;font-size:20px;padding:13px 10px}
  .btp-cards{grid-template-columns:repeat(2,1fr)}
  .btp-form-grid{grid-template-columns:1fr 1fr}
  .btp-form-grid .btp-primary{grid-column:1/-1}
  .btp-message-grid{grid-template-columns:1fr}
}

@media (max-width:860px){
  .btp-main{padding:22px 18px 102px}
  .btp-topbar{flex-direction:column;align-items:stretch}
  .btp-userbox{justify-content:space-between}
  .btp-hero{padding:24px;flex-direction:column;align-items:flex-start}
  .btp-goal{width:100%;min-width:0}
  .btp-detail-grid,.btp-outcome-form{grid-template-columns:1fr}
}

@media (max-width:720px){
  .btp-app{display:block}
  .btp-sidebar{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;height:auto;padding:8px 10px 12px;z-index:50;border-right:0;border-top:1px solid rgba(255,255,255,.06);box-shadow:0 -18px 40px rgba(20,29,40,.18)}
  .btp-brand,.btp-sidebar-foot{display:none}
  .btp-sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:auto;gap:8px}
  .btp-sidebar nav button{min-width:0;padding:11px 6px 12px;border-radius:18px;font-size:18px;display:flex;flex-direction:column;gap:3px;line-height:1.05}
  .btp-sidebar nav span{display:block!important;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .btp-main{padding:18px 14px 112px}
  .btp-topbar h1{font-size:18px}
  .btp-topbar p{font-size:12px}
  .btp-userbox{align-items:stretch;gap:10px}
  .btp-usercard{flex:1;min-width:0}
  .btp-usertext strong,.btp-usertext small{max-width:150px}
  .btp-app .btp-ghost{padding:12px 14px}
  .btp-hero h2,.btp-section-head h2{font-size:22px}
  .btp-section-head{margin-bottom:14px}
  .btp-cards{grid-template-columns:1fr;gap:14px}
  .btp-panel{padding:18px}
  .btp-form-grid{grid-template-columns:1fr}
  .btp-table{min-width:660px}
  .btp-pipeline{grid-template-columns:repeat(6,74vw);gap:10px}
  .btp-pipe-col{min-height:260px}
  .btp-pipe-empty{min-height:110px}
  .btp-login-shell{padding:18px}
  .btp-login-card{padding:28px 22px;border-radius:26px}
  .btp-login-card h2{font-size:28px}
}

@media (max-width:420px){
  .btp-topbar-copy h1{max-width:220px}
  .btp-usertext strong,.btp-usertext small{max-width:120px}
  .btp-hero{padding:20px}
  .btp-goal strong,.btp-cards article strong{font-size:24px}
  .btp-sidebar nav{gap:6px}
  .btp-sidebar nav button{padding:10px 4px}
}

/* v0.3 app-shell isolation and premium mobile behavior */
.btp-shell-body{margin:0!important;min-height:100vh;background:var(--btp-bg)!important}
.btp-shell-main{min-height:100vh}
.btp-main>.btp-topbar,.btp-main>.btp-view{width:min(100%,1600px);margin-left:auto;margin-right:auto}
.btp-main>.btp-topbar{margin-bottom:26px}
.btp-login-notice{position:relative;z-index:1;padding:13px 14px;border-radius:16px;margin-bottom:16px;font-size:14px;line-height:1.5}
.btp-login-notice.error{background:#fff0f0;border:1px solid #efc9c9;color:#a84b4b}
.btp-login-notice.success{background:#eef9f2;border:1px solid #c6e6d1;color:#277046}
.btp-mobile-more-toggle{display:none!important}
.btp-nav-more{display:contents}

@media (max-width:720px){
  .btp-main>.btp-topbar,.btp-main>.btp-view{width:100%}
  .btp-sidebar nav.btp-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;overflow:visible}
  .btp-mobile-more-toggle{display:flex!important}
  .btp-nav-more{display:none;position:fixed;left:14px;right:14px;bottom:86px;padding:12px;background:rgba(22,34,49,.98);border:1px solid rgba(240,203,120,.16);border-radius:22px;box-shadow:0 24px 60px rgba(10,18,28,.28);grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;z-index:60}
  .btp-nav.is-more-open .btp-nav-more{display:grid}
  .btp-nav-more button{min-height:58px!important;flex-direction:row!important;justify-content:flex-start!important;padding:12px 14px!important;font-size:16px!important}
  .btp-nav-more button span{font-size:12px!important;white-space:normal!important;text-align:left}

  .btp-table-wrap{overflow:visible;padding:0 14px 14px}
  .btp-table{min-width:0;width:100%;display:block;border-collapse:separate}
  .btp-table thead{display:none}
  .btp-table tbody{display:grid;gap:12px}
  .btp-table tbody tr{display:block;background:#fff;border:1px solid #ebedf0;border-radius:20px;padding:8px 14px;box-shadow:0 8px 22px rgba(20,31,48,.05)}
  .btp-table tbody tr:hover td{background:transparent}
  .btp-table tbody td{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:11px 0!important;border-bottom:1px solid #f0f2f4!important;text-align:right;background:transparent!important}
  .btp-table tbody td:last-child{border-bottom:0!important}
  .btp-table tbody td:before{content:attr(data-label);font-size:12px;letter-spacing:.10em;text-transform:uppercase;color:#9aa3ad;font-weight:800;text-align:left;flex:0 0 88px}
  .btp-table tbody td>strong,.btp-table tbody td>small,.btp-table tbody td>a,.btp-table tbody td>.btp-badge,.btp-table tbody td>.btp-score,.btp-table tbody td>.btp-status,.btp-table tbody td>.btp-mini{margin-left:auto}
  .btp-table tbody td small{margin-top:0}
  .btp-table tbody td[data-label="Empresa"]{align-items:flex-start}
  .btp-table tbody td[data-label="Empresa"] strong,.btp-table tbody td[data-label="Empresa"] small{max-width:180px}
  .btp-status{min-width:145px;max-width:170px}
  .btp-empty{display:block!important;padding:28px 12px!important;border:0!important;box-shadow:none!important;background:transparent!important;text-align:center!important}
  .btp-empty:before{display:none!important}

  .btp-pipeline{grid-template-columns:repeat(6,82vw);scroll-snap-type:x mandatory;gap:12px;padding:0 2px 10px}
  .btp-pipe-col{scroll-snap-align:start;min-height:230px;padding:12px}
  .btp-pipe-col:has(.btp-pipe-empty){min-height:190px}
  .btp-pipe-empty{min-height:90px}
}

@media(max-width:420px){
  .btp-sidebar nav.btp-nav{grid-template-columns:repeat(6,minmax(46px,1fr))}
  .btp-sidebar nav button span{font-size:12px}
  .btp-table tbody td:before{flex-basis:78px}
  .btp-table tbody td[data-label="Empresa"] strong,.btp-table tbody td[data-label="Empresa"] small{max-width:155px}
}

/* v0.4 — metas inteligentes, conta e refinamento visual */
.btp-usercard{appearance:none;-webkit-appearance:none;border:1px solid rgba(255,255,255,.55);cursor:pointer;text-align:left}
.btp-usercard:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(20,31,48,.08)}

.btp-settings-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:18px;align-items:start}
.btp-goal-calculator{grid-row:span 2;padding:28px;background:linear-gradient(145deg,#fff 0%,#fff 55%,#fbf2df 100%);position:relative;overflow:hidden}
.btp-goal-calculator:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;right:-110px;bottom:-130px;background:rgba(215,163,50,.11);pointer-events:none}
.btp-settings-card{padding:24px}
.btp-settings-title{position:relative;z-index:1;margin-bottom:20px}
.btp-settings-title>span{font-size:12px;letter-spacing:.18em;font-weight:800;color:#9b6a00}
.btp-settings-title h3{margin:8px 0 8px;color:var(--btp-ink);font-size:22px;letter-spacing:-.02em}
.btp-settings-title p{margin:0;color:var(--btp-gray);line-height:1.65;font-size:14px}
.btp-calc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;position:relative;z-index:1}
.btp-calc-grid label,.btp-field{display:grid;gap:8px;font-size:12px;font-weight:800;color:#606b77}
.btp-money-input{display:flex;align-items:center;min-width:0;height:56px;background:#fff;border:1px solid #dde2e7;border-radius:17px;overflow:hidden;transition:.2s}
.btp-money-input:focus-within{border-color:rgba(215,163,50,.75);box-shadow:0 0 0 4px rgba(215,163,50,.12)}
.btp-money-input span{padding-left:15px;font-weight:800;color:#8a630a}
.btp-money-input input{width:100%;height:100%;border:0!important;box-shadow:none!important;outline:0;background:transparent;padding:0 14px 0 8px;color:var(--btp-ink);font-size:19px;font-weight:800}
.btp-calc-result{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;align-items:end;column-gap:16px;background:linear-gradient(135deg,#18263a,#263a58);border-radius:24px;padding:22px 24px;color:#fff;box-shadow:0 18px 38px rgba(21,34,52,.16)}
.btp-calc-result small{grid-column:1/-1;color:#c9d2de;font-size:12px;margin-bottom:8px}
.btp-calc-result strong{font-size:54px;line-height:.9;color:#f0cb78;letter-spacing:-.05em}
.btp-calc-result span{font-size:17px;font-weight:700;padding-bottom:4px}
.btp-calc-result em{grid-column:1/-1;margin-top:12px;font-style:normal;color:#aab6c5;font-size:12px}
.btp-form-grid-compact{grid-template-columns:1fr 1fr;margin:0}
.btp-form-grid-compact label{min-width:0}
.btp-field input{width:100%;height:52px;border:1px solid #dde2e7;background:#fff;border-radius:16px;padding:0 14px;color:#2f3945;outline:none}
.btp-field input:focus{border-color:rgba(215,163,50,.75);box-shadow:0 0 0 4px rgba(215,163,50,.12)}
.btp-field small{font-weight:500;color:#8d97a3;line-height:1.5}
.btp-settings-savebar{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;border-radius:22px;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.7);box-shadow:var(--btp-shadow-soft);position:sticky;bottom:18px;z-index:12}
.btp-settings-savebar div{display:grid;gap:3px}.btp-settings-savebar strong{color:var(--btp-ink)}.btp-settings-savebar span{color:#8b95a0;font-size:13px}

.btp-profile-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px;align-items:start}
.btp-profile-form{padding:28px}
.btp-form-grid-profile{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:18px}
.btp-profile-divider{height:1px;background:#eceff1;margin:26px 0}
.btp-account-card{position:sticky;top:20px;text-align:center;padding:28px}
.btp-account-avatar{width:78px;height:78px;border-radius:24px;display:grid;place-items:center;margin:0 auto 16px;background:linear-gradient(180deg,#fff8e7,#f2dfab);border:1px solid rgba(215,163,50,.25);color:#855f09;font-size:28px;font-weight:900;box-shadow:0 12px 26px rgba(215,163,50,.15)}
.btp-account-card h3{margin:0;color:var(--btp-ink);font-size:22px}.btp-account-card>p{margin:7px 0 22px;color:#8b95a0;word-break:break-word}
.btp-account-meta{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-top:1px solid #edf0f2;text-align:left}.btp-account-meta span{color:#8c96a1;font-size:12px}.btp-account-meta strong{color:var(--btp-charcoal);font-size:13px;text-align:right}
.btp-account-note{padding:14px!important;margin:18px 0!important;border-radius:16px;background:#fbf6ea;color:#6c7480!important;font-size:12px;line-height:1.6;text-align:left}
.btp-logout-form{margin:0;padding:0;border:0;background:transparent}
.btp-topbar-logout-form{display:inline-flex;align-items:center;flex:0 0 auto}
.btp-account-logout-form{display:block;width:100%}
.btp-account-logout{width:100%}

/* Pipeline: mais elegante e sem aperto no desktop */
.btp-pipeline{grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:16px}
.btp-pipe-col{min-height:250px;background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(248,249,250,.76));border:1px solid rgba(255,255,255,.82);box-shadow:0 12px 28px rgba(20,31,48,.05)}
.btp-pipe-col h3{padding-bottom:10px;border-bottom:1px solid #edf0f2}
.btp-pipe-empty{min-height:115px;background:rgba(255,255,255,.5)}

/* Estado vazio mais compacto e sofisticado */
.btp-table-panel:has(.btp-empty){min-height:0}
.btp-table-panel:has(.btp-empty) .btp-table-wrap{padding-bottom:20px}
.btp-table-panel:has(.btp-empty) .btp-empty{padding:30px 20px!important}

@media(min-width:1900px){.btp-pipeline{grid-template-columns:repeat(6,minmax(0,1fr))}}

@media(max-width:980px){
  .btp-settings-layout,.btp-profile-grid{grid-template-columns:1fr}
  .btp-goal-calculator{grid-row:auto}
  .btp-account-card{position:static}
}

@media(max-width:720px){
  .btp-main{padding:14px 12px 104px}
  .btp-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:18px!important}
  .btp-topbar-copy h1{font-size:18px;max-width:none}.btp-topbar-copy p{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
  .btp-userbox{display:flex;align-items:center;gap:8px;justify-content:flex-end}
  .btp-usercard{padding:5px!important;width:44px;height:44px;border-radius:15px;flex:0 0 44px;justify-content:center}
  .btp-useravatar{width:34px;height:34px;border-radius:12px;font-size:13px}.btp-usertext{display:none}
  .btp-topbar .btp-ghost{display:none}

  .btp-hero{padding:20px;border-radius:24px}.btp-hero h2{font-size:25px}.btp-hero p{font-size:14px;line-height:1.55}
  .btp-goal{padding:17px;border-radius:19px}
  .btp-cards:not(.btp-cards-finance){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.btp-cards:not(.btp-cards-finance) article{padding:16px}.btp-cards:not(.btp-cards-finance) article strong{font-size:24px}.btp-cards:not(.btp-cards-finance) article span,.btp-cards:not(.btp-cards-finance) article small{font-size:12px}
  .btp-cards-finance{grid-template-columns:1fr;gap:10px}.btp-cards-finance article{padding:17px}.btp-cards-finance article strong{font-size:25px}

  .btp-table-panel{border-radius:22px}.btp-table-panel .btp-section-head{padding:18px 18px 8px}.btp-table-panel .btp-section-head h2{font-size:24px}.btp-table-panel .btp-section-head p{font-size:14px;line-height:1.55}
  .btp-table-wrap{padding:0 10px 10px}
  .btp-empty{padding:22px 8px!important}.btp-empty strong{font-size:17px}.btp-empty small{font-size:13px}

  .btp-sidebar nav button span{font-size:0!important}.btp-sidebar nav button span:after{content:attr(data-mobile);font-size:12px;line-height:1.1}
  .btp-nav-more button span{font-size:12px!important}.btp-nav-more button span:after{content:none!important}

  .btp-pipeline{display:flex;overflow-x:auto;gap:10px;width:100%;max-width:100%;padding:0 0 10px;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}
  .btp-pipe-col{flex:0 0 calc(100% - 30px);min-width:0;min-height:210px;scroll-snap-align:start;border-radius:20px}
  .btp-pipe-col:has(.btp-pipe-empty){min-height:180px}.btp-pipe-empty{min-height:86px}

  .btp-settings-layout{gap:12px}.btp-goal-calculator,.btp-settings-card,.btp-profile-form,.btp-account-card{padding:20px;border-radius:22px}
  .btp-settings-title h3{font-size:20px}.btp-settings-title p{font-size:13px}
  .btp-calc-grid{grid-template-columns:1fr;gap:12px}.btp-calc-result{grid-column:auto;padding:19px}.btp-calc-result strong{font-size:46px}
  .btp-form-grid-compact,.btp-form-grid-profile{grid-template-columns:1fr}
  .btp-settings-savebar{position:static;flex-direction:column;align-items:stretch;padding:16px}.btp-settings-savebar .btp-primary{width:100%}
  .btp-profile-grid{gap:12px}.btp-account-card{order:-1}.btp-account-avatar{width:64px;height:64px;border-radius:20px}
}

@media(max-width:380px){
  .btp-cards:not(.btp-cards-finance){grid-template-columns:1fr 1fr}
  .btp-sidebar nav.btp-nav{grid-template-columns:repeat(6,minmax(44px,1fr))}
  .btp-sidebar{padding-left:7px;padding-right:7px}
}

/* v0.5.0 — premium black & gold refinement */
:root{
  --btp-gold:#d6a34b;
  --btp-gold-2:#f2d38f;
  --btp-gold-3:#9f7324;
  --btp-gold-soft:#fbf4e4;
  --btp-obsidian:#0d1117;
  --btp-obsidian-2:#131922;
  --btp-obsidian-3:#1b2430;
  --btp-ink:#121a24;
  --btp-charcoal:#273241;
  --btp-gray:#6c7784;
  --btp-gray-2:#95a0ad;
  --btp-bg:#f5f3ef;
  --btp-surface:#ffffff;
  --btp-surface-2:#fcfbf8;
  --btp-border:#e5e1d9;
  --btp-border-strong:#d6d0c5;
  --btp-shadow:0 24px 64px rgba(12,16,24,.10);
  --btp-shadow-soft:0 16px 36px rgba(12,16,24,.07);
}

html{scrollbar-color:rgba(214,163,75,.75) rgba(15,17,23,.18);scrollbar-width:thin}
.btp-app,.btp-login-shell{position:relative;isolation:isolate}
.btp-app::selection,.btp-login-shell::selection{background:rgba(214,163,75,.22);color:var(--btp-ink)}
.btp-app,.btp-login-shell,.btp-app *,.btp-login-shell *{scrollbar-width:thin;scrollbar-color:rgba(214,163,75,.82) rgba(15,17,23,.14)}
.btp-app *::-webkit-scrollbar,.btp-login-shell *::-webkit-scrollbar{width:10px;height:10px}
.btp-app *::-webkit-scrollbar-track,.btp-login-shell *::-webkit-scrollbar-track{background:rgba(18,22,29,.12);border-radius:999px}
.btp-app *::-webkit-scrollbar-thumb,.btp-login-shell *::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--btp-gold-2),var(--btp-gold));border-radius:999px;border:2px solid transparent;background-clip:padding-box}
.btp-app *::-webkit-scrollbar-thumb:hover,.btp-login-shell *::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#f7dfaa,#cf9837)}

.btp-app{
  background:
    radial-gradient(circle at top right, rgba(214,163,75,.10), transparent 22%),
    radial-gradient(circle at bottom left, rgba(18,22,29,.05), transparent 24%),
    linear-gradient(180deg,#f8f7f3 0%, #f2f0eb 100%);
}
.btp-login-shell{
  background:
    radial-gradient(circle at top right, rgba(214,163,75,.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(18,22,29,.07), transparent 30%),
    linear-gradient(180deg,#f7f6f2 0%,#efede7 100%);
}

.btp-app button,
.btp-app input,
.btp-app select,
.btp-app textarea,
.btp-login-shell button,
.btp-login-shell input,
.btp-login-shell select,
.btp-login-shell textarea{
  font:inherit;
  color:inherit;
}
.btp-app input:-webkit-autofill,
.btp-app textarea:-webkit-autofill,
.btp-app select:-webkit-autofill,
.btp-login-shell input:-webkit-autofill,
.btp-login-shell textarea:-webkit-autofill,
.btp-login-shell select:-webkit-autofill{
  -webkit-text-fill-color:var(--btp-ink);
  -webkit-box-shadow:0 0 0 1000px #fff inset;
  transition:background-color 9999s ease-in-out 0s;
}

/* premium logo */
.btp-brand,
.btp-login-brand{display:flex;align-items:center;gap:14px}
.btp-brand--login{margin-bottom:6px}
.btp-brand-emblem{
  width:48px;height:48px;border-radius:16px;display:grid;place-items:center;position:relative;flex:0 0 48px;
  background:linear-gradient(180deg,#f7e3b3 0%, #d39b34 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 16px 34px rgba(177,122,22,.18);
}
.btp-brand-emblem::after{
  content:"";position:absolute;inset:1px;border-radius:15px;border:1px solid rgba(35,26,10,.14)
}
.btp-brand-emblem-core{font-family:Georgia,'Times New Roman',serif;font-size:28px;font-style:italic;font-weight:700;line-height:1;color:#18130c;text-shadow:0 1px 0 rgba(255,255,255,.3)}
.btp-brand-lockup{display:grid;gap:3px;min-width:0}
.btp-brand-line{display:flex;align-items:flex-end;gap:2px;line-height:1}
.btp-brand-script{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:42px;line-height:.8;color:#d8a33a;letter-spacing:-3px;text-shadow:0 6px 18px rgba(214,163,75,.20)}
.btp-brand-name{font-size:24px;font-weight:600;letter-spacing:-.03em;color:inherit}
.btp-brand-lockup small,
.btp-login-brand small,
.btp-brand small{display:block;margin:0;color:#a0adba;font-size:12px;letter-spacing:.26em;text-transform:uppercase}
.btp-brand-wrap{margin-bottom:28px}
.btp-brand-tag{margin:16px 2px 0;color:#9aa7b7;font-size:12px;line-height:1.65;max-width:190px}

/* sidebar & nav */
.btp-sidebar{
  background:
    radial-gradient(circle at top, rgba(214,163,75,.12), transparent 28%),
    linear-gradient(180deg,#0f141b 0%, #121922 44%, #182233 100%);
  border-right:1px solid rgba(214,163,75,.10);
  box-shadow:28px 0 70px rgba(6,10,16,.18);
}
.btp-sidebar::before{background:linear-gradient(180deg, rgba(255,255,255,.03), transparent 16%),linear-gradient(180deg, rgba(214,163,75,.03), transparent 45%)}
.btp-sidebar nav{gap:9px}
.btp-sidebar nav button,
.btp-nav-more button,
.btp-mobile-more-toggle{
  appearance:none!important;-webkit-appearance:none!important;
  background:transparent!important;border:1px solid transparent!important;outline:none!important;
  color:#d6dde7!important;box-shadow:none!important;position:relative;font-size:15px;font-weight:600;
}
.btp-sidebar nav button:hover,
.btp-sidebar nav button.is-active,
.btp-nav-more button:hover,
.btp-nav-more button.is-active,
.btp-mobile-more-toggle:hover,
.btp-mobile-more-toggle.is-active{
  color:#fff!important;
}
.btp-sidebar nav button::after,
.btp-nav-more button::after,
.btp-mobile-more-toggle::after{
  content:"";position:absolute;inset:0;border-radius:16px;pointer-events:none;opacity:0;transition:.24s;
  box-shadow:inset 0 0 0 1px rgba(214,163,75,.16), 0 14px 28px rgba(4,8,14,.08)
}
.btp-sidebar nav button:hover::after,
.btp-sidebar nav button.is-active::after,
.btp-nav-more button:hover::after,
.btp-nav-more button.is-active::after,
.btp-mobile-more-toggle:hover::after,
.btp-mobile-more-toggle.is-active::after{opacity:1}
.btp-sidebar nav button.is-active,
.btp-mobile-more-toggle.is-active{
  background:linear-gradient(90deg, rgba(214,163,75,.18), rgba(214,163,75,.06))!important;
  border-color:rgba(214,163,75,.24)!important;
  box-shadow:inset 3px 0 0 var(--btp-gold)!important, 0 10px 24px rgba(6,10,16,.12)!important;
}
.btp-nav-icon{font-size:18px!important;width:18px;height:18px;display:inline-grid;place-items:center;color:#f0d492;flex:0 0 18px}
.btp-sidebar nav button span:last-child{min-width:0}
.btp-sidebar-foot{color:#7e8a97}

/* main layout */
.btp-main{padding:30px 34px 64px}
.btp-topbar{align-items:center;margin-bottom:30px}
.btp-topbar-copy h1{font-size:22px;font-weight:700;letter-spacing:-.03em}
.btp-topbar-copy p{font-size:13px;color:#8a939f;letter-spacing:.02em}
.btp-userbox{gap:14px;align-items:center}
.btp-app .btp-usercard,
.btp-app .btp-usercard:visited,
.btp-app .btp-usercard:hover,
.btp-app .btp-usercard:focus-visible{
  appearance:none!important;-webkit-appearance:none!important;outline:none!important;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(255,255,255,.90))!important;
  border:1px solid rgba(214,163,75,.22)!important;color:var(--btp-ink)!important;
  box-shadow:0 14px 34px rgba(12,16,24,.07)!important;
  padding:10px 14px;border-radius:20px;text-decoration:none;transform:none;
}
.btp-usercard:focus-visible,
.btp-app .btp-primary:focus-visible,
.btp-app .btp-ghost:focus-visible,
.btp-app .btp-mini:focus-visible,
.btp-login-shell .btp-primary:focus-visible,
.btp-app .btp-status:focus-visible,
.btp-app input:focus-visible,
.btp-app textarea:focus-visible,
.btp-app select:focus-visible,
.btp-login-shell input:focus-visible{
  box-shadow:0 0 0 4px rgba(214,163,75,.18)!important;
}
.btp-useravatar{
  background:linear-gradient(180deg,#fff9ea,#efd8a0)!important;
  color:#714f0d;border:1px solid rgba(214,163,75,.28)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7)
}
.btp-usertext strong{font-size:15px;color:var(--btp-ink)}
.btp-usertext small{font-size:13px;color:#8e98a5}

/* headings & hero */
.btp-hero,
.btp-panel,
.btp-message-card,
.btp-cards article,
.btp-pipe-col,
.btp-login-card,
.btp-modal-card{
  border-color:rgba(214,163,75,.10)!important;
}
.btp-hero{
  padding:34px;border-radius:32px;gap:30px;
  background:
    radial-gradient(circle at top right, rgba(214,163,75,.14), transparent 34%),
    linear-gradient(135deg,rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 58%, rgba(249,243,228,.98) 100%);
  box-shadow:var(--btp-shadow);
}
.btp-hero::before{width:520px;height:520px;right:-290px;top:-270px;background:radial-gradient(circle, rgba(214,163,75,.18), rgba(214,163,75,0) 66%)}
.btp-hero::after{width:220px;height:220px;background:rgba(214,163,75,.10);right:-60px;bottom:-90px}
.btp-hero span,.btp-section-head span,.btp-settings-title>span{color:#9e701e;font-size:12px;letter-spacing:.22em}
.btp-hero h2,
.btp-section-head h2,
.btp-settings-title h3,
.btp-login-card h2,
.btp-account-card h3{
  text-wrap:balance;
  color:var(--btp-ink);
}
.btp-hero h2{font-size:clamp(34px,3vw,48px);max-width:16ch}
.btp-hero p{max-width:56ch;font-size:16px;color:#697586}
.btp-goal{
  min-width:315px;padding:22px 24px;border-radius:26px;
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.88));
  border:1px solid rgba(214,163,75,.12);box-shadow:0 18px 42px rgba(12,16,24,.08)
}
.btp-goal strong{font-size:36px;letter-spacing:-.04em}
.btp-goal small,.btp-goal em{color:#7f8996}
.btp-progress{height:12px;background:#e9ecf1}
.btp-progress i{background:linear-gradient(90deg,#f0d48d 0%, #d09a38 100%)}

/* surfaces, cards, tables */
.btp-cards{gap:18px;margin:20px 0}
.btp-cards article,
.btp-panel,
.btp-message-card{
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.92));
  border:1px solid rgba(214,163,75,.10)!important;
  box-shadow:var(--btp-shadow-soft)!important;
  border-radius:26px;
}
.btp-panel{padding:26px}
.btp-cards article{padding:24px;position:relative;overflow:hidden}
.btp-cards article::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg, rgba(214,163,75,.0), rgba(214,163,75,.55), rgba(214,163,75,0))}
.btp-cards article span{font-size:13px;color:#818c99}
.btp-cards article strong{font-size:clamp(32px,2.4vw,42px);color:#111926}
.btp-section-head{gap:18px;margin:10px 0 20px}
.btp-section-head h2{font-size:clamp(28px,2.3vw,40px);line-height:1.05;max-width:18ch}
.btp-section-head p{max-width:54ch;font-size:15px;color:#6c7784}
.btp-table-panel{overflow:hidden;padding:0}
.btp-table-panel .btp-section-head{padding:28px 28px 0}
.btp-table-wrap{padding-bottom:2px}
.btp-table{min-width:980px}
.btp-table th{
  background:#faf9f6;color:#8793a1;border-top:1px solid #eee9dd;border-bottom:1px solid #eee9dd;
}
.btp-table td{border-bottom:1px solid #f0ece4}
.btp-table tr:hover td{background:rgba(251,244,228,.48)}
.btp-empty strong{font-size:20px}
.btp-score{box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
.btp-score.hot{background:#fff0e2;color:#ab5a2b}
.btp-score.warm{background:#fff7df;color:#94650d}
.btp-score.cool{background:#eef2f6;color:#5e6b7c}
.btp-badge.danger{background:#fff0f0;color:#af5252}
.btp-app .btp-status,
.btp-app .btp-form-grid input,
.btp-app .btp-form-grid select,
.btp-app .btp-form-grid textarea,
.btp-field input,
.btp-money-input,
.btp-login-form input[type="text"],
.btp-login-form input[type="password"]{
  background:#fff!important;border:1px solid var(--btp-border-strong)!important;color:var(--btp-ink)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6)!important;
}
.btp-app .btp-status{
  padding:10px 12px;border-radius:14px;min-width:138px;
  background-image:linear-gradient(180deg,#fff,#fcfbf9)!important
}
.btp-app .btp-status:hover{border-color:rgba(214,163,75,.42)!important}

/* buttons */
.btp-app .btp-primary,
.btp-login-shell .btp-primary{
  appearance:none!important;-webkit-appearance:none!important;
  border-radius:16px!important;padding:14px 20px!important;outline:none!important;
  background:linear-gradient(180deg,#f0cc7a 0%, #d6a34b 100%)!important;
  color:#16110c!important;border:1px solid rgba(160,111,17,.18)!important;
  box-shadow:0 16px 30px rgba(214,163,75,.24), inset 0 1px 0 rgba(255,255,255,.5)!important;
}
.btp-app .btp-primary:hover,
.btp-login-shell .btp-primary:hover{transform:translateY(-1px);filter:brightness(1.02)}
.btp-app .btp-ghost,
.btp-app .btp-mini{
  appearance:none!important;-webkit-appearance:none!important;
  border-radius:16px!important;outline:none!important;backdrop-filter:blur(10px)
}
.btp-app .btp-ghost{
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.84))!important;
  border:1px solid rgba(214,163,75,.18)!important;color:var(--btp-obsidian)!important;
}
.btp-app .btp-mini{
  background:linear-gradient(180deg,#faf9f7,#f3f0e8)!important;
  border:1px solid rgba(214,163,75,.14)!important;color:#243040!important;padding:9px 13px
}
.btp-app .btp-mini:hover,.btp-app .btp-ghost:hover{transform:translateY(-1px);filter:brightness(1.01)}

/* forms and calculators */
.btp-form-grid,.btp-calc-grid{gap:16px}
.btp-calc-grid label,.btp-form-grid label,.btp-field{color:#5e6976}
.btp-goal-calculator{
  background:
    radial-gradient(circle at bottom right, rgba(214,163,75,.13), transparent 28%),
    linear-gradient(145deg,#ffffff 0%,#fffdfa 58%,#fbf4e5 100%);
}
.btp-calc-result{
  background:linear-gradient(135deg,#0f1620,#1b2533 44%,#222e40 100%);
  border:1px solid rgba(214,163,75,.16);
  box-shadow:0 24px 44px rgba(10,15,24,.16)
}
.btp-calc-result small{color:#cdd5df}.btp-calc-result em{color:#9cabbc}.btp-calc-result strong{color:#f1d187}
.btp-settings-savebar{
  background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border:1px solid rgba(214,163,75,.14);box-shadow:0 18px 40px rgba(12,16,24,.10)
}
.btp-settings-savebar strong{font-size:16px}
.btp-feedback.success{color:#1f8a59;font-weight:600}.btp-feedback.error{color:#bf5757;font-weight:600}

/* messages, modal and pipeline */
.btp-message-grid{gap:18px}
.btp-message-card pre,.btp-detail-grid div{background:#fbfaf8;border-color:#ede7db}
.btp-modal{background:rgba(10,14,21,.64);backdrop-filter:blur(6px)}
.btp-modal-card{background:linear-gradient(180deg,#fff,#fcfbf8);border:1px solid rgba(214,163,75,.12);box-shadow:0 34px 90px rgba(6,10,16,.24)}
.btp-modal-close{background:#f4efe2;border:1px solid rgba(214,163,75,.18);color:var(--btp-ink)}
.btp-evidence{background:#fff9ea;border-color:#f0d995}

.btp-pipeline{
  display:grid;grid-template-columns:repeat(6,minmax(250px,1fr));gap:16px;overflow:auto;padding:0 0 12px;
}
.btp-pipe-col{
  min-height:280px;padding:14px;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(250,249,246,.92));
  border:1px solid rgba(214,163,75,.10)!important;border-radius:24px;box-shadow:var(--btp-shadow-soft)!important
}
.btp-pipe-col h3{margin:2px 2px 16px;color:#6b7580;border-bottom:1px solid #f0ece4;padding-bottom:11px}
.btp-pipe-col article{border-radius:18px;background:linear-gradient(180deg,#fff,#fcfbf9);border:1px solid #ece7dd;box-shadow:0 12px 24px rgba(15,17,23,.05)}
.btp-pipe-empty{min-height:110px;background:rgba(255,255,255,.58);border-color:#e7dfcf;color:#8b95a0}

/* account card */
.btp-account-card{background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.92));overflow:hidden}
.btp-account-avatar{background:linear-gradient(180deg,#fff9e8,#ecd59a);color:#784d08}
.btp-account-card h3{font-size:clamp(24px,2vw,28px);line-height:1.05;word-break:break-word}
.btp-account-card > p{font-size:16px;word-break:break-word}
.btp-account-note{background:#fbf4e5;color:#697382!important;border:1px solid rgba(214,163,75,.16)}

/* login */
.btp-login-card{padding:36px 34px;border-radius:34px;background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.90));border:1px solid rgba(214,163,75,.12)!important}
.btp-login-card:before{background:rgba(214,163,75,.11)}
.btp-login-card:after{background:rgba(18,22,29,.04)}
.btp-login-kicker{color:#a0701b}
.btp-login-card h2{font-size:clamp(34px,3vw,44px);line-height:1.02;max-width:12ch}
.btp-login-card p{font-size:16px;max-width:40ch;color:#6c7784}
.btp-check{font-weight:600!important;color:#6b7785}
.btp-login-links a{color:var(--btp-obsidian)}
.btp-login-notice{border-radius:18px}

/* mobile */
@media (max-width: 980px){
  .btp-main{padding:22px 20px 110px}
  .btp-hero{padding:28px;gap:20px}
  .btp-goal{min-width:0;width:100%}
  .btp-settings-layout,.btp-profile-grid{gap:16px}
}

@media (max-width: 720px){
  .btp-main{padding:16px 14px 108px}
  .btp-topbar{grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-bottom:20px!important}
  .btp-topbar-copy h1{font-size:20px}
  .btp-topbar-copy p{font-size:12px;max-width:100%;white-space:normal;line-height:1.45}
  .btp-userbox{gap:8px}
  .btp-usercard{width:48px!important;height:48px!important;padding:6px!important;border-radius:16px!important;flex:0 0 48px}
  .btp-useravatar{width:36px;height:36px;border-radius:13px}
  .btp-hero{padding:22px;border-radius:26px}
  .btp-hero h2{font-size:clamp(28px,9vw,38px);max-width:11ch}
  .btp-hero p,.btp-section-head p{font-size:14px;line-height:1.58}
  .btp-section-head{margin:8px 0 16px}
  .btp-section-head h2{font-size:clamp(24px,8vw,32px);max-width:12ch}
  .btp-cards{gap:12px}
  .btp-cards:not(.btp-cards-finance){grid-template-columns:repeat(2,minmax(0,1fr))}
  .btp-cards article{padding:18px;border-radius:22px}
  .btp-cards article strong{font-size:28px}
  .btp-panel,.btp-message-card,.btp-goal-calculator,.btp-settings-card,.btp-profile-form,.btp-account-card{padding:20px;border-radius:24px}
  .btp-table-panel .btp-section-head{padding:20px 20px 4px}
  .btp-table-wrap{padding:0 10px 10px}
  .btp-pipeline{display:flex;gap:12px;padding-bottom:10px}
  .btp-pipe-col{flex:0 0 calc(100% - 24px);min-width:0;min-height:210px;scroll-snap-align:start}

  .btp-sidebar{padding:8px 8px 10px;height:auto;position:fixed;left:0;right:0;bottom:0;top:auto;z-index:40;border-right:0;border-top:1px solid rgba(214,163,75,.12);box-shadow:0 -18px 46px rgba(8,12,19,.20)}
  .btp-brand-wrap{display:none}
  .btp-sidebar nav.btp-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;align-items:stretch}
  .btp-sidebar nav button,
  .btp-mobile-more-toggle{min-height:64px!important;padding:10px 6px 8px!important;border-radius:18px!important;display:flex;flex-direction:column;justify-content:center;gap:4px;text-align:center}
  .btp-sidebar nav button span:last-child,
  .btp-mobile-more-toggle span:last-child{font-size:12px;line-height:1.1;display:block}
  .btp-nav-icon{font-size:17px!important;width:18px;height:18px;margin:0 auto}
  .btp-sidebar nav button span:last-child{font-size:0!important}
  .btp-sidebar nav button span:last-child::after{content:attr(data-mobile);font-size:12px;line-height:1.15;display:block}

  .btp-nav-more{display:none;position:fixed;left:14px;right:14px;bottom:92px;padding:14px;background:rgba(14,18,25,.96);border:1px solid rgba(214,163,75,.16);border-radius:24px;backdrop-filter:blur(14px);grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;box-shadow:0 24px 60px rgba(8,12,19,.30);z-index:60}
  .btp-nav.is-more-open .btp-nav-more{display:grid}
  .btp-nav-more button{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:58px!important;padding:14px!important;border-radius:18px!important;background:rgba(255,255,255,.02)!important}
  .btp-nav-more button .btp-nav-icon{margin:0;flex:0 0 18px}
  .btp-nav-more button span:last-child{font-size:13px!important;white-space:normal!important;text-align:left!important}

  .btp-login-shell{padding:20px 16px}
  .btp-login-card{padding:28px 22px;border-radius:28px}
  .btp-login-card h2{font-size:clamp(28px,10vw,36px)}
  .btp-form-grid-profile,.btp-form-grid-compact,.btp-calc-grid{grid-template-columns:1fr}
  .btp-settings-savebar{position:static;flex-direction:column;align-items:stretch;padding:16px;border-radius:20px}
  .btp-settings-savebar .btp-primary{width:100%}
  .btp-account-card{order:-1}
  .btp-account-card h3{font-size:24px}
}

@media (max-width: 420px){
  .btp-main{padding-left:12px;padding-right:12px}
  .btp-topbar-copy h1{font-size:18px}
  .btp-hero h2{max-width:10ch}
  .btp-section-head h2{max-width:11ch}
  .btp-table tbody td:before{flex-basis:74px}
}

/* v0.6.0 — luxury sales OS refinement */
:root{
  --btp-obsidian:#0b0f14;
  --btp-obsidian-2:#111722;
  --btp-gold-deep:#9f6f12;
  --btp-cream:#f5f1e8;
  --btp-border-strong:#d6dde6;
}

html{scrollbar-color:#ae7c1e #111722;scrollbar-width:thin}
.btp-app *::-webkit-scrollbar,
.btp-login-shell *::-webkit-scrollbar{width:12px;height:12px}
.btp-app *::-webkit-scrollbar-track,
.btp-login-shell *::-webkit-scrollbar-track{background:linear-gradient(180deg,#111722,#182233);border-radius:999px}
.btp-app *::-webkit-scrollbar-thumb,
.btp-login-shell *::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#f0d088,#a87515);border:2px solid #111722;border-radius:999px}
.btp-app *::-webkit-scrollbar-thumb:hover,
.btp-login-shell *::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#f6dda0,#bd8620)}

body:has(.btp-app){background:linear-gradient(180deg,#f2efe8 0%,#efeae0 100%)!important}
body:has(.btp-login-shell){background:#0b0f14!important}
.btp-main{background:radial-gradient(circle at top right, rgba(214,163,75,.10), transparent 18%)}

.btp-brand{transition:transform .55s cubic-bezier(.22,.8,.24,1), filter .55s ease}
.btp-brand.is-animating{animation:btpBrandLift .72s cubic-bezier(.2,.82,.23,.99)}
@keyframes btpBrandLift{0%{transform:translateY(0) scale(1);filter:none}35%{transform:translateY(-4px) scale(1.015);filter:drop-shadow(0 10px 20px rgba(214,163,75,.22))}100%{transform:translateY(0) scale(1);filter:none}}
.btp-brand-emblem{overflow:hidden}
.btp-brand-emblem-bars{position:absolute;left:11px;bottom:10px;display:flex;align-items:flex-end;gap:3px;opacity:.28}
.btp-brand-emblem-bars i{display:block;width:4px;border-radius:999px;background:rgba(24,16,7,.65)}
.btp-brand-emblem-bars i:nth-child(1){height:9px}.btp-brand-emblem-bars i:nth-child(2){height:13px}.btp-brand-emblem-bars i:nth-child(3){height:18px}
.btp-brand-emblem-arrow{position:absolute;right:8px;top:12px;width:17px;height:17px;border-top:2px solid rgba(24,16,7,.55);border-right:2px solid rgba(24,16,7,.55);transform:rotate(45deg);border-radius:1px}
.btp-brand--login .btp-brand-script{font-size:46px}
.btp-brand--login .btp-brand-name{font-size:25px}
.btp-brand-lockup small{letter-spacing:.22em}

.btp-sidebar{background:radial-gradient(circle at top left, rgba(214,163,75,.15), transparent 24%),linear-gradient(180deg,#080b11 0%, #101823 44%, #162131 100%)}
.btp-sidebar nav button,
.btp-nav-more button,
.btp-mobile-more-toggle{border-radius:18px!important}
.btp-sidebar nav button.is-active,
.btp-mobile-more-toggle.is-active{background:linear-gradient(90deg, rgba(214,163,75,.22), rgba(214,163,75,.07))!important;box-shadow:inset 3px 0 0 var(--btp-gold),0 18px 28px rgba(7,11,18,.24)!important}

.btp-usercard,
.btp-goal,
.btp-cards article,
.btp-panel,
.btp-message-card,
.btp-pipe-col,
.btp-login-card{
  position:relative;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(7,11,18,.08), inset 0 1px 0 rgba(255,255,255,.84), inset 0 -12px 24px rgba(214,163,75,.03)!important;
}
.btp-cards article::after,
.btp-panel::after,
.btp-goal::after,
.btp-login-card::after{
  content:"";position:absolute;inset:auto 16px 0 16px;height:28px;border-radius:50%;background:radial-gradient(circle, rgba(214,163,75,.08), rgba(214,163,75,0) 70%);pointer-events:none;filter:blur(10px);opacity:.55
}
@media (hover:hover){
  .btp-cards article:hover,.btp-panel:hover,.btp-message-card:hover,.btp-pipe-col:hover,.btp-goal:hover{transform:translateY(-2px)}
}

.btp-hero{background:radial-gradient(circle at top right, rgba(214,163,75,.14), transparent 31%),linear-gradient(145deg,rgba(255,255,255,.99),rgba(255,255,255,.96) 55%,rgba(250,244,231,.98) 100%)}
.btp-hero h2,.btp-section-head h2,.btp-settings-title h3,.btp-login-card h2{max-width:none;text-wrap:pretty}
.btp-hero h2{font-size:clamp(34px,2.7vw,46px)}
.btp-section-head h2{font-size:clamp(28px,2vw,38px)}
.btp-section-head p,.btp-hero p,.btp-settings-title p,.btp-login-card p{max-width:62ch}
.btp-goal strong{font-size:clamp(34px,2.6vw,42px)}

.btp-cards article{min-height:154px;background:linear-gradient(180deg,#ffffff 0%,#fcfaf6 100%)}
.btp-cards article strong{letter-spacing:-.04em}
.btp-panel,.btp-message-card{background:linear-gradient(180deg,#ffffff 0%,#fcfaf7 100%)}
.btp-table-wrap{scrollbar-gutter:stable both-edges}

.btp-profile-grid{grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr)}
.btp-account-card h3,
.btp-account-card>p{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btp-account-card h3{font-size:clamp(22px,1.8vw,30px);letter-spacing:-.03em}
.btp-account-card>p{font-size:15px}
.btp-account-note{font-size:13px;line-height:1.65;background:linear-gradient(180deg,#fdf7ea,#f8f0db)}
.btp-account-meta strong{font-size:14px}

.btp-login-shell{position:relative;padding:32px;background:radial-gradient(circle at 15% 18%, rgba(214,163,75,.18), transparent 14%),radial-gradient(circle at 85% 12%, rgba(214,163,75,.11), transparent 22%),linear-gradient(135deg,#090d12 0%,#111722 42%,#172231 100%)}
.btp-login-shell::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);background-size:72px 72px;mask-image:linear-gradient(180deg,rgba(0,0,0,.85),rgba(0,0,0,.18));opacity:.25}
.btp-login-stage{width:min(1220px,100%);display:grid;grid-template-columns:minmax(0,.95fr) minmax(470px,.72fr);gap:32px;align-items:center;position:relative;z-index:1}
.btp-login-scene{min-height:620px;border-radius:36px;padding:38px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,rgba(12,16,24,.88),rgba(18,25,36,.82) 58%,rgba(30,42,58,.84) 100%);border:1px solid rgba(214,163,75,.16);box-shadow:0 34px 80px rgba(0,0,0,.22);color:#fff;position:relative;overflow:hidden}
.btp-login-scene::before{content:"";position:absolute;width:320px;height:320px;right:-120px;top:-100px;border-radius:50%;background:radial-gradient(circle, rgba(214,163,75,.23), rgba(214,163,75,0) 66%)}
.btp-login-scene-copy{position:relative;z-index:1;max-width:520px}
.btp-login-scene-copy span{display:inline-block;font-size:12px;letter-spacing:.22em;font-weight:800;color:#efcc80;margin-bottom:18px}
.btp-login-scene-copy h3{margin:0 0 14px;font-size:clamp(34px,4vw,54px);line-height:.98;letter-spacing:-.05em;color:#fff;text-wrap:balance}
.btp-login-scene-copy p{margin:0;color:#c8d2de;font-size:17px;line-height:1.75;max-width:42ch}
.btp-login-scene-stack{position:relative;z-index:1;display:grid;grid-template-columns:1.2fr 1fr;gap:14px;max-width:560px}
.btp-login-float{padding:18px 20px;border-radius:22px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));border:1px solid rgba(214,163,75,.14);backdrop-filter:blur(12px);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.btp-login-float--lg{grid-column:1/-1}
.btp-login-float strong{display:block;font-size:22px;letter-spacing:-.03em;color:#f7dfaa}
.btp-login-float small{display:block;margin-top:6px;font-size:13px;line-height:1.6;color:#c5cfdb}
.btp-login-graph{position:absolute;right:34px;bottom:34px;display:flex;align-items:flex-end;gap:9px;height:150px;width:220px;padding:18px 20px;border-radius:26px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));border:1px solid rgba(214,163,75,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.btp-login-graph::before{content:"";position:absolute;left:20px;right:20px;bottom:46px;height:1px;background:rgba(255,255,255,.08);box-shadow:0 -30px 0 rgba(255,255,255,.06),0 -60px 0 rgba(255,255,255,.05)}
.btp-login-graph i{position:relative;z-index:1;display:block;flex:1;border-radius:999px 999px 12px 12px;background:linear-gradient(180deg,#f6dfa4 0%,#b37e18 100%);box-shadow:0 10px 24px rgba(214,163,75,.16)}
.btp-login-card{justify-self:end;width:min(520px,100%);background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.92))}
.btp-login-card p{font-size:15px}
.btp-login-form label{font-size:13px;color:#566474}
.btp-login-form input[type="text"],.btp-login-form input[type="password"]{height:58px;border-radius:18px;background:#fffdf8!important}
.btp-check{gap:9px;color:#6b7682}

@media (max-width:1080px){
  .btp-login-stage{grid-template-columns:1fr}
  .btp-login-card{justify-self:center}
  .btp-login-scene{min-height:inherit;padding:30px 28px}
  .btp-login-graph{position:relative;right:auto;bottom:auto;width:100%;max-width:420px;height:130px;margin-top:18px}
}
@media (max-width:720px){
  .btp-profile-grid{grid-template-columns:1fr}
  .btp-hero h2,.btp-section-head h2{max-width:15ch}
  .btp-login-shell{padding:16px 14px 20px}
  .btp-login-stage{gap:14px}
  .btp-login-scene{display:none}
  .btp-login-card{width:100%;padding:28px 22px;border-radius:30px}
  .btp-login-card h2{max-width:11ch}
  .btp-cards:not(.btp-cards-finance){grid-template-columns:1fr 1fr}
  .btp-cards-finance{grid-template-columns:1fr}
  .btp-userbox .btp-ghost{padding:12px 14px!important}
}
@media (max-width:480px){
  .btp-cards:not(.btp-cards-finance){grid-template-columns:1fr}
  .btp-usertext strong,.btp-usertext small{max-width:140px}
  .btp-account-card h3,.btp-account-card>p{max-width:100%}
}

/* v0.7.0 — transição de tela + login refinado + tabelas premium */

/* As tabelas ficam visualmente "encaixadas" no card, sem linhas tocando as bordas. */
.btp-table-panel .btp-table-wrap{
  margin:0 14px 18px!important;
  padding:0!important;
  border:1px solid rgba(214,163,75,.13);
  border-radius:20px;
  overflow:auto;
  background:linear-gradient(180deg,#fff,#fcfaf6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.btp-table th,.btp-table td{
  border-left:0!important;
  border-right:0!important;
}
.btp-table thead th:first-child{border-top-left-radius:18px}
.btp-table thead th:last-child{border-top-right-radius:18px}
.btp-table tbody tr:last-child td{border-bottom:0!important}
.btp-table-panel:has(.btp-empty) .btp-table-wrap{padding-bottom:0!important}

/* Login: tudo respira melhor e o gráfico deixa de sobrepor os cards. */
.btp-login-scene{
  display:grid!important;
  grid-template-rows:auto auto auto;
  gap:22px;
  align-content:space-between;
}
.btp-login-scene-stack{align-self:end}
.btp-login-graph{
  position:relative!important;
  right:auto!important;
  bottom:auto!important;
  width:min(100%,520px)!important;
  max-width:520px!important;
  height:138px!important;
  margin:0!important;
  justify-self:start;
}
.btp-login-card{
  align-self:center;
}
.btp-login-card>.btp-brand{margin-bottom:22px}
.btp-login-card .btp-login-kicker{margin:0 0 12px!important}
.btp-login-card h2{margin:0 0 14px!important}
.btp-login-card>p{margin:0 0 24px!important}
.btp-login-form{gap:16px!important}
.btp-login-form label{gap:8px!important}
.btp-login-form .btp-primary{margin-top:2px}
.btp-login-links{margin-top:18px!important}

/* Fundo vivo, porém discreto: movimento lento de luz dourada/azul. */
.btp-login-shell::after{
  content:"";
  position:fixed;
  inset:-18%;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(circle at 24% 30%,rgba(214,163,75,.13),transparent 18%),
    radial-gradient(circle at 74% 22%,rgba(73,103,143,.11),transparent 22%),
    radial-gradient(circle at 58% 78%,rgba(214,163,75,.08),transparent 19%);
  filter:blur(34px);
  opacity:.9;
  animation:btpLoginAmbient 16s ease-in-out infinite alternate;
}
@keyframes btpLoginAmbient{
  0%{transform:translate3d(-2%,0,0) scale(1);opacity:.72}
  50%{transform:translate3d(2%,-1.5%,0) scale(1.035);opacity:.94}
  100%{transform:translate3d(0,2%,0) scale(1.015);opacity:.78}
}
.btp-login-stage{position:relative;z-index:2}

/* Transição de tela inspirada na experiência do Inglês Avançado, adaptada para vendas. */
.btp-route-transition{
  position:fixed;
  inset:0;
  z-index:999999;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(circle at 50% 45%,rgba(214,163,75,.12),transparent 20%),
    radial-gradient(circle at 50% 48%,rgba(52,75,105,.08),transparent 38%),
    #090d13;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .20s ease,visibility .20s ease;
  isolation:isolate;
}
.btp-route-transition.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.btp-route-transition__inner{
  width:min(390px,90vw);
  display:grid;
  justify-items:center;
  text-align:center;
  color:#fff;
  transform:translateZ(0);
}
.btp-route-transition__mark{
  position:relative;
  width:190px;
  height:164px;
  display:grid;
  place-items:center;
  isolation:isolate;
}
.btp-route-transition__halo{
  position:absolute;
  width:142px;
  height:142px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(214,163,75,.18),rgba(214,163,75,.03) 48%,transparent 72%);
  filter:blur(3px);
  animation:btpRouteHalo 1.6s ease-in-out infinite;
}
.btp-route-transition__ring{
  position:absolute;
  width:132px;
  height:132px;
  border-radius:50%;
  border:1px solid rgba(240,207,137,.18);
  border-top-color:rgba(240,207,137,.72);
  border-right-color:rgba(214,163,75,.34);
  box-shadow:0 0 34px rgba(214,163,75,.10);
  animation:btpRouteSpin 2.15s linear infinite;
}
.btp-route-transition__brand{
  position:relative;
  z-index:4;
  min-width:126px;
  display:grid;
  grid-template-columns:auto auto;
  align-items:end;
  justify-content:center;
  column-gap:2px;
  color:#f7f4ed;
  font-size:25px;
  font-weight:700;
  letter-spacing:-.04em;
  filter:drop-shadow(0 8px 24px rgba(0,0,0,.28));
  animation:btpRouteBrandFloat 1.18s ease-in-out infinite alternate;
}
.btp-route-transition__brand small{
  grid-column:1/-1;
  margin-top:6px;
  color:#b8c1ce;
  font-size:12px;
  font-weight:800;
  letter-spacing:.27em;
  text-transform:uppercase;
}
.btp-route-transition__by{
  color:#e5b957;
  font-family:Georgia,'Times New Roman',serif;
  font-size:42px;
  font-style:italic;
  line-height:.72;
  letter-spacing:-4px;
}
.btp-route-transition__bars{
  position:absolute;
  z-index:2;
  left:32px;
  bottom:14px;
  height:52px;
  display:flex;
  align-items:flex-end;
  gap:6px;
  opacity:.7;
}
.btp-route-transition__bars i{
  display:block;
  width:8px;
  border-radius:7px 7px 2px 2px;
  background:linear-gradient(180deg,#f2d38f,#b87e18);
  box-shadow:0 0 15px rgba(214,163,75,.18);
  transform-origin:bottom;
  animation:btpRouteBarGrow 1.15s cubic-bezier(.22,.78,.24,1) infinite alternate;
}
.btp-route-transition__bars i:nth-child(1){height:15px;animation-delay:-.18s}
.btp-route-transition__bars i:nth-child(2){height:24px;animation-delay:-.10s}
.btp-route-transition__bars i:nth-child(3){height:35px;animation-delay:-.04s}
.btp-route-transition__bars i:nth-child(4){height:48px}
.btp-route-transition__arrow{
  position:absolute;
  z-index:3;
  right:25px;
  top:24px;
  width:52px;
  height:52px;
  border-top:3px solid #edcb7a;
  border-right:3px solid #edcb7a;
  transform:rotate(-2deg);
  filter:drop-shadow(0 0 12px rgba(214,163,75,.28));
  animation:btpRouteArrow 1.15s cubic-bezier(.22,.78,.24,1) infinite alternate;
}
.btp-route-transition__arrow::before{
  content:"";
  position:absolute;
  left:-20px;
  bottom:3px;
  width:62px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,#edcb7a 46%,#edcb7a);
  transform:rotate(-42deg);
  transform-origin:right center;
}
.btp-route-transition__copy{margin-top:16px}
.btp-route-transition__copy strong{
  display:block;
  color:#f7f4ed;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.02em;
}
.btp-route-transition__copy span{
  display:block;
  margin-top:7px;
  color:#8e9aaa;
  font-size:12px;
  font-weight:600;
  line-height:1.5;
}
.btp-route-transition__progress{
  position:relative;
  width:190px;
  height:4px;
  margin-top:22px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.05);
}
.btp-route-transition__progress span{
  position:absolute;
  inset:0 auto 0 0;
  width:42%;
  border-radius:inherit;
  background:linear-gradient(90deg,transparent,#d3a044 28%,#f1d48b 72%,transparent);
  box-shadow:0 0 15px rgba(214,163,75,.26);
  animation:btpRouteProgress 1.02s cubic-bezier(.45,0,.55,1) infinite;
}
.btp-route-transition.is-switching .btp-route-transition__ring{
  border-top-color:#f8e1a9;
  box-shadow:0 0 52px rgba(214,163,75,.18);
}
.btp-route-transition.is-finishing .btp-route-transition__inner{
  animation:btpRouteOut .24s ease both;
}
@keyframes btpRouteHalo{0%,100%{transform:scale(.92);opacity:.55}50%{transform:scale(1.06);opacity:1}}
@keyframes btpRouteSpin{to{transform:rotate(360deg)}}
@keyframes btpRouteBrandFloat{from{transform:translateY(2px) scale(.995)}to{transform:translateY(-4px) scale(1.018)}}
@keyframes btpRouteBarGrow{from{transform:scaleY(.68);opacity:.6}to{transform:scaleY(1);opacity:1}}
@keyframes btpRouteArrow{from{transform:translate(-5px,6px) scale(.94)}to{transform:translate(4px,-5px) scale(1)}}
@keyframes btpRouteProgress{0%{transform:translateX(-120%)}100%{transform:translateX(350%)}}
@keyframes btpRouteOut{from{opacity:1;transform:none}to{opacity:0;transform:scale(.97)}}

@media(max-width:1080px){
  /* Em tablet/mobile, acesso vem antes do material visual de apoio. */
  .btp-login-card{order:1!important;justify-self:center!important}
  .btp-login-scene{order:2!important}
  .btp-login-stage{align-items:start!important}
}

@media(max-width:720px){
  .btp-table-panel .btp-table-wrap{
    margin:0 10px 12px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .btp-login-card>.btp-brand{margin-bottom:18px}
  .btp-login-card h2{margin-bottom:12px!important}
  .btp-login-card>p{margin-bottom:20px!important}
  .btp-login-scene{display:none!important}
  .btp-login-card{order:1!important}
  .btp-route-transition__mark{width:166px;height:148px}
  .btp-route-transition__ring{width:120px;height:120px}
  .btp-route-transition__halo{width:132px;height:132px}
  .btp-route-transition__copy strong{font-size:16px}
}

@media(prefers-reduced-motion:reduce){
  .btp-login-shell::after,
  .btp-route-transition__halo,
  .btp-route-transition__ring,
  .btp-route-transition__brand,
  .btp-route-transition__bars i,
  .btp-route-transition__arrow,
  .btp-route-transition__progress span{animation:none!important}
  .btp-route-transition{transition:none!important}
}

/* ================================================================
   v0.8.0 — refinement: motion, login and interaction hierarchy
   ================================================================ */

/* Only controls that are actually actionable receive hover motion. */
.btp-cards article,
.btp-panel,
.btp-message-card,
.btp-pipe-col,
.btp-goal{
  transition:box-shadow .32s ease,border-color .32s ease,background .32s ease!important;
}
@media (hover:hover){
  .btp-cards article:hover,
  .btp-panel:hover,
  .btp-message-card:hover,
  .btp-pipe-col:hover,
  .btp-goal:hover{transform:none!important}
}
.btp-sidebar nav button,
.btp-nav-more button,
.btp-mobile-more-toggle{
  transition:
    background-color .38s cubic-bezier(.22,.75,.22,1),
    border-color .38s cubic-bezier(.22,.75,.22,1),
    color .30s ease,
    box-shadow .38s cubic-bezier(.22,.75,.22,1),
    transform .38s cubic-bezier(.22,.75,.22,1)!important;
}
.btp-sidebar nav button::after,
.btp-nav-more button::after,
.btp-mobile-more-toggle::after{transition:opacity .34s ease,box-shadow .34s ease!important}
@media (hover:hover){
  .btp-sidebar nav button:hover,
  .btp-nav-more button:hover,
  .btp-mobile-more-toggle:hover{transform:translateX(2px)!important}
  .btp-app .btp-primary:hover,
  .btp-login-shell .btp-primary:hover,
  .btp-app .btp-ghost:hover,
  .btp-app .btp-mini:hover,
  .btp-app .btp-usercard:hover{transform:translateY(-1px)!important}
}
.btp-app .btp-primary,
.btp-login-shell .btp-primary,
.btp-app .btp-ghost,
.btp-app .btp-mini,
.btp-app .btp-usercard{
  transition:transform .28s cubic-bezier(.22,.75,.22,1),box-shadow .28s ease,filter .28s ease,border-color .28s ease!important;
}

/* Table content is inset so separator lines never touch the outer premium card. */
.btp-table-panel{padding:0 18px 18px!important;overflow:hidden!important}
.btp-table-panel .btp-section-head{padding:26px 8px 4px!important}
.btp-table-panel .btp-table-wrap{
  margin-top:12px!important;
  border:1px solid rgba(166,137,80,.16)!important;
  border-radius:20px!important;
  overflow:auto!important;
  background:rgba(255,255,255,.62)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
}
.btp-table th:first-child,.btp-table td:first-child{padding-left:20px}
.btp-table th:last-child,.btp-table td:last-child{padding-right:20px}
.btp-table th{border-top:0!important}
.btp-table tbody tr:last-child td{border-bottom:0!important}
.btp-table tr:hover td{background:transparent!important}

/* Headings wrap only when the viewport really requires it. */
.btp-hero h2,
.btp-section-head h2,
.btp-settings-title h3,
.btp-account-card h3,
.btp-login-card h2{
  max-width:none!important;
  text-wrap:pretty!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}

/* Account summary: no implementation / architecture explanation for end users. */
.btp-account-note{display:none!important}
.btp-account-card{padding-bottom:24px!important}
.btp-account-card .btp-account-logout{margin-top:22px!important}

/* View enters under the opaque transition with a very light finish. */
.btp-view.btp-view-arrive{animation:btpViewArrive .42s cubic-bezier(.22,.72,.22,1) both}
@keyframes btpViewArrive{from{opacity:.72;transform:translateY(5px)}to{opacity:1;transform:none}}

/* ----------------------------------------------------------------
   Route transition — visual layer only, no selection or interaction.
   Logo and growth indicators are separated to avoid overlap.
   ---------------------------------------------------------------- */
.btp-route-transition{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  z-index:2147483000!important;
  display:grid!important;
  place-items:center!important;
  padding:max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))!important;
  margin:0!important;
  background:
    radial-gradient(circle at 50% 46%,rgba(214,163,75,.12),transparent 21%),
    radial-gradient(circle at 50% 50%,rgba(56,78,106,.07),transparent 39%),
    #080c12!important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease!important;
  isolation:isolate;
  contain:strict;
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
  touch-action:none!important;
  cursor:progress!important;
}
.btp-route-transition.is-active{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.btp-route-transition,
.btp-route-transition *{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
}
.btp-route-transition__inner,
.btp-route-transition__inner *{pointer-events:none!important}
.btp-route-transition__inner{
  width:min(330px,88vw)!important;
  display:grid!important;
  justify-items:center!important;
  align-content:center!important;
  text-align:center!important;
  color:#fff!important;
}
.btp-route-transition__mark{
  position:relative!important;
  width:166px!important;
  height:172px!important;
  display:grid!important;
  place-items:center!important;
  padding-bottom:32px!important;
  isolation:isolate!important;
}
.btp-route-transition__orbit{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:126px!important;
  height:126px!important;
  margin:-72px 0 0 -63px!important;
  border-radius:50%!important;
  border:1px solid rgba(236,205,137,.14)!important;
  border-top-color:rgba(239,207,139,.48)!important;
  border-right-color:rgba(214,163,75,.22)!important;
  box-shadow:0 0 0 12px rgba(214,163,75,.015),0 0 42px rgba(214,163,75,.08)!important;
  animation:btpRouteOrbitSoft 2.4s linear infinite!important;
}
.btp-route-transition__pulse{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:112px!important;
  height:112px!important;
  margin:-65px 0 0 -56px!important;
  border-radius:50%!important;
  background:radial-gradient(circle,rgba(214,163,75,.13),rgba(214,163,75,.025) 52%,transparent 72%)!important;
  animation:btpRoutePulseSoft 1.75s ease-in-out infinite!important;
}
.btp-route-transition__logo{
  position:relative!important;
  z-index:4!important;
  display:grid!important;
  grid-template-columns:auto auto!important;
  align-items:end!important;
  justify-content:center!important;
  column-gap:2px!important;
  color:#f7f4ee!important;
  font-size:23px!important;
  font-weight:700!important;
  letter-spacing:-.035em!important;
  filter:drop-shadow(0 8px 22px rgba(0,0,0,.30))!important;
  animation:btpRouteLogoSoft 1.45s cubic-bezier(.45,0,.55,1) infinite alternate!important;
}
.btp-route-transition__logo small{
  grid-column:1/-1!important;
  margin-top:7px!important;
  color:#9ca7b5!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.28em!important;
}
.btp-route-transition__logo-by{
  color:#e5b957!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:38px!important;
  font-style:italic!important;
  line-height:.74!important;
  letter-spacing:-4px!important;
}
.btp-route-transition__growth{
  position:absolute!important;
  left:50%!important;
  bottom:8px!important;
  transform:translateX(-50%)!important;
  z-index:5!important;
  display:flex!important;
  align-items:flex-end!important;
  gap:5px!important;
  height:28px!important;
}
.btp-route-transition__growth i{
  display:block!important;
  width:6px!important;
  border-radius:5px 5px 2px 2px!important;
  background:linear-gradient(180deg,#f0d38e,#a87317)!important;
  box-shadow:0 0 10px rgba(214,163,75,.12)!important;
  transform-origin:bottom!important;
  animation:btpRouteRevenue .95s cubic-bezier(.35,.75,.25,1) infinite alternate!important;
}
.btp-route-transition__growth i:nth-child(1){height:9px!important;animation-delay:-.24s!important}
.btp-route-transition__growth i:nth-child(2){height:14px!important;animation-delay:-.16s!important}
.btp-route-transition__growth i:nth-child(3){height:20px!important;animation-delay:-.08s!important}
.btp-route-transition__growth i:nth-child(4){height:27px!important}
.btp-route-transition__copy{margin-top:12px!important;max-width:310px!important}
.btp-route-transition__copy strong{display:block!important;color:#f7f4ee!important;font-size:17px!important;font-weight:800!important;letter-spacing:-.015em!important;line-height:1.25!important}
.btp-route-transition__copy span{display:block!important;margin-top:7px!important;color:#8996a5!important;font-size:12px!important;font-weight:600!important;line-height:1.5!important}
.btp-route-transition__progress{
  position:relative!important;
  width:168px!important;
  height:3px!important;
  margin-top:20px!important;
  overflow:hidden!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.045)!important;
}
.btp-route-transition__progress span{
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:40%!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,transparent,#c79332 28%,#f0d38e 72%,transparent)!important;
  box-shadow:0 0 13px rgba(214,163,75,.20)!important;
  animation:btpRouteProgressSoft 1.06s cubic-bezier(.45,0,.55,1) infinite!important;
}
.btp-route-transition.is-finishing .btp-route-transition__inner{animation:btpRouteFinishSoft .22s ease both!important}
@keyframes btpRouteOrbitSoft{to{transform:rotate(360deg)}}
@keyframes btpRoutePulseSoft{0%,100%{transform:scale(.95);opacity:.52}50%{transform:scale(1.04);opacity:.95}}
@keyframes btpRouteLogoSoft{from{transform:translateY(1px) scale(.995)}to{transform:translateY(-3px) scale(1.012)}}
@keyframes btpRouteRevenue{from{transform:scaleY(.70);opacity:.62}to{transform:scaleY(1);opacity:1}}
@keyframes btpRouteProgressSoft{0%{transform:translateX(-120%)}100%{transform:translateX(360%)}}
@keyframes btpRouteFinishSoft{from{opacity:1;transform:none}to{opacity:0;transform:scale(.985)}}

/* ----------------------------------------------------------------
   Login — balanced desktop composition, login first on tablet/mobile.
   The visual panel supports the product instead of competing with it.
   ---------------------------------------------------------------- */
.btp-login-shell{
  background:
    radial-gradient(circle at 18% 24%,rgba(214,163,75,.14),transparent 16%),
    radial-gradient(circle at 82% 18%,rgba(57,82,115,.11),transparent 22%),
    linear-gradient(135deg,#080c12 0%,#0e1621 48%,#162131 100%)!important;
}
.btp-login-shell::after{opacity:.58!important;filter:blur(52px)!important;animation-duration:22s!important}
.btp-login-stage{
  width:min(1160px,100%)!important;
  display:grid!important;
  grid-template-columns:minmax(0,.92fr) minmax(430px,.72fr)!important;
  grid-template-areas:"scene login"!important;
  gap:30px!important;
  align-items:center!important;
}
.btp-login-scene{
  grid-area:scene!important;
  min-height:560px!important;
  padding:34px!important;
  border-radius:34px!important;
  display:grid!important;
  grid-template-rows:auto auto minmax(150px,1fr)!important;
  align-content:start!important;
  gap:24px!important;
  background:
    radial-gradient(circle at top right,rgba(214,163,75,.12),transparent 33%),
    linear-gradient(145deg,rgba(12,17,25,.94),rgba(18,27,39,.92) 62%,rgba(25,37,53,.94))!important;
  border:1px solid rgba(214,163,75,.14)!important;
  box-shadow:0 34px 84px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.035)!important;
}
.btp-login-scene-copy{max-width:560px!important}
.btp-login-scene-copy span{font-size:12px!important;letter-spacing:.24em!important;margin-bottom:14px!important;color:#e6bf69!important}
.btp-login-scene-copy h3{font-size:clamp(34px,3.4vw,48px)!important;line-height:1.00!important;max-width:14ch!important;margin-bottom:16px!important}
.btp-login-scene-copy p{font-size:15px!important;line-height:1.65!important;max-width:47ch!important;color:#bac6d3!important}
.btp-login-scene-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
.btp-login-scene-metrics article{
  min-width:0!important;
  padding:15px 16px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025))!important;
  border:1px solid rgba(214,163,75,.10)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
.btp-login-scene-metrics small{display:block!important;color:#d9b566!important;font-size:12px!important;font-weight:800!important;letter-spacing:.14em!important}
.btp-login-scene-metrics strong{display:block!important;margin-top:8px!important;color:#f6f1e8!important;font-size:17px!important;letter-spacing:-.02em!important}
.btp-login-scene-metrics span{display:block!important;margin-top:6px!important;color:#94a1af!important;font-size:12px!important;line-height:1.45!important}
.btp-login-trajectory{
  min-height:160px!important;
  border-radius:22px!important;
  padding:18px 20px 14px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018))!important;
  border:1px solid rgba(214,163,75,.10)!important;
  overflow:hidden!important;
}
.btp-login-trajectory-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;margin-bottom:6px!important}
.btp-login-trajectory-head span{font-size:12px!important;letter-spacing:.16em!important;color:#8795a5!important;font-weight:800!important}
.btp-login-trajectory-head strong{font-size:12px!important;color:#e9c977!important}
.btp-login-trajectory svg{display:block!important;width:100%!important;height:118px!important;overflow:visible!important}
.btp-login-trajectory-grid{fill:none!important;stroke:rgba(255,255,255,.055)!important;stroke-width:1!important}
.btp-login-trajectory-line{fill:none!important;stroke:url(#btpSalesLine)!important;stroke-width:4!important;stroke-linecap:round!important;filter:drop-shadow(0 4px 10px rgba(214,163,75,.16))!important}
.btp-login-trajectory circle{fill:#e5bc63!important;stroke:#182130!important;stroke-width:3!important}
.btp-login-card{
  grid-area:login!important;
  width:100%!important;
  max-width:500px!important;
  padding:32px 30px!important;
  border-radius:32px!important;
  justify-self:end!important;
}
.btp-login-card>.btp-brand{margin-bottom:20px!important}
.btp-login-kicker{margin:4px 0 10px!important}
.btp-login-card h2{font-size:clamp(34px,3vw,43px)!important;line-height:1.02!important;margin-bottom:12px!important}
.btp-login-card>p{font-size:14px!important;line-height:1.62!important;margin-bottom:22px!important}
.btp-login-form{gap:15px!important}
.btp-login-form input[type="text"],.btp-login-form input[type="password"]{height:56px!important}
.btp-login-links{margin-top:16px!important}

@media(max-width:1080px){
  .btp-login-stage{
    grid-template-columns:minmax(0,640px)!important;
    grid-template-areas:"login" "scene"!important;
    justify-content:center!important;
    align-items:start!important;
  }
  .btp-login-card{grid-area:login!important;order:initial!important;justify-self:center!important;max-width:560px!important}
  .btp-login-scene{grid-area:scene!important;order:initial!important;min-height:0!important;max-width:760px!important;width:100%!important}
}
@media(max-width:820px){
  .btp-login-shell{align-items:flex-start!important;padding:22px 16px 28px!important}
  .btp-login-stage{gap:18px!important}
  .btp-login-card{max-width:600px!important}
  .btp-login-scene{padding:26px!important}
  .btp-login-scene-copy h3{font-size:34px!important;max-width:none!important}
  .btp-login-scene-metrics{grid-template-columns:1fr!important}
  .btp-login-trajectory{display:none!important}
}
@media(max-width:720px){
  .btp-table-panel{padding:0 10px 12px!important}
  .btp-table-panel .btp-section-head{padding:20px 10px 0!important}
  .btp-table-panel .btp-table-wrap{margin:10px 0 0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  .btp-login-scene{display:none!important}
  .btp-login-stage{grid-template-areas:"login"!important}
  .btp-login-card{padding:26px 20px!important;border-radius:28px!important}
  .btp-login-card h2{font-size:clamp(30px,9.5vw,38px)!important;max-width:none!important}
  .btp-login-card>p{font-size:13.5px!important}
  .btp-route-transition__mark{width:150px!important;height:158px!important}
  .btp-route-transition__copy{max-width:280px!important}
}
@media(max-width:430px){
  .btp-login-shell{padding:14px 12px 22px!important}
  .btp-login-card{padding:24px 18px!important}
  .btp-login-brand .btp-brand-name{font-size:22px!important}
  .btp-login-card h2{font-size:31px!important}
  .btp-route-transition__copy strong{font-size:15.5px!important}
  .btp-route-transition__copy span{font-size:12px!important}
}

@media(prefers-reduced-motion:reduce){
  .btp-route-transition__orbit,
  .btp-route-transition__pulse,
  .btp-route-transition__logo,
  .btp-route-transition__growth i,
  .btp-route-transition__progress span,
  .btp-login-shell::after,
  .btp-view.btp-view-arrive{animation:none!important}
  .btp-route-transition{transition:none!important}
}

/* ================================================================
   v0.9.0 — full-surface tables + guided message personalization
   ================================================================ */

/* Tables now use the complete premium field. Backgrounds reach every edge,
   while separators remain inset so they never collide with the rounded card. */
@media (min-width:721px){
  .btp-table-panel{
    padding:0!important;
    overflow:hidden!important;
    border-radius:26px!important;
  }
  .btp-table-panel .btp-section-head{
    margin:0!important;
    padding:28px 28px 20px!important;
    background:linear-gradient(180deg,#fff 0%,#fdfbf7 100%)!important;
  }
  .btp-table-panel .btp-table-wrap{
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    overflow:auto!important;
    background:#f6f6f6!important;
    box-shadow:none!important;
  }
  .btp-table{
    width:100%!important;
    min-width:860px;
    border-collapse:separate!important;
    border-spacing:0!important;
    background:#f6f6f6!important;
  }
  .btp-table thead,
  .btp-table tbody,
  .btp-table tr{position:relative}
  .btp-table thead{background:#fbfaf7!important}
  .btp-table thead::after{
    content:"";
    position:absolute;
    left:26px;right:26px;bottom:0;height:1px;
    background:linear-gradient(90deg,transparent,#e7e0d3 7%,#e7e0d3 93%,transparent);
    pointer-events:none;
  }
  .btp-table th{
    background:transparent!important;
    border:0!important;
    padding-top:18px!important;
    padding-bottom:18px!important;
  }
  .btp-table tbody{background:#f6f6f6!important}
  .btp-table tbody tr{background:#f6f6f6!important}
  .btp-table tbody tr:not(:last-child)::after{
    content:"";
    position:absolute;
    left:26px;right:26px;bottom:0;height:1px;
    background:linear-gradient(90deg,transparent,#e9e9e9 8%,#e9e9e9 92%,transparent);
    pointer-events:none;
  }
  .btp-table td{
    background:transparent!important;
    border:0!important;
  }
  .btp-table .btp-empty{
    min-height:172px!important;
    height:172px!important;
    background:#f6f6f6!important;
  }
  .btp-table-panel:has(.btp-empty) .btp-table-wrap{background:#f6f6f6!important}
}

/* Message workspace */
.btp-message-helper{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin:0 0 20px;
  padding:18px 20px;
  border:1px solid rgba(214,163,75,.16);
  border-radius:22px;
  background:
    radial-gradient(circle at top right,rgba(214,163,75,.09),transparent 36%),
    linear-gradient(180deg,#fffdf8,#faf7ef);
  box-shadow:0 12px 28px rgba(12,16,24,.05);
}
.btp-message-helper strong{display:block;color:var(--btp-ink);font-size:15px;margin-bottom:4px}
.btp-message-helper p{margin:0;color:#71808f;font-size:13px;line-height:1.55;max-width:760px}
.btp-message-helper-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#111925;
  color:#f1d48b;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  white-space:nowrap;
}
.btp-message-grid{align-items:stretch}
.btp-message-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
  padding:22px!important;
}
.btp-message-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.btp-message-card-head>div{min-width:0}
.btp-message-card-head>div>span{font-size:12px;letter-spacing:.16em;color:#a56f00;font-weight:800}
.btp-message-card h3{margin:8px 0 0;color:var(--btp-ink);font-size:20px;line-height:1.18;text-wrap:balance}
.btp-message-channel{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 9px;
  border-radius:999px;
  background:#f4f0e7;
  border:1px solid #e8dfcf;
  color:#7b6b50;
  font-size:12px;
  font-weight:800;
  letter-spacing:.11em;
}
.btp-message-preview{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#55626e;
  line-height:1.62;
  background:linear-gradient(180deg,#fbfaf8,#f8f7f4);
  border:1px solid #ece7dd;
  border-radius:17px;
  padding:16px;
  margin-top:16px;
  min-height:154px;
  max-height:260px;
  overflow:auto;
  font-size:14px;
}
.btp-message-vars{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0 0}
.btp-message-vars span{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border-radius:999px;
  background:#fff7e5;
  border:1px solid #efdeb5;
  color:#8a620e;
  font-size:12px;
  font-weight:700;
}
.btp-message-vars span.is-ready{background:#edf8f2;border-color:#cde9da;color:#28714d}
.btp-message-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:auto;padding-top:16px}
.btp-message-actions .btp-primary{flex:1 1 190px}
.btp-message-actions .btp-mini{flex:0 1 auto;min-width:130px}
.btp-copy-message:disabled{
  cursor:not-allowed!important;
  opacity:.52!important;
  filter:saturate(.45)!important;
  transform:none!important;
}

/* Message personalization modal */
.btp-message-editor{
  position:fixed;
  inset:0;
  z-index:2147482500;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(8,12,18,.68);
  backdrop-filter:blur(8px);
}
.btp-message-editor.is-open{display:flex}
.btp-message-editor-card{
  width:min(820px,100%);
  max-height:min(88vh,900px);
  overflow:auto;
  position:relative;
  border-radius:30px;
  padding:28px;
  background:
    radial-gradient(circle at top right,rgba(214,163,75,.10),transparent 30%),
    linear-gradient(180deg,#fff,#fcfaf6);
  border:1px solid rgba(214,163,75,.16);
  box-shadow:0 36px 100px rgba(5,9,15,.30);
}
.btp-message-editor-close{
  position:absolute;
  top:16px;right:16px;
  width:42px;height:42px;
  display:grid;place-items:center;
  border:1px solid #e8e1d5;
  border-radius:50%;
  background:#fff;
  color:#273241;
  font-size:24px;
  cursor:pointer;
}
.btp-message-editor-head{padding-right:54px;margin-bottom:20px}
.btp-message-editor-head>span,
.btp-message-editor-preview-wrap>span{
  color:#9b6a00;
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
}
.btp-message-editor-head h3{margin:8px 0 7px;color:var(--btp-ink);font-size:28px;line-height:1.08;text-wrap:balance}
.btp-message-editor-head p{margin:0;color:#748190;line-height:1.55;max-width:62ch}
.btp-message-lead-select{
  display:grid;
  gap:7px;
  margin-bottom:18px;
  padding:16px;
  border-radius:18px;
  background:#f8f5ed;
  border:1px solid #ebe1cb;
  color:#596675;
  font-size:12px;
  font-weight:800;
}
.btp-message-lead-select select{
  width:100%;height:50px;padding:0 13px;
  border:1px solid #d8d3c9;
  border-radius:14px;
  background:#fff;
  color:var(--btp-ink);
  outline:none;
}
.btp-message-lead-select small{font-weight:500;color:#87929f;line-height:1.45}
.btp-message-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.btp-message-field{display:grid;gap:7px;min-width:0}
.btp-message-field>span{font-size:12px;font-weight:800;color:#5c6876}
.btp-message-field-control{
  display:flex;
  align-items:center;
  min-width:0;
  height:52px;
  overflow:hidden;
  border:1px solid #d8d3c9;
  border-radius:15px;
  background:#fff;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.btp-message-field-control em{
  align-self:stretch;
  display:flex;align-items:center;
  padding:0 12px;
  border-right:1px solid #ece7dd;
  background:#faf7ef;
  color:#8c6415;
  font-style:normal;
  font-size:12px;
  font-weight:800;
}
.btp-message-field-input{
  width:100%!important;height:100%!important;min-width:0!important;
  border:0!important;outline:0!important;box-shadow:none!important;
  background:transparent!important;padding:0 13px!important;color:var(--btp-ink)!important;
}
.btp-message-field:focus-within .btp-message-field-control{border-color:rgba(214,163,75,.75);box-shadow:0 0 0 4px rgba(214,163,75,.11)}
.btp-message-field.has-error .btp-message-field-control{border-color:#d96666;box-shadow:0 0 0 4px rgba(217,102,102,.10)}
.btp-message-field.has-error>span{color:#b64c4c}
.btp-message-editor-preview-wrap{margin-top:20px}
.btp-message-editor-preview{
  margin-top:8px;
  min-height:130px;
  max-height:240px;
  overflow:auto;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  padding:16px 17px;
  border-radius:18px;
  border:1px solid #e6dfd3;
  background:#f7f7f5;
  color:#485563;
  line-height:1.65;
  font-size:14px;
}
.btp-message-editor-error{
  margin-top:12px;
  padding:11px 13px;
  border-radius:14px;
  background:#fff0f0;
  border:1px solid #edcaca;
  color:#a84c4c;
  font-size:12px;
  font-weight:700;
}
.btp-message-editor-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.btp-message-editor-actions .btp-primary{min-width:220px}
body.btp-modal-open{overflow:hidden!important}

@media(max-width:720px){
  .btp-message-helper{align-items:flex-start;flex-direction:column;padding:16px}
  .btp-message-helper-badge{white-space:normal;line-height:1.3;padding:8px 11px}
  .btp-message-grid{grid-template-columns:1fr!important}
  .btp-message-card{padding:18px!important}
  .btp-message-preview{min-height:0;max-height:none}
  .btp-message-actions{flex-direction:column}
  .btp-message-actions .btp-primary,.btp-message-actions .btp-mini{width:100%;flex:auto}
  .btp-message-editor{align-items:flex-end;padding:10px}
  .btp-message-editor-card{
    width:100%;max-height:92vh;
    padding:22px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius:26px 26px 18px 18px;
  }
  .btp-message-editor-head{padding-right:44px}
  .btp-message-editor-head h3{font-size:23px}
  .btp-message-fields{grid-template-columns:1fr}
  .btp-message-editor-actions{flex-direction:column-reverse}
  .btp-message-editor-actions .btp-primary,.btp-message-editor-actions .btp-mini{width:100%;min-width:0}
}

/* v0.10.0 — messages cleaner + prompt library */
.btp-message-vars-pending{display:none!important;margin:0!important}
.btp-message-actions .is-hidden{display:none!important}
.btp-message-actions{margin-top:18px}
.btp-message-card:has(.btp-message-vars-pending) .btp-message-actions .btp-primary{width:100%}

.btp-prompts-head{align-items:center}
.btp-prompts-head>.btp-primary{flex:0 0 auto;white-space:nowrap}
.btp-prompt-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:12px 14px;border:1px solid rgba(214,163,75,.12);border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 10px 26px rgba(12,16,24,.05)}
.btp-prompt-toolbar>span{font-size:12px;color:#7b8693;white-space:nowrap}
.btp-prompt-search{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.btp-prompt-search .dashicons{color:#b88628;font-size:18px;width:18px;height:18px}
.btp-prompt-search input{width:100%;border:0!important;background:transparent!important;outline:none!important;box-shadow:none!important;color:var(--btp-ink);padding:8px 4px!important;height:auto!important}
.btp-prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.btp-prompt-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:22px;border-radius:26px;background:linear-gradient(180deg,#fff 0%,#fcfaf7 100%);border:1px solid rgba(214,163,75,.11);box-shadow:0 16px 36px rgba(12,16,24,.07),inset 0 1px 0 rgba(255,255,255,.84);overflow:hidden}
.btp-prompt-card::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(214,163,75,.55),transparent)}
.btp-prompt-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.btp-prompt-card-head>span{font-size:12px;letter-spacing:.16em;color:#a56f00;font-weight:800}
.btp-prompt-menu{display:flex;gap:7px}
.btp-prompt-menu .btp-mini{padding:7px 10px!important;border-radius:12px!important}
.btp-prompt-menu .btp-delete-prompt{width:34px;height:34px;padding:0!important;font-size:19px;line-height:1}
.btp-prompt-card h3{margin:14px 0 7px;font-size:21px;line-height:1.15;color:var(--btp-ink);text-wrap:balance}
.btp-prompt-card>p{margin:0 0 14px;color:#778391;font-size:13px;line-height:1.6}
.btp-prompt-card pre{white-space:pre-wrap;word-break:break-word;font-family:inherit;margin:0;padding:15px;border:1px solid #ece7dd;border-radius:17px;background:#faf9f6;color:#566371;line-height:1.6;max-height:250px;overflow:auto;flex:1}
.btp-prompt-actions{display:flex;margin-top:16px}
.btp-prompt-actions .btp-primary{width:100%}
.btp-prompt-empty{grid-column:1/-1;text-align:center;padding:46px 28px!important}
.btp-prompt-empty>.dashicons{font-size:36px;width:36px;height:36px;color:#c59536}
.btp-prompt-empty h3{margin:15px 0 8px;color:var(--btp-ink);font-size:22px}
.btp-prompt-empty p{max-width:520px;margin:0 auto 20px;color:#7b8693;line-height:1.65}

.btp-prompt-editor{position:fixed;inset:0;z-index:100020;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(8,12,18,.72);backdrop-filter:blur(8px)}
.btp-prompt-editor.is-open{display:flex}
.btp-prompt-editor-card{position:relative;width:min(820px,100%);max-height:min(88vh,920px);overflow:auto;padding:28px;border-radius:28px;background:linear-gradient(180deg,#fff,#fcfaf7);border:1px solid rgba(214,163,75,.16);box-shadow:0 34px 90px rgba(6,10,16,.28)}
.btp-prompt-editor-close{position:absolute;right:18px;top:16px;width:42px;height:42px;border:1px solid rgba(214,163,75,.18);border-radius:50%;background:#f6f1e7;color:var(--btp-ink);font-size:24px;cursor:pointer;z-index:2}
.btp-prompt-form{display:grid;gap:15px}
.btp-prompt-form label{display:grid;gap:7px;color:#5f6b79;font-size:12px;font-weight:800}
.btp-prompt-form input,.btp-prompt-form select,.btp-prompt-form textarea{width:100%;border:1px solid #d9d6cf;background:#fff;border-radius:15px;padding:12px 14px;color:var(--btp-ink);outline:none;resize:vertical}
.btp-prompt-form input,.btp-prompt-form select{height:50px}
.btp-prompt-form textarea{min-height:300px;line-height:1.55}
.btp-prompt-form input:focus,.btp-prompt-form select:focus,.btp-prompt-form textarea:focus{border-color:rgba(214,163,75,.78);box-shadow:0 0 0 4px rgba(214,163,75,.12)}
.btp-prompt-form .is-invalid{border-color:#b85656!important;box-shadow:0 0 0 4px rgba(184,86,86,.10)!important}
.btp-prompt-form [data-btp-prompt-submit].is-loading{opacity:.74;cursor:wait;transform:none!important;pointer-events:none}
.btp-prompt-form-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:14px}

@media(max-width:900px){
  .btp-prompt-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  .btp-prompts-head{align-items:flex-start;flex-direction:column}
  .btp-prompts-head>.btp-primary{width:100%}
  .btp-prompt-toolbar{flex-direction:column;align-items:stretch}
  .btp-prompt-toolbar>span{white-space:normal}
  .btp-prompt-card{padding:18px;border-radius:22px}
  .btp-prompt-form-grid{grid-template-columns:1fr}
  .btp-prompt-editor{align-items:flex-end;padding:10px}
  .btp-prompt-editor-card{width:100%;max-height:92vh;border-radius:26px 26px 18px 18px;padding:22px 18px}
  .btp-prompt-form textarea{min-height:250px}
}

/* ================================================================
   v0.11.0 — responsive workspace stabilization
   Navigation icons, compact empty states and bounded work areas
   ================================================================ */

/* Let copy use the available width. Wrap only when the viewport requires it. */
.btp-hero h2,
.btp-section-head h2,
.btp-settings-title h3,
.btp-account-card h3,
.btp-login-card h2,
.btp-message-card h3,
.btp-prompt-card h3{
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  text-wrap:balance!important;
}
.btp-section-head>div,
.btp-topbar-copy,
.btp-message-card-head>div,
.btp-prompt-card-head,
.btp-account-card,
.btp-usertext{min-width:0!important}

/* Dense work areas get their own elegant scrolling so the full page does not
   become excessively long once real data is present. */
@media (min-width:721px){
  .btp-view[data-view="mensagens"] .btp-message-grid,
  .btp-view[data-view="prompts"] .btp-prompt-grid{
    max-height:min(66vh,720px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scroll-padding:12px;
    padding:2px 8px 12px 2px;
  }
  .btp-table-panel:not(:has(.btp-empty)) .btp-table-wrap{
    max-height:min(64vh,680px)!important;
    overflow:auto!important;
    overscroll-behavior:contain;
  }
  .btp-pipe-col:not(:has(.btp-pipe-empty)){
    max-height:min(64vh,680px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
}

/* Empty states should be compact. Their size grows only after data exists. */
.btp-table-panel:has(.btp-empty){min-height:0!important}
.btp-table-panel:has(.btp-empty) .btp-table-wrap{min-height:0!important}
.btp-table-panel:has(.btp-empty) .btp-table .btp-empty{
  min-height:118px!important;
  height:auto!important;
  padding:24px 20px!important;
}
.btp-pipe-col:has(.btp-pipe-empty){min-height:0!important;height:auto!important}
.btp-pipe-col:has(.btp-pipe-empty) .btp-pipe-empty{min-height:92px!important}

/* Bottom navigation icons are explicit and protected from label typography. */
@media (max-width:720px){
  .btp-main{padding:16px 14px calc(96px + env(safe-area-inset-bottom))!important}
  .btp-sidebar{padding-bottom:calc(9px + env(safe-area-inset-bottom))!important}
  .btp-sidebar nav.btp-nav{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:4px!important;
  }
  .btp-sidebar nav.btp-nav>.btp-primary-nav,
  .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle{
    min-height:62px!important;
    padding:8px 3px 7px!important;
    gap:5px!important;
  }
  .btp-sidebar nav.btp-nav .btp-nav-icon.dashicons{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    flex:0 0 20px!important;
    width:20px!important;
    height:20px!important;
    margin:0 auto!important;
    font-family:dashicons!important;
    font-size:20px!important;
    font-weight:400!important;
    line-height:20px!important;
    text-align:center!important;
    color:#f0d18a!important;
    -webkit-font-smoothing:antialiased!important;
  }
  /* Only the five primary labels are replaced by their short mobile labels. */
  .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child{
    display:block!important;
    width:100%!important;
    font-size:0!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
  .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after{
    content:attr(data-mobile)!important;
    display:block!important;
    font-size:12px!important;
    line-height:1.15!important;
    color:inherit!important;
  }
  .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child{
    display:block!important;
    font-size:12px!important;
    line-height:1.15!important;
    color:inherit!important;
  }

  /* More menu: keep every icon and every label visible. */
  .btp-nav-more{
    left:12px!important;
    right:12px!important;
    bottom:calc(84px + env(safe-area-inset-bottom))!important;
    max-height:min(58dvh,430px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:12px!important;
  }
  .btp-sidebar nav.btp-nav .btp-nav-more button{
    min-width:0!important;
    min-height:54px!important;
    padding:10px 11px!important;
    gap:9px!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-direction:row!important;
    text-align:left!important;
  }
  .btp-sidebar nav.btp-nav .btp-nav-more button .btp-nav-icon.dashicons{
    flex:0 0 18px!important;
    width:18px!important;
    height:18px!important;
    margin:0!important;
    font-size:18px!important;
    line-height:18px!important;
  }
  .btp-sidebar nav.btp-nav .btp-nav-more button>span:last-child{
    display:block!important;
    min-width:0!important;
    font-size:12px!important;
    line-height:1.22!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    color:#e2e8ef!important;
  }
  .btp-sidebar nav.btp-nav .btp-nav-more button>span:last-child::after{content:none!important}

  /* Headings now expand across the card before wrapping. */
  .btp-hero h2,
  .btp-section-head h2,
  .btp-settings-title h3,
  .btp-account-card h3{
    max-width:100%!important;
    font-size:clamp(25px,8.2vw,34px)!important;
    line-height:1.08!important;
  }
  .btp-hero p,.btp-section-head p{max-width:100%!important}

  /* Empty mobile tables are real compact states instead of oversized blank cards. */
  .btp-table-panel:has(.btp-empty){
    padding:0 0 14px!important;
    border-radius:24px!important;
  }
  .btp-table-panel:has(.btp-empty) .btp-section-head{padding:20px 20px 4px!important}
  .btp-table-panel:has(.btp-empty) .btp-table-wrap{
    margin:8px 14px 0!important;
    padding:0!important;
    max-height:none!important;
    overflow:visible!important;
    background:transparent!important;
  }
  .btp-table-panel:has(.btp-empty) .btp-table,
  .btp-table-panel:has(.btp-empty) .btp-table tbody,
  .btp-table-panel:has(.btp-empty) .btp-table tbody tr{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
  }
  .btp-table-panel:has(.btp-empty) .btp-table tbody tr{
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  .btp-table-panel:has(.btp-empty) .btp-table .btp-empty{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:112px!important;
    height:auto!important;
    padding:20px 16px!important;
    margin:0!important;
    border:1px solid #ebe6dc!important;
    border-radius:18px!important;
    background:linear-gradient(180deg,#fbfaf7,#f7f5f1)!important;
    text-align:center!important;
    color:#768292!important;
  }
  .btp-table-panel:has(.btp-empty) .btp-table .btp-empty::before{display:none!important}
  .btp-table-panel:has(.btp-empty) .btp-table .btp-empty strong,
  .btp-table-panel:has(.btp-empty) .btp-table .btp-empty small{
    display:block!important;
    width:100%!important;
    max-width:280px!important;
    margin:0 auto!important;
    text-align:center!important;
  }
  .btp-table-panel:has(.btp-empty) .btp-table .btp-empty strong{
    color:var(--btp-ink)!important;
    font-size:18px!important;
    line-height:1.2!important;
  }
  .btp-table-panel:has(.btp-empty) .btp-table .btp-empty small{
    margin-top:7px!important;
    color:#8b96a4!important;
    font-size:12px!important;
    line-height:1.5!important;
  }

  /* Real data scrolls inside the workspace instead of making the full page huge. */
  .btp-table-panel:not(:has(.btp-empty)) .btp-table-wrap{
    max-height:calc(100dvh - 270px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    padding-bottom:10px!important;
  }
  .btp-view[data-view="mensagens"] .btp-message-grid,
  .btp-view[data-view="prompts"] .btp-prompt-grid{
    max-height:calc(100dvh - 245px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    padding:2px 4px 14px 0!important;
  }
  .btp-message-preview{
    min-height:0!important;
    max-height:220px!important;
    overflow:auto!important;
  }
  .btp-prompt-card pre{max-height:220px!important}
  .btp-pipeline{max-height:calc(100dvh - 250px)!important;overflow-y:hidden!important}
  .btp-pipe-col{max-height:calc(100dvh - 285px)!important;overflow-y:auto!important}
  .btp-pipe-col:has(.btp-pipe-empty){max-height:none!important;overflow:visible!important}

  /* Personalization modal stays inside the viewport; preview and actions stay usable. */
  .btp-message-editor-card{
    max-height:calc(100dvh - 18px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }
  .btp-message-editor-preview{min-height:96px!important;max-height:180px!important;overflow:auto!important}
  .btp-message-editor-actions{
    position:sticky!important;
    bottom:-1px!important;
    z-index:4!important;
    padding-top:12px!important;
    padding-bottom:2px!important;
    background:linear-gradient(180deg,rgba(252,250,246,0),#fcfaf6 22%,#fcfaf6 100%)!important;
  }
}

@media (max-width:380px){
  .btp-main{padding-left:12px!important;padding-right:12px!important}
  .btp-sidebar nav.btp-nav>.btp-primary-nav,
  .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle{padding-left:2px!important;padding-right:2px!important}
  .btp-sidebar nav.btp-nav .btp-nav-icon.dashicons{font-size:19px!important;width:19px!important;height:19px!important;line-height:19px!important}
  .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child{font-size:12px!important}
  .btp-nav-more{grid-template-columns:1fr!important;max-height:min(61dvh,450px)!important}
  .btp-sidebar nav.btp-nav .btp-nav-more button>span:last-child{font-size:12.5px!important}
}

/* ================================================================
   v0.12.0 — sidebar finish + anti-theme color bleed
   ================================================================ */

/* The version label was intentionally removed from the product UI. Keep the
   sidebar visually complete on every view and viewport. */
.btp-sidebar{
  min-height:100vh!important;
  height:100dvh!important;
  bottom:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  padding-bottom:24px!important;
}
.btp-sidebar-foot{display:none!important}

/* Elementor/theme global button colors must never leak into the Prospect UI. */
.btp-app .btp-modal-close,
.btp-app .btp-message-editor-close,
.btp-app .btp-prompt-editor-close,
.btp-app .btp-delete-prompt{
  -webkit-appearance:none!important;
  appearance:none!important;
  background:linear-gradient(180deg,#1a2230 0%,#101722 100%)!important;
  background-color:#111722!important;
  color:#f0cf83!important;
  border:1px solid rgba(214,163,75,.34)!important;
  box-shadow:0 10px 24px rgba(8,12,18,.16),inset 0 1px 0 rgba(255,255,255,.06)!important;
  outline:none!important;
  text-decoration:none!important;
  transition:background-color .22s ease,border-color .22s ease,box-shadow .22s ease,color .22s ease,transform .22s ease!important;
}
.btp-app .btp-modal-close:hover,
.btp-app .btp-message-editor-close:hover,
.btp-app .btp-prompt-editor-close:hover,
.btp-app .btp-delete-prompt:hover{
  background:linear-gradient(180deg,#232d3d 0%,#151d29 100%)!important;
  background-color:#182130!important;
  color:#ffe2a0!important;
  border-color:rgba(214,163,75,.62)!important;
  box-shadow:0 12px 28px rgba(8,12,18,.22),0 0 0 3px rgba(214,163,75,.08)!important;
  transform:translateY(-1px)!important;
}
.btp-app .btp-modal-close:focus-visible,
.btp-app .btp-message-editor-close:focus-visible,
.btp-app .btp-prompt-editor-close:focus-visible,
.btp-app .btp-delete-prompt:focus-visible{
  box-shadow:0 0 0 4px rgba(214,163,75,.18)!important;
}

/* Lock the Prospect's core buttons to the design system even when Elementor
   global colors or theme button rules use higher specificity. */
body .btp-app .btp-primary,
body .btp-login-shell .btp-primary{
  background:linear-gradient(180deg,#f0cc7a 0%,#d6a34b 100%)!important;
  background-color:#d6a34b!important;
  color:#16110c!important;
  border-color:rgba(160,111,17,.20)!important;
}
body .btp-app .btp-mini,
body .btp-app .btp-ghost{
  background-color:#f8f5ee!important;
  color:#243040!important;
  border-color:rgba(214,163,75,.18)!important;
}
body .btp-app .btp-primary-nav,
body .btp-app .btp-mobile-more-toggle,
body .btp-app .btp-nav-more button{
  background-color:transparent!important;
}
body .btp-app .btp-primary-nav.is-active,
body .btp-app .btp-mobile-more-toggle.is-active,
body .btp-app .btp-nav-more button.is-active{
  background:linear-gradient(90deg,rgba(214,163,75,.22),rgba(214,163,75,.07))!important;
}

@media (max-width:720px){
  .btp-sidebar{
    min-height:0!important;
    height:auto!important;
    padding-bottom:calc(9px + env(safe-area-inset-bottom))!important;
    overflow:visible!important;
  }
}


/* v0.12.1 — icon actions follow the rounded Prospect design system */
body .btp-app .btp-modal-close,
body .btp-app .btp-message-editor-close,
body .btp-app .btp-prompt-editor-close{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  max-width:44px!important;
  max-height:44px!important;
  aspect-ratio:1 / 1!important;
  padding:0!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  line-height:1!important;
  flex:0 0 44px!important;
}

@media (max-width:720px){
  body .btp-app .btp-modal-close,
  body .btp-app .btp-message-editor-close,
  body .btp-app .btp-prompt-editor-close{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    max-width:42px!important;
    max-height:42px!important;
    flex-basis:42px!important;
  }
}

/* ================================================================
   v0.13.0 — definitive ByThomas Prospect brand rollout
   ================================================================ */

/* Production logo assets replace the provisional CSS-drawn brand. */
.btp-brand{
  display:block!important;
  width:100%!important;
  line-height:0!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
.btp-brand-image,
.btp-brand-mark{
  display:block;
  max-width:100%;
  height:auto;
  object-fit:contain;
  pointer-events:none;
  -webkit-user-drag:none;
  user-select:none;
}
.btp-brand--sidebar{
  width:min(194px,100%)!important;
  margin:0 auto!important;
}
.btp-brand--sidebar .btp-brand-image{width:100%!important}
.btp-brand--sidebar .btp-brand-mark{display:none!important}
.btp-brand--login{
  width:min(252px,72%)!important;
  margin:0 0 20px!important;
}
.btp-brand--login .btp-brand-image{width:100%!important}
.btp-brand-wrap{margin-bottom:26px!important}
.btp-brand-tag{
  margin:14px 2px 0!important;
  max-width:194px!important;
  color:#9aa5b2!important;
  font-size:12px!important;
  line-height:1.6!important;
}

/* Transition uses the new logo and keeps the sales-growth cue separate. */
.btp-route-transition__mark{
  width:min(360px,86vw)!important;
  height:184px!important;
  padding:0 0 44px!important;
  display:grid!important;
  place-items:center!important;
  isolation:isolate!important;
}
.btp-route-transition__mark::before{
  content:"";
  position:absolute;
  inset:10px 12% 34px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(214,163,75,.16),rgba(214,163,75,.04) 45%,transparent 72%);
  filter:blur(8px);
  animation:btpBrandAura 1.8s ease-in-out infinite;
}
.btp-route-transition__orbit,
.btp-route-transition__pulse{display:none!important}
.btp-route-transition__brand-image{
  position:relative!important;
  z-index:4!important;
  width:min(278px,76vw)!important;
  max-width:100%!important;
  height:auto!important;
  display:block!important;
  object-fit:contain!important;
  pointer-events:none!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.26));
  animation:btpBrandReveal .62s cubic-bezier(.2,.78,.2,1) both;
}
.btp-route-transition__growth{
  position:absolute!important;
  left:50%!important;
  bottom:6px!important;
  transform:translateX(-50%)!important;
  z-index:5!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  gap:6px!important;
  width:auto!important;
  height:32px!important;
  margin:0!important;
}
.btp-route-transition__growth::after{
  content:"";
  position:absolute;
  left:-10px;
  right:-16px;
  top:-8px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,rgba(214,163,75,.36),#edca7d 74%,transparent);
  transform:rotate(-8deg);
  transform-origin:right center;
  opacity:.62;
}
.btp-route-transition__growth i{
  width:7px!important;
  border-radius:999px 999px 2px 2px!important;
  background:linear-gradient(180deg,#f5dda2,#b37b16)!important;
  box-shadow:0 8px 18px rgba(214,163,75,.16)!important;
  transform-origin:center bottom!important;
  animation:btpRevenueBars .78s cubic-bezier(.2,.75,.2,1) both!important;
}
.btp-route-transition__growth i:nth-child(1){height:9px!important;animation-delay:.04s!important}
.btp-route-transition__growth i:nth-child(2){height:15px!important;animation-delay:.10s!important}
.btp-route-transition__growth i:nth-child(3){height:22px!important;animation-delay:.16s!important}
.btp-route-transition__growth i:nth-child(4){height:30px!important;animation-delay:.22s!important}
@keyframes btpBrandReveal{
  from{opacity:0;transform:translateY(9px) scale(.96);filter:blur(4px) drop-shadow(0 18px 30px rgba(0,0,0,.12))}
  to{opacity:1;transform:none;filter:blur(0) drop-shadow(0 18px 30px rgba(0,0,0,.26))}
}
@keyframes btpRevenueBars{
  from{opacity:0;transform:scaleY(.12) translateY(7px)}
  to{opacity:1;transform:scaleY(1) translateY(0)}
}
@keyframes btpBrandAura{
  0%,100%{opacity:.55;transform:scale(.96)}
  50%{opacity:1;transform:scale(1.04)}
}

/* Keep the logo proportional in the compact desktop navigation. */
@media (max-width:1180px) and (min-width:721px){
  .btp-brand--sidebar{width:58px!important;margin:0 auto!important}
  .btp-brand--sidebar .btp-brand-image{display:none!important}
  .btp-brand--sidebar .btp-brand-mark{
    display:block!important;
    width:52px!important;
    height:54px!important;
    object-fit:contain!important;
    margin:0 auto!important;
    filter:drop-shadow(0 10px 20px rgba(214,163,75,.14));
  }
  .btp-brand-wrap{margin-bottom:20px!important}
  .btp-brand-tag{display:none!important}
}

@media (max-width:720px){
  /* The bottom navigation does not need a logo; login still does. */
  .btp-brand--sidebar{display:none!important}
  .btp-login-card>.btp-brand--login{
    display:block!important;
    width:min(238px,78%)!important;
    margin:0 0 18px!important;
  }
  .btp-route-transition__mark{
    width:min(300px,90vw)!important;
    height:162px!important;
    padding-bottom:40px!important;
  }
  .btp-route-transition__brand-image{width:min(236px,78vw)!important}
  .btp-route-transition__growth{bottom:4px!important}
}

@media (max-width:380px){
  .btp-login-card>.btp-brand--login{width:min(220px,82%)!important}
  .btp-route-transition__mark{height:152px!important}
  .btp-route-transition__brand-image{width:min(216px,80vw)!important}
}

@media (prefers-reduced-motion:reduce){
  .btp-route-transition__brand-image,
  .btp-route-transition__growth i,
  .btp-route-transition__mark::before{animation:none!important}
}

/* =========================================================
   v0.14.0 · Qualification Engine
   Mantém a identidade premium preto/dourado e adiciona uma
   camada visual própria para busca, score e diagnóstico.
========================================================= */
.btp-prospect-head{margin-bottom:18px}
.btp-prospect-head h2{max-width:760px}
.btp-prospect-head p{max-width:820px}
.btp-prospect-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.72fr);gap:18px;align-items:start}
.btp-search-panel{padding:28px!important;overflow:hidden}
.btp-search-panel::before{content:"";position:absolute;right:-90px;top:-110px;width:250px;height:250px;border-radius:50%;background:radial-gradient(circle,rgba(214,163,75,.13),rgba(214,163,75,0) 68%);pointer-events:none}
.btp-search-panel-head{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:22px}
.btp-search-panel-head>div:first-child>span,.btp-search-filters-title>span,.btp-engine-card>span,.btp-lead-eyebrow,.btp-opportunity-summary>span,.btp-lead-block-title>span,.btp-recommended-action>span{display:block;color:#9e701e;font-size:12px;font-weight:800;letter-spacing:.18em}
.btp-search-panel-head h3,.btp-engine-card h3,.btp-lead-block-title h3{margin:7px 0 6px;color:var(--btp-ink);font-size:24px;line-height:1.08;letter-spacing:-.03em}
.btp-search-panel-head p,.btp-engine-card p{margin:0;color:#74808e;line-height:1.62;font-size:14px;max-width:62ch}
.btp-engine-badge{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:9px 12px;border:1px solid rgba(214,163,75,.20);border-radius:999px;background:#fffaf0;color:#6e541f;font-size:12px;font-weight:800;letter-spacing:.06em;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.btp-engine-badge i{width:8px;height:8px;border-radius:50%;background:#22a165;box-shadow:0 0 0 5px rgba(34,161,101,.10)}
.btp-search-core{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1.05fr) minmax(150px,.55fr);gap:14px;position:relative;z-index:1}
.btp-search-core label,.btp-search-filter-grid label{display:grid;gap:8px;color:#5f6b79;font-size:12px;font-weight:800}
.btp-search-core input,.btp-search-core select,.btp-search-filter-grid select{width:100%;height:52px;border-radius:16px;border:1px solid #dcdfe3;background:#fff;color:#25303d;padding:0 14px;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.7);transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease}
.btp-search-core input:focus,.btp-search-core select:focus,.btp-search-filter-grid select:focus{border-color:rgba(214,163,75,.70);box-shadow:0 0 0 4px rgba(214,163,75,.11)}
.btp-search-filters{position:relative;z-index:1;margin-top:18px;padding:18px;border-radius:20px;background:linear-gradient(180deg,#faf8f4,#f7f3ea);border:1px solid rgba(214,163,75,.12)}
.btp-search-filters-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.btp-search-filters-title small{color:#929ba6;font-size:12px}
.btp-search-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.btp-auto-analysis{position:relative;z-index:1;margin-top:16px;padding:15px 16px;display:flex!important;align-items:flex-start!important;gap:12px;border-radius:18px;border:1px solid rgba(214,163,75,.14);background:rgba(255,255,255,.68);cursor:pointer;color:inherit!important}
.btp-auto-analysis input{width:20px;height:20px;flex:0 0 20px;margin:2px 0 0;accent-color:#c48c24}
.btp-auto-analysis span{display:grid;gap:4px}
.btp-auto-analysis strong{color:#25303d;font-size:13px}
.btp-auto-analysis small{color:#7d8895;font-size:12px;line-height:1.55;font-weight:500}
.btp-search-submit{position:relative;z-index:1;width:100%;margin-top:16px;min-height:54px;gap:9px}
.btp-search-submit .dashicons{font-size:18px;width:18px;height:18px}
.btp-search-submit.is-loading{opacity:.72;cursor:wait;transform:none!important}
.btp-search-feedback{position:relative;z-index:1;min-height:18px;margin:11px 2px 0}
.btp-analysis-progress{position:relative;z-index:1;margin-top:12px;padding:13px 14px;border-radius:16px;background:#111923;color:#fff;border:1px solid rgba(214,163,75,.13)}
.btp-analysis-progress>span{display:block;font-size:12px;font-weight:800;color:#efd08a;margin-bottom:8px}
.btp-analysis-progress>div{height:7px;background:rgba(255,255,255,.09);border-radius:999px;overflow:hidden}
.btp-analysis-progress i{display:block;width:0;height:100%;border-radius:999px;background:linear-gradient(90deg,#a87316,#f0d48d);transition:width .28s ease}
.btp-analysis-progress small{display:block;color:#aeb9c7;margin-top:7px;font-size:12px}

.btp-prospect-aside{display:grid;gap:16px}
.btp-engine-card{padding:22px!important;background:linear-gradient(155deg,#101721 0%,#182331 100%)!important;border-color:rgba(214,163,75,.18)!important;color:#fff;box-shadow:0 24px 52px rgba(8,12,18,.16)!important}
.btp-engine-card::before{content:"";position:absolute;right:-70px;top:-80px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(214,163,75,.21),rgba(214,163,75,0) 70%);pointer-events:none}
.btp-engine-card>span{color:#edca7c;position:relative;z-index:1}
.btp-engine-card h3{color:#fff;position:relative;z-index:1}
.btp-engine-card p{color:#bbc6d3;position:relative;z-index:1}
.btp-engine-score-legend{position:relative;z-index:1;display:grid;gap:8px;margin-top:18px}
.btp-engine-score-legend>div{display:grid;grid-template-columns:66px 1fr;align-items:center;gap:8px;padding:9px 10px;border-radius:13px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.055)}
.btp-engine-score-legend strong{color:#f0d18a;font-size:13px}
.btp-engine-score-legend span{color:#d5dce5;font-size:12px}
.btp-engine-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.btp-engine-stats article{padding:16px;border-radius:20px;background:linear-gradient(180deg,#fff,#fbf9f4);border:1px solid rgba(214,163,75,.11);box-shadow:0 12px 28px rgba(12,16,24,.06)}
.btp-engine-stats span,.btp-engine-stats small{display:block;color:#8a95a2;font-size:12px}
.btp-engine-stats strong{display:block;margin:5px 0 3px;color:#131c28;font-size:25px;letter-spacing:-.04em}

/* Qualified lead table */
.btp-qualified-table{min-width:1120px}
.btp-qualified-table th:nth-child(1){width:115px}.btp-qualified-table th:nth-child(2){width:220px}.btp-qualified-table th:nth-child(3){width:310px}.btp-qualified-table th:nth-child(4){width:160px}.btp-qualified-table th:nth-child(5){width:140px}.btp-qualified-table th:nth-child(6){width:150px}.btp-qualified-table th:nth-child(7){width:150px}
.btp-score-stack{display:grid;gap:7px;justify-items:start;min-width:92px}
.btp-score-stack small{font-size:12px;line-height:1.25;color:#75808c;max-width:98px}
.btp-lead-site-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.btp-lead-site-line a{font-size:12px}
.btp-lead-signal{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.02em;border:1px solid transparent}
.btp-lead-signal.is-opportunity{background:#fff5dd;color:#8c641b;border-color:#edd7a5}
.btp-lead-signal.is-done{background:#edf9f3;color:#22744d;border-color:#c7ead7}
.btp-lead-signal.is-pending{background:#f1f3f6;color:#687584;border-color:#e0e4e9}
.btp-lead-summary{margin:0;color:#63707e;font-size:12px;line-height:1.52;max-width:310px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.btp-table-actions{display:flex;gap:7px;flex-wrap:wrap}
.btp-table-actions .btp-mini{padding:8px 10px;font-size:12px}

/* Qualification detail modal */
.btp-modal-card{width:min(940px,100%)}
.btp-lead-detail{display:grid;gap:18px}
.btp-lead-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding-right:44px}
.btp-lead-detail-head h2{margin:7px 0 4px;font-size:32px;line-height:1.05;color:#111a25;letter-spacing:-.04em;text-wrap:balance}
.btp-lead-detail-head p{margin:0;color:#84909d;font-size:13px}
.btp-lead-score-hero{display:flex;align-items:center;gap:12px;min-width:245px;padding:12px 14px;border-radius:19px;background:linear-gradient(145deg,#111923,#202c3d);border:1px solid rgba(214,163,75,.18);box-shadow:0 14px 32px rgba(10,14,20,.13)}
.btp-lead-score-hero>span{display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border-radius:16px;background:linear-gradient(180deg,#f0d287,#d39a34);color:#17110a;font-size:23px;font-weight:900;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.btp-lead-score-hero div{display:grid;gap:3px}.btp-lead-score-hero strong{color:#fff;font-size:13px}.btp-lead-score-hero small{color:#aeb9c6;font-size:12px}
.btp-opportunity-summary{padding:16px 18px;border-radius:19px;background:linear-gradient(180deg,#fff9ec,#fbf2df);border:1px solid #f0deba}
.btp-opportunity-summary p{margin:7px 0 0;color:#505c69;line-height:1.62;font-size:13px}
.btp-lead-contact-strip{display:flex;gap:8px;flex-wrap:wrap}
.btp-lead-contact-strip .btp-mini{text-decoration:none}
.btp-lead-public-data{grid-template-columns:repeat(4,minmax(0,1fr))}
.btp-lead-diagnostic{padding:18px;border:1px solid #ece7dc;border-radius:22px;background:#fcfbf8}
.btp-lead-block-title{margin-bottom:13px}.btp-lead-block-title h3{font-size:20px;margin-bottom:0}
.btp-diagnostic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.btp-diagnostic-item{padding:11px 12px;border-radius:15px;background:#fff;border:1px solid #e9e7e1;min-width:0}
.btp-diagnostic-item span{display:block;color:#8a95a1;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.btp-diagnostic-item strong{display:block;margin-top:4px;color:#36414e;font-size:12px;line-height:1.35}
.btp-diagnostic-item.good{background:#f2faf5;border-color:#d2eadb}.btp-diagnostic-item.good strong{color:#276e4d}
.btp-diagnostic-item.bad{background:#fff5f2;border-color:#f0d9d3}.btp-diagnostic-item.bad strong{color:#9b5548}
.btp-diagnostic-item.opportunity{background:#fff8e8;border-color:#edd9ab}.btp-diagnostic-item.opportunity strong{color:#8b6318}
.btp-lead-insights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.btp-lead-list-block{padding:15px 16px;border-radius:18px;background:#fafbfc;border:1px solid #e9edf1}
.btp-lead-list-block>strong{display:block;color:#303b48;font-size:12px}.btp-lead-list-block ul{margin:10px 0 0 17px;padding:0}.btp-lead-list-block li{margin:0 0 7px;color:#687482;font-size:12px;line-height:1.5}.btp-lead-list-block li:last-child{margin-bottom:0}
.btp-lead-list-block.is-opportunity{background:#fff9ec;border-color:#efdeba}.btp-lead-list-block.is-strength{background:#f4faf6;border-color:#d9ebdf}.btp-lead-list-block.is-risk{background:#fbf8f4;border-color:#e9e2d6}
.btp-recommended-action{padding:16px 18px;border-radius:19px;background:linear-gradient(145deg,#111923,#1b2736);border:1px solid rgba(214,163,75,.17)}
.btp-recommended-action>span{color:#edca7c}.btp-recommended-action p{margin:7px 0 0;color:#d5dce5;line-height:1.62;font-size:13px}
.btp-lead-detail .btp-detail-actions{margin-top:0;padding-top:2px}

@media (max-width:1180px){
  .btp-prospect-layout{grid-template-columns:1fr}
  .btp-prospect-aside{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:stretch}
  .btp-engine-stats{height:100%}
}
@media (max-width:860px){
  .btp-search-core{grid-template-columns:1fr 1fr}.btp-search-core label:last-child{grid-column:1/-1}
  .btp-search-filter-grid{grid-template-columns:1fr 1fr}.btp-search-filter-grid label:last-child{grid-column:1/-1}
  .btp-prospect-aside{grid-template-columns:1fr}
  .btp-lead-public-data{grid-template-columns:1fr 1fr}.btp-diagnostic-grid{grid-template-columns:1fr 1fr}.btp-lead-insights{grid-template-columns:1fr}
}
@media (max-width:720px){
  .btp-prospect-head h2{max-width:14ch}
  .btp-search-panel{padding:20px!important;border-radius:24px}
  .btp-search-panel-head{display:grid;gap:12px}.btp-engine-badge{justify-self:start}
  .btp-search-panel-head h3{font-size:22px}.btp-search-panel-head p{font-size:13px}
  .btp-search-core,.btp-search-filter-grid{grid-template-columns:1fr}.btp-search-core label:last-child,.btp-search-filter-grid label:last-child{grid-column:auto}
  .btp-search-filters{padding:14px}.btp-search-filters-title{display:grid;justify-content:start;gap:4px}
  .btp-auto-analysis{padding:13px 14px}.btp-auto-analysis small{font-size:12px}
  .btp-engine-stats{grid-template-columns:repeat(2,1fr)}
  .btp-qualified-table{min-width:0!important}
  .btp-qualified-table tbody tr{gap:11px}
  .btp-lead-summary{max-width:none;-webkit-line-clamp:4}
  .btp-score-stack{justify-items:end}.btp-score-stack small{text-align:right;max-width:150px}
  .btp-table-actions{justify-content:flex-end}
  .btp-modal-card{padding:20px 16px 18px!important}
  .btp-lead-detail-head{display:grid;padding-right:42px;gap:13px}.btp-lead-detail-head h2{font-size:26px;max-width:11ch}.btp-lead-score-hero{min-width:0;width:100%}
  .btp-lead-public-data,.btp-diagnostic-grid{grid-template-columns:1fr 1fr}
  .btp-lead-contact-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.btp-lead-contact-strip .btp-mini{width:100%}
  .btp-lead-detail .btp-detail-actions{display:grid;grid-template-columns:1fr}.btp-lead-detail .btp-detail-actions>*{width:100%}
}
@media (max-width:420px){
  .btp-engine-stats{grid-template-columns:1fr 1fr}.btp-engine-stats article{padding:13px}.btp-engine-stats strong{font-size:22px}
  .btp-lead-public-data,.btp-diagnostic-grid{grid-template-columns:1fr}
  .btp-lead-contact-strip{grid-template-columns:1fr 1fr}
  .btp-opportunity-summary,.btp-lead-diagnostic,.btp-recommended-action{padding:14px}
}

/* =========================================================
   v0.15.0 — Multi-Source Prospecting Engine
========================================================= */
.btp-search-core{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(210px,.75fr) minmax(150px,.52fr)}
.btp-source-waterfall{display:grid;gap:8px;margin:18px 0 20px;position:relative;z-index:1}
.btp-source-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.045)}
.btp-source-row span{display:flex;align-items:center;gap:9px;color:#eef3f8;font-size:12px;font-weight:750}
.btp-source-row span i{width:8px;height:8px;border-radius:50%;background:#677382;box-shadow:0 0 0 4px rgba(255,255,255,.03)}
.btp-source-row.is-ready span i{background:#e2b653;box-shadow:0 0 0 4px rgba(226,182,83,.1),0 0 18px rgba(226,182,83,.25)}
.btp-source-row strong{color:#aeb9c7;font-size:12px;font-weight:700}
.btp-source-row.is-ready strong{color:#edca7c}

.btp-lead-sources{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:7px}
.btp-lead-sources span,.btp-lead-sources em{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;background:#f6f1e7;border:1px solid #eadfca;color:#8f6821;font-size:12px;font-weight:800;font-style:normal;line-height:1}
.btp-lead-sources em{background:#eef1f4;border-color:#e0e4e8;color:#687482}
.btp-modal-source-strip{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 14px;margin:-2px 0 14px;border-radius:16px;border:1px solid #ece3d3;background:linear-gradient(135deg,#fffdfa,#f8f3e9)}
.btp-modal-source-strip>span{color:#a87824;font-size:12px;font-weight:900;letter-spacing:.16em;margin-right:2px}
.btp-modal-source-strip em{font-style:normal;padding:5px 8px;border-radius:999px;background:#fff;border:1px solid #eadfc9;color:#6d5835;font-size:12px;font-weight:800}
.btp-modal-source-strip strong{margin-left:auto;color:#687482;font-size:12px;font-weight:700}

.btp-source-settings-panel{grid-column:1/-1;padding:26px!important;overflow:hidden}
.btp-source-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.btp-source-setting-card{position:relative;display:flex;flex-direction:column;gap:14px;min-width:0;padding:20px;border-radius:20px;border:1px solid #e5e2dc;background:linear-gradient(150deg,#fff,#fbfaf7);box-shadow:0 14px 34px rgba(20,28,38,.055)}
.btp-source-setting-card.is-connected{border-color:rgba(210,158,61,.42);box-shadow:0 16px 36px rgba(204,152,51,.09)}
.btp-source-setting-card.is-free{background:linear-gradient(150deg,#fff,#f7f8f8)}
.btp-source-setting-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.btp-source-setting-head>div{display:flex;align-items:center;gap:10px;min-width:0}
.btp-source-setting-head strong{font-size:17px;color:var(--btp-ink)}
.btp-source-setting-head em{font-style:normal;padding:5px 9px;border-radius:999px;background:#f0f2f4;color:#7a8490;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}
.btp-source-setting-card.is-connected .btp-source-setting-head em{background:#fff2cf;color:#8d651d}
.btp-source-dot{width:10px;height:10px;border-radius:50%;background:#9ba4ae;box-shadow:0 0 0 4px rgba(115,126,139,.08)}
.btp-source-setting-card.is-connected .btp-source-dot,.btp-source-setting-card.is-free .btp-source-dot{background:#d9a63f;box-shadow:0 0 0 4px rgba(217,166,63,.12)}
.btp-source-setting-card p{margin:0;color:#788392;font-size:13px;line-height:1.55;max-width:58ch}
.btp-source-setting-card .btp-field{margin-top:auto}
.btp-source-note{display:block;color:#8b929b;font-size:12px;line-height:1.5}
.btp-switch{display:flex!important;align-items:center;gap:10px;color:#485563!important;font-size:12px!important;font-weight:800!important;cursor:pointer}
.btp-switch input{position:absolute;opacity:0;pointer-events:none}
.btp-switch>span{position:relative;width:40px;height:23px;border-radius:999px;background:#dfe3e8;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);transition:.22s ease;flex:0 0 auto}
.btp-switch>span::after{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.16);transition:.22s ease}
.btp-switch input:checked+span{background:linear-gradient(135deg,#d4a13e,#f0cd77)}
.btp-switch input:checked+span::after{transform:translateX(17px)}
.btp-source-setting-card select{height:48px;border-radius:14px;border:1px solid #dcdfe3;background:#fff;color:#25303d;padding:0 12px}

@media (max-width:1180px){
  .btp-search-core{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .btp-source-settings-grid{grid-template-columns:1fr}
  .btp-source-settings-panel{padding:20px!important}
}
@media (max-width:620px){
  .btp-search-core{grid-template-columns:1fr}
  .btp-modal-source-strip{align-items:flex-start}
  .btp-modal-source-strip strong{width:100%;margin-left:0;padding-top:2px}
  .btp-source-setting-card{padding:16px;border-radius:18px}
  .btp-source-setting-head{align-items:flex-start}
  .btp-source-setting-head em{white-space:normal;text-align:right}
}

/* =========================================================
   v0.16.0 — Enriquecimento, validação e confiança por campo
========================================================= */
.btp-score-dimensions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.btp-score-dimensions>div{min-width:0;padding:14px 15px;border-radius:18px;border:1px solid #e9e4da;background:linear-gradient(155deg,#fff,#faf8f3);box-shadow:0 10px 24px rgba(19,28,39,.04)}
.btp-score-dimensions span{display:block;color:#7e8996;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;line-height:1.35}
.btp-score-dimensions strong{display:block;margin-top:7px;color:#162131;font-size:22px;letter-spacing:-.03em}
.btp-score-dimensions small{display:block;margin-top:5px;color:#95a0ac;font-size:12px;line-height:1.45}
.btp-score-dimensions .is-priority{background:linear-gradient(145deg,#111923,#1e2b3c);border-color:rgba(216,167,72,.24)}
.btp-score-dimensions .is-priority span,.btp-score-dimensions .is-priority small{color:#bdc6d1}.btp-score-dimensions .is-priority strong{color:#edc86f}

.btp-official-site-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;border-radius:18px;border:1px solid #e8e4dc;background:linear-gradient(135deg,#fbfaf7,#f4f2ed)}
.btp-official-site-card.is-verified{border-color:#d6e8dd;background:linear-gradient(135deg,#f8fcf9,#eff8f2)}
.btp-official-site-card>div:first-child{min-width:0}.btp-official-site-card span{display:block;color:#a1711d;font-size:12px;font-weight:900;letter-spacing:.15em}.btp-official-site-card strong{display:block;margin-top:5px;color:#1b2734;font-size:15px;overflow-wrap:anywhere}.btp-official-site-card small{display:block;margin-top:4px;color:#7d8995;font-size:12px;line-height:1.4}
.btp-site-confidence{flex:0 0 auto;display:grid;justify-items:end}.btp-site-confidence b{color:#182433;font-size:21px}.btp-site-confidence span{margin-top:2px;color:#8994a0;font-size:12px;letter-spacing:.08em}

.btp-lead-public-data>div{min-width:0}.btp-field-confidence{display:inline-flex!important;width:max-content;margin-top:7px;padding:4px 7px;border-radius:999px;font-size:12px!important;font-weight:850!important;letter-spacing:.02em!important;text-transform:none!important}
.btp-field-confidence.is-high{background:#eaf7f0;color:#22714c}.btp-field-confidence.is-mid{background:#fff5dd;color:#8b631b}.btp-field-confidence.is-low{background:#f0f2f4;color:#7a8591}
.btp-field-sources{display:block!important;margin-top:5px;color:#9aa4ae!important;font-size:12px!important;line-height:1.4;text-transform:none!important;letter-spacing:0!important;overflow-wrap:anywhere}

.btp-pitch-suggestion{padding:17px 18px;border-radius:20px;border:1px solid rgba(211,158,55,.34);background:linear-gradient(145deg,#fffaf0,#f6edda);box-shadow:0 14px 30px rgba(175,125,29,.07)}
.btp-pitch-suggestion>div span{display:block;color:#9e701e;font-size:12px;font-weight:900;letter-spacing:.16em}.btp-pitch-suggestion h3{margin:5px 0 0;color:#182331;font-size:18px}.btp-pitch-suggestion p{margin:12px 0 13px;color:#556270;font-size:13px;line-height:1.65;white-space:pre-wrap}.btp-pitch-suggestion .btp-mini{background:#fff}

@media (max-width:900px){.btp-score-dimensions{grid-template-columns:1fr 1fr}}
@media (max-width:620px){
  .btp-score-dimensions{grid-template-columns:1fr 1fr;gap:8px}
  .btp-score-dimensions>div{padding:12px}.btp-score-dimensions strong{font-size:19px}
  .btp-official-site-card{align-items:flex-start}.btp-site-confidence{justify-items:start}
}
@media (max-width:420px){
  .btp-score-dimensions{grid-template-columns:1fr}
  .btp-official-site-card{display:grid;gap:10px}.btp-site-confidence{display:flex;align-items:baseline;gap:7px}
  .btp-pitch-suggestion{padding:14px}
}
.btp-priority-tag{display:inline-flex;width:max-content;margin-top:4px;padding:4px 7px;border-radius:999px;font-size:12px;font-style:normal;font-weight:850;letter-spacing:.03em;background:#f0f2f4;color:#737e8a}
.btp-priority-tag.is-alta{background:#fff0c9;color:#855d14}.btp-priority-tag.is-media{background:#f4f0e6;color:#7d6942}.btp-priority-tag.is-baixa{background:#eef1f4;color:#77828d}

/* =========================================================
   v0.17.0 — Prospecting Workspace
   Tabela operacional, KPIs, ações em lote e drawer lateral
========================================================= */
.btp-prospect-results{margin-top:20px}
.btp-lead-workspace{overflow:hidden!important}
.btp-workspace-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px}
.btp-workspace-total{display:flex;align-items:baseline;gap:7px;padding:10px 14px;border-radius:16px;background:linear-gradient(145deg,#111923,#1c2838);border:1px solid rgba(214,163,75,.2);box-shadow:0 12px 28px rgba(11,16,23,.12)}
.btp-workspace-total strong{font-size:22px;color:#f1cd78;letter-spacing:-.04em}
.btp-workspace-total span{font-size:12px;color:#aeb9c6;text-transform:uppercase;letter-spacing:.08em;font-weight:800}

.btp-lead-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:0 18px 16px}
.btp-lead-kpis button{appearance:none;border:1px solid #ece6db;background:linear-gradient(180deg,#fff,#fbfaf7);min-height:74px;border-radius:18px;padding:13px 14px;text-align:left;cursor:pointer;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.btp-lead-kpis button span{display:block;color:#8894a1;font-size:12px;font-weight:700;margin-bottom:4px}
.btp-lead-kpis button strong{display:block;color:#111b28;font-size:23px;line-height:1;letter-spacing:-.04em}
.btp-lead-kpis button.is-active{border-color:rgba(211,154,52,.48);background:linear-gradient(145deg,#fffaf0,#f9efd8);box-shadow:0 12px 28px rgba(178,126,26,.11),inset 0 1px 0 #fff}
@media (hover:hover){.btp-lead-kpis button:hover{transform:translateY(-2px);border-color:rgba(211,154,52,.42);box-shadow:0 12px 24px rgba(17,27,40,.07)}}

.btp-workspace-toolbar{display:grid;grid-template-columns:minmax(280px,1.35fr) minmax(210px,.65fr) minmax(190px,.55fr);gap:10px;padding:0 18px 16px;align-items:end}
.btp-workspace-toolbar label{display:grid;gap:6px;color:#7c8794;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.btp-workspace-toolbar input,.btp-workspace-toolbar select{width:100%;height:46px;border-radius:15px!important;border:1px solid #e4e7ea!important;background:#fff!important;color:#172231!important;font-size:13px!important;font-weight:700!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;outline:none!important;transition:border-color .2s ease,box-shadow .2s ease}
.btp-workspace-toolbar input:focus,.btp-workspace-toolbar select:focus{border-color:#d8a748!important;box-shadow:0 0 0 3px rgba(216,167,72,.12)!important}
.btp-workspace-search{position:relative}
.btp-workspace-search>span{position:absolute;left:14px;bottom:12px;color:#a67927;font-size:18px;width:18px;height:18px;z-index:1}
.btp-workspace-search input{padding-left:42px!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important}

.btp-bulkbar{margin:0 18px 14px;padding:11px 12px;border-radius:17px;background:linear-gradient(145deg,#0d131c,#182335);border:1px solid rgba(214,163,75,.22);display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 15px 30px rgba(8,12,18,.12);transition:box-shadow .25s ease,border-color .25s ease}
.btp-bulkbar[hidden]{display:none!important}
.btp-bulkbar.is-confirmed{border-color:rgba(103,198,147,.45);box-shadow:0 15px 30px rgba(58,151,104,.14)}
.btp-bulkbar>div:first-child{display:flex;align-items:baseline;gap:6px;white-space:nowrap}.btp-bulkbar>div:first-child strong{color:#f0cb74;font-size:20px}.btp-bulkbar>div:first-child span{color:#aeb8c4;font-size:12px}
.btp-bulk-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.btp-bulk-actions button{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.055);color:#edf2f7;border-radius:999px;padding:8px 11px;font-size:12px;font-weight:750;cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.btp-bulk-actions button .dashicons{font-size:15px;width:15px;height:15px;color:#e8c46d}
@media (hover:hover){.btp-bulk-actions button:hover{background:rgba(216,167,72,.12);border-color:rgba(216,167,72,.3);transform:translateY(-1px)}}

.btp-lead-workspace .btp-qualified-table{min-width:1180px}
.btp-lead-workspace .btp-qualified-table .btp-select-col{width:42px;min-width:42px;text-align:center;padding-left:10px!important;padding-right:8px!important}
.btp-lead-workspace .btp-qualified-table th:nth-child(2){width:245px}.btp-lead-workspace .btp-qualified-table th:nth-child(3){width:210px}.btp-lead-workspace .btp-qualified-table th:nth-child(4){width:150px}.btp-lead-workspace .btp-qualified-table th:nth-child(5){width:130px}.btp-lead-workspace .btp-qualified-table th:nth-child(6){width:235px}.btp-lead-workspace .btp-qualified-table th:nth-child(7){width:150px}.btp-lead-workspace .btp-qualified-table th:nth-child(8){width:190px}
.btp-lead-row[hidden]{display:none!important}
.btp-lead-row{transition:background .18s ease}
@media (hover:hover){.btp-lead-row:hover{background:#fffaf1!important}}
.btp-lead-select,.btp-lead-workspace .btp-qualified-table [data-btp-select-all]{accent-color:#c9902d;width:17px;height:17px;cursor:pointer}
.btp-company-cell,.btp-site-cell,.btp-opportunity-cell{display:grid;gap:5px;min-width:0}
.btp-company-cell>strong{font-size:13px;color:#172230;line-height:1.3}.btp-company-cell>small,.btp-site-cell>small,.btp-opportunity-cell>small{font-size:12px;color:#8995a2;line-height:1.4}
.btp-site-cell>strong{font-size:12px;color:#45515f}.btp-site-cell>strong.is-gap{color:#9a6c1b}
.btp-opportunity-cell>strong{font-size:12px;line-height:1.35;color:#263240}.btp-score-inline{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.btp-score-inline .btp-score{width:36px;height:36px;min-width:36px;font-size:13px;border-radius:12px}.btp-score-inline .btp-priority-tag{margin:0}

.btp-quick-actions{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:6px!important}
.btp-icon-action{display:grid!important;place-items:center!important;width:35px!important;height:35px!important;min-width:35px!important;padding:0!important;border-radius:12px!important;border:1px solid #e7e3da!important;background:#fff!important;color:#243142!important;text-decoration:none!important;cursor:pointer!important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important;box-shadow:0 5px 12px rgba(16,23,33,.04)!important}
.btp-icon-action .dashicons{font-size:17px!important;width:17px!important;height:17px!important;line-height:17px!important}
.btp-icon-action.is-whatsapp{color:#28734d!important;background:#f2fbf6!important;border-color:#d4ecde!important}
.btp-icon-action.is-saved{background:linear-gradient(145deg,#fff6d9,#f5dda1)!important;border-color:#dfba61!important;color:#8d6215!important}
@media (hover:hover){.btp-icon-action:hover{transform:translateY(-2px);border-color:#d7aa50!important;box-shadow:0 9px 18px rgba(132,93,21,.1)!important;background:#fffaf0!important}}

.btp-workspace-empty{margin:6px 18px 18px;min-height:150px;border-radius:20px;border:1px dashed #e2d7c3;background:#fcfbf8;display:grid;place-items:center;text-align:center;padding:28px}.btp-workspace-empty[hidden]{display:none!important}.btp-workspace-empty .dashicons{color:#c79334;font-size:28px;width:28px;height:28px}.btp-workspace-empty strong{display:block;color:#263240;font-size:15px;margin-top:6px}.btp-workspace-empty small{display:block;color:#8a96a2;font-size:12px;margin-top:4px}

/* Lead details become a premium side drawer on desktop. */
.btp-modal.is-lead-drawer{align-items:stretch!important;justify-content:flex-end!important;padding:0!important;background:rgba(7,12,18,.56)!important;backdrop-filter:blur(7px)}
.btp-modal.is-lead-drawer .btp-modal-card{margin:0!important;width:min(660px,92vw)!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border-radius:28px 0 0 28px!important;padding:28px 26px 30px!important;overflow:auto!important;transform:translateX(28px);animation:btpDrawerIn .28s cubic-bezier(.22,.78,.28,1) forwards;background:linear-gradient(180deg,#fff,#fcfaf6)!important;border-left:1px solid rgba(214,163,75,.2)!important;box-shadow:-30px 0 70px rgba(6,10,15,.2)!important}
.btp-modal.is-lead-drawer .btp-modal-close{position:sticky!important;float:right;top:0;z-index:6;margin:0 0 -44px auto!important;background:#111a26!important;color:#f1cd78!important;border-color:rgba(214,163,75,.35)!important;border-radius:15px!important}
@keyframes btpDrawerIn{to{transform:translateX(0)}}
.btp-modal.is-lead-drawer .btp-lead-detail-head{padding-right:0!important;display:grid!important;grid-template-columns:1fr auto;gap:14px!important;align-items:start!important}
.btp-modal.is-lead-drawer .btp-lead-detail-head h2{font-size:clamp(25px,2.1vw,34px)!important;max-width:18ch!important}
.btp-modal.is-lead-drawer .btp-lead-score-hero{min-width:0!important;width:190px!important}
.btp-offer-recommendation{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:10px}
.btp-offer-recommendation>div{padding:15px 16px;border-radius:18px;border:1px solid #ebdfc8;background:linear-gradient(145deg,#fffaf0,#fcf7ec)}
.btp-offer-recommendation>div:first-child{background:linear-gradient(145deg,#111923,#1d2939);border-color:rgba(214,163,75,.24)}
.btp-offer-recommendation span{display:block;font-size:12px;font-weight:900;letter-spacing:.15em;color:#9c7020;margin-bottom:6px}.btp-offer-recommendation>div:first-child span{color:#d7ae5d}.btp-offer-recommendation strong{display:block;color:#f3d17d;font-size:16px;line-height:1.35}.btp-offer-recommendation p{margin:0;color:#606d7b;font-size:12px;line-height:1.58}

/* Batch approach review uses the center modal, not the drawer. */
.btp-modal.is-batch-modal{align-items:center!important;justify-content:center!important;padding:24px!important}
.btp-modal.is-batch-modal .btp-modal-card{width:min(900px,96vw)!important;max-height:88dvh!important;border-radius:30px!important;padding:28px!important;overflow:auto!important}
.btp-batch-approaches>h2{margin:7px 0 8px;font-size:30px;line-height:1.05;letter-spacing:-.04em;color:#111a25}.btp-batch-approaches>p{margin:0 0 18px;color:#778493;font-size:13px;line-height:1.6;max-width:65ch}
.btp-batch-pitch-list{display:grid;gap:10px;max-height:52vh;overflow:auto;padding-right:4px;margin-bottom:16px}.btp-batch-pitch{padding:14px 15px;border:1px solid #e8e3da;border-radius:18px;background:#fcfbf8}.btp-batch-pitch>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}.btp-batch-pitch strong{font-size:13px;color:#1e2a39}.btp-batch-pitch span{font-size:12px;font-weight:800;color:#9a6b1c;background:#fff4d9;border:1px solid #ead39d;border-radius:999px;padding:5px 8px}.btp-batch-pitch p{margin:0;font-size:12px;line-height:1.62;color:#677381;white-space:pre-line}

@media (max-width:1180px){
  .btp-lead-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .btp-workspace-toolbar{grid-template-columns:1fr 1fr}.btp-workspace-search{grid-column:1/-1}
}
@media (max-width:760px){
  .btp-prospect-results{margin-top:14px}
  .btp-workspace-head{align-items:flex-start}.btp-workspace-total{display:none}
  .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 12px 12px;gap:8px}.btp-lead-kpis button{min-height:64px;border-radius:16px;padding:11px 12px}.btp-lead-kpis button strong{font-size:20px}
  .btp-workspace-toolbar{grid-template-columns:1fr;padding:0 12px 12px}.btp-workspace-search{grid-column:auto}.btp-workspace-toolbar input,.btp-workspace-toolbar select{height:44px}
  .btp-bulkbar{margin:0 12px 12px;align-items:flex-start;flex-direction:column}.btp-bulk-actions{justify-content:flex-start;width:100%}.btp-bulk-actions button{flex:1 1 calc(50% - 7px);justify-content:center;min-height:39px}
  .btp-lead-workspace .btp-qualified-table{min-width:0!important}
  .btp-lead-workspace .btp-qualified-table thead{display:none!important}
  .btp-lead-workspace .btp-qualified-table tbody{display:grid!important;gap:10px!important;padding:10px!important}
  .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row{display:grid!important;grid-template-columns:36px minmax(0,1fr);gap:9px 10px;padding:13px!important;border:1px solid #e7e1d7!important;border-radius:20px!important;background:#fff!important;box-shadow:0 10px 26px rgba(17,25,36,.05)!important}
  .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row[hidden]{display:none!important}
  .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td{display:block!important;padding:0!important;border:0!important;text-align:left!important;min-width:0!important}
  .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td::before{display:block!important;position:static!important;width:auto!important;margin:0 0 4px!important;color:#9b6e20!important;font-size:12px!important;font-weight:900!important;letter-spacing:.12em!important;text-transform:uppercase!important;content:attr(data-label)!important}
  .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row .btp-select-col{grid-row:1/span 2;grid-column:1;align-self:start;padding-top:2px!important}.btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row .btp-select-col::before{display:none!important}
  .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td:nth-child(2){grid-column:2}.btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td:nth-child(n+3){grid-column:1/-1}
  .btp-company-cell>strong{font-size:15px}.btp-company-cell>small{font-size:12px}.btp-lead-sources{margin-top:4px}
  .btp-opportunity-cell{grid-template-columns:auto 1fr;align-items:start}.btp-score-inline{grid-row:1/span 2}.btp-opportunity-cell>strong{font-size:13px}.btp-opportunity-cell>small{font-size:12px}
  .btp-status{width:100%!important;min-height:42px!important}
  .btp-quick-actions{flex-wrap:wrap!important}.btp-icon-action{width:40px!important;height:40px!important;min-width:40px!important;border-radius:14px!important}
  .btp-modal.is-lead-drawer .btp-modal-card{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:20px 16px 26px!important}
  .btp-modal.is-lead-drawer .btp-lead-detail-head{grid-template-columns:1fr!important;padding-top:26px!important}.btp-modal.is-lead-drawer .btp-lead-score-hero{width:100%!important}.btp-modal.is-lead-drawer .btp-lead-detail-head h2{max-width:none!important;font-size:27px!important}
  .btp-offer-recommendation{grid-template-columns:1fr}
  .btp-modal.is-batch-modal{padding:10px!important}.btp-modal.is-batch-modal .btp-modal-card{width:100%!important;max-height:96dvh!important;border-radius:24px!important;padding:22px 16px!important}.btp-batch-approaches>h2{font-size:25px}.btp-batch-pitch>div{display:grid}.btp-batch-pitch span{width:max-content}
}
@media (max-width:420px){
  .btp-lead-kpis{grid-template-columns:1fr 1fr}.btp-bulk-actions button{flex:1 1 100%}
  .btp-lead-workspace .btp-qualified-table tbody{padding:8px!important}.btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row{padding:12px!important;border-radius:18px!important}
}

/* =========================================================
   v0.17.1 — Decision Drawer + Commercial Identity
========================================================= */
.btp-settings-side-stack{display:grid;gap:18px;align-content:start;min-width:0}
.btp-sales-identity-card{position:relative;overflow:hidden}
.btp-sales-identity-card::after{content:"";position:absolute;width:170px;height:170px;right:-72px;top:-72px;border-radius:50%;background:radial-gradient(circle,rgba(225,178,79,.18),rgba(225,178,79,0) 68%);pointer-events:none}
.btp-sales-identity-card .btp-field{position:relative;z-index:1}
.btp-sales-name-preview{position:relative;z-index:1;margin-top:14px;padding:14px 15px;border:1px solid rgba(211,154,52,.22);border-radius:18px;background:linear-gradient(145deg,#111923,#1c2938);box-shadow:0 12px 30px rgba(10,15,22,.08)}
.btp-sales-name-preview>span{display:block;color:#e4bd68;font-size:12px;font-weight:900;letter-spacing:.15em;margin-bottom:7px}
.btp-sales-name-preview p{margin:0;color:#dbe2e9;font-size:13px;line-height:1.55}
.btp-sales-name-preview strong{color:#f1d183}

/* Drawer decision header: the company name owns the full width; score no longer competes with it. */
.btp-modal.is-lead-drawer .btp-modal-card{width:min(690px,94vw)!important;padding:24px 24px 24px!important;scrollbar-gutter:stable}
.btp-modal.is-lead-drawer .btp-modal-close{position:sticky!important;float:right!important;top:14px!important;margin:0 0 -48px auto!important;width:42px!important;height:42px!important;min-width:42px!important;border-radius:999px!important;z-index:12!important;box-shadow:0 10px 24px rgba(8,12,18,.18)!important}
.btp-modal.is-lead-drawer .btp-lead-detail{gap:14px}
.btp-modal.is-lead-drawer .btp-lead-detail-head{display:block!important;padding:3px 58px 0 0!important;min-width:0}
.btp-modal.is-lead-drawer .btp-lead-detail-head h2{max-width:none!important;font-size:clamp(25px,2.15vw,34px)!important;line-height:1.07!important;text-wrap:pretty!important;overflow-wrap:break-word!important}
.btp-modal.is-lead-drawer .btp-lead-detail-head p{font-size:12px!important;line-height:1.45!important}
.btp-lead-decision-bar{position:sticky;top:-1px;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0 11px;background:linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,253,248,.96) 78%,rgba(255,253,248,0) 100%);backdrop-filter:blur(10px)}
.btp-lead-decision-bar .btp-lead-score-hero{width:auto!important;min-width:0!important;flex:0 1 auto;padding:9px 11px!important;border-radius:18px!important}
.btp-lead-decision-bar .btp-lead-score-hero>span{width:48px;height:48px;flex-basis:48px;border-radius:15px;font-size:21px}
.btp-lead-decision-bar .btp-lead-score-hero div{min-width:0}
.btp-lead-decision-bar .btp-lead-score-hero div>small{order:-1;color:#d9b461;font-size:12px;font-weight:900;letter-spacing:.11em}
.btp-lead-decision-bar .btp-lead-score-hero strong{font-size:12px;line-height:1.35;max-width:180px}
.btp-decision-meta{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.btp-decision-meta>span{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:7px 10px;border:1px solid #ebe4d9;border-radius:999px;background:#fff;color:#85909d;font-size:12px;white-space:nowrap}
.btp-decision-meta strong{color:#283443;font-size:12px}

.btp-modal.is-lead-drawer .btp-opportunity-summary,
.btp-modal.is-lead-drawer .btp-offer-recommendation>div,
.btp-modal.is-lead-drawer .btp-recommended-action,
.btp-modal.is-lead-drawer .btp-pitch-suggestion{border-radius:18px!important}
.btp-modal.is-lead-drawer .btp-score-dimensions{gap:8px}
.btp-modal.is-lead-drawer .btp-score-dimensions>div{padding:12px 13px;border-radius:16px}
.btp-modal.is-lead-drawer .btp-score-dimensions strong{font-size:19px}
.btp-modal.is-lead-drawer .btp-lead-contact-strip{gap:7px}
.btp-modal.is-lead-drawer .btp-lead-contact-strip .btp-mini{min-height:38px;padding:9px 13px;border-radius:999px!important}
.btp-modal.is-lead-drawer .btp-lead-public-data>div{padding:12px!important;border-radius:15px!important}

/* Compact secondary information inside native, accessible folds. */
.btp-drawer-fold{border:1px solid #ebe5da;border-radius:19px;background:linear-gradient(180deg,#fff,#fcfbf8);overflow:hidden}
.btp-drawer-fold>summary{list-style:none;display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;padding:14px 16px;cursor:pointer;user-select:none;transition:background .22s ease,border-color .22s ease}
.btp-drawer-fold>summary::-webkit-details-marker{display:none}
.btp-drawer-fold>summary>span{grid-column:1;color:#a67417;font-size:12px;font-weight:900;letter-spacing:.14em}
.btp-drawer-fold>summary>strong{grid-column:1;color:#24303e;font-size:13px;line-height:1.35}
.btp-drawer-fold>summary>.dashicons{grid-column:2;grid-row:1/3;align-self:center;color:#9b742e;transition:transform .22s ease}
.btp-drawer-fold[open]>summary>.dashicons{transform:rotate(180deg)}
.btp-drawer-fold[open]>summary{background:#fffbf2}
.btp-drawer-fold-body{padding:0 13px 13px}
.btp-drawer-fold .btp-diagnostic-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.btp-drawer-fold .btp-lead-insights{grid-template-columns:repeat(2,minmax(0,1fr))}
.btp-drawer-fold .btp-lead-insights .btp-lead-list-block.is-risk:nth-child(3){grid-column:1/-1}
.btp-drawer-more-actions-grid{display:flex;gap:8px;flex-wrap:wrap}
.btp-drawer-more-actions-grid .btp-mini{flex:1 1 170px}

/* Keep the two daily actions available without making the whole drawer feel long. */
.btp-modal.is-lead-drawer .btp-drawer-actionbar{position:sticky;bottom:-1px;z-index:8;display:grid!important;grid-template-columns:minmax(0,1.1fr) repeat(2,minmax(0,1fr));gap:8px!important;margin:2px -8px -8px!important;padding:12px 8px 8px!important;background:linear-gradient(0deg,#fff 68%,rgba(255,255,255,.92) 84%,rgba(255,255,255,0));backdrop-filter:blur(10px)}
.btp-modal.is-lead-drawer .btp-drawer-actionbar>*{width:100%!important;min-width:0!important;min-height:44px!important;border-radius:999px!important;display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center}

/* Premium icon tooltips: only interactive controls get them. */
.btp-icon-action{position:relative}
@media (hover:hover){
  .btp-icon-action[title]::after{content:attr(title);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translate(-50%,4px);z-index:30;pointer-events:none;opacity:0;white-space:nowrap;padding:6px 8px;border-radius:9px;background:#111923;color:#f4f7fa;font-size:12px;font-weight:700;box-shadow:0 8px 20px rgba(4,8,13,.18);transition:opacity .16s ease,transform .16s ease}
  .btp-icon-action[title]:hover::after,.btp-icon-action[title]:focus-visible::after{opacity:1;transform:translate(-50%,0)}
}

@media (max-width:900px){
  .btp-settings-side-stack{gap:14px}
  .btp-drawer-fold .btp-diagnostic-grid{grid-template-columns:1fr 1fr}
  .btp-drawer-fold .btp-lead-insights{grid-template-columns:1fr}
  .btp-drawer-fold .btp-lead-insights .btp-lead-list-block.is-risk:nth-child(3){grid-column:auto}
}
@media (max-width:760px){
  .btp-modal.is-lead-drawer .btp-modal-card{padding:16px 14px 18px!important}
  .btp-modal.is-lead-drawer .btp-modal-close{top:10px!important;right:auto!important;margin:0 0 -44px auto!important;width:40px!important;height:40px!important}
  .btp-modal.is-lead-drawer .btp-lead-detail-head{padding:9px 50px 0 0!important}
  .btp-modal.is-lead-drawer .btp-lead-detail-head h2{font-size:clamp(23px,8vw,28px)!important;line-height:1.08!important}
  .btp-lead-decision-bar{display:grid;grid-template-columns:1fr;padding:8px 0 10px;gap:8px}
  .btp-lead-decision-bar .btp-lead-score-hero{width:100%!important}
  .btp-decision-meta{justify-content:flex-start}
  .btp-modal.is-lead-drawer .btp-score-dimensions{grid-template-columns:1fr 1fr!important}
  .btp-modal.is-lead-drawer .btp-drawer-actionbar{grid-template-columns:1fr 1fr;margin:0 -4px -4px!important;padding:10px 4px 4px!important}
  .btp-modal.is-lead-drawer .btp-drawer-actionbar .btp-primary{grid-column:1/-1}
  .btp-drawer-fold>summary{padding:13px 14px}
}
@media (max-width:430px){
  .btp-modal.is-lead-drawer .btp-score-dimensions{grid-template-columns:1fr!important}
  .btp-drawer-fold .btp-diagnostic-grid{grid-template-columns:1fr 1fr}
  .btp-modal.is-lead-drawer .btp-lead-contact-strip{grid-template-columns:1fr 1fr!important}
  .btp-modal.is-lead-drawer .btp-drawer-actionbar{grid-template-columns:1fr!important}
  .btp-modal.is-lead-drawer .btp-drawer-actionbar .btp-primary{grid-column:auto}
}


/* v0.17.2 — Conversation Quality & Message Context */
.btp-message-preview strong,.btp-message-editor-preview strong{font-weight:800;color:#111c2b}
.btp-message-editor-preview{line-height:1.7}
.btp-message-card .btp-message-preview{line-height:1.65}

/* v0.18.0 — auditoria de oportunidade para webdesign */
.btp-lead-kpis{grid-template-columns:repeat(7,minmax(0,1fr))}
.btp-site-cell small.is-audit-pending{color:#a7741d;font-weight:800}
.btp-site-cell small.is-strong{color:#27825f;font-weight:800}
.btp-site-cell small.is-gap{color:#aa6b28;font-weight:800}
.btp-score-dimensions--audit{grid-template-columns:repeat(4,minmax(0,1fr))}
.btp-audit-note{margin-top:10px;padding:12px 14px;border:1px solid rgba(214,163,75,.18);border-radius:16px;background:linear-gradient(145deg,#fffaf0,#fbf7ef);color:#778391;font-size:12px;line-height:1.55}
.btp-audit-note strong{color:#6f4b0e}
@media (max-width:1180px){.btp-lead-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:900px){.btp-lead-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.btp-score-dimensions--audit{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.btp-lead-kpis{grid-template-columns:1fr 1fr}.btp-score-dimensions--audit{grid-template-columns:1fr}.btp-audit-note{font-size:12px}}


/* v0.18.1 — reanálise, descarte seguro e robustez do drawer */
.btp-inline-reanalyze{appearance:none;border:0;background:transparent;color:#a7741d;padding:3px 0 0;margin:0;display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:12px;font-weight:850;line-height:1.25;cursor:pointer;text-align:left;transition:color .2s ease,opacity .2s ease}
.btp-inline-reanalyze .dashicons{width:14px;height:14px;font-size:14px;line-height:14px}
.btp-inline-reanalyze:hover{color:#7d5612}.btp-inline-reanalyze:disabled{opacity:.62;cursor:wait}
.btp-bulk-progress{display:block;width:100%;padding-top:8px;color:#7f8b98;font-size:12px;font-weight:700}
.btp-lead-row[data-archived="1"]{opacity:.62!important;background:#f5f3ef!important}
.btp-lead-row[data-archived="1"] .btp-company-cell>strong{text-decoration:line-through;text-decoration-thickness:1px}
.btp-modal.is-lead-drawer .btp-modal-card{overflow-x:hidden!important;overscroll-behavior:contain}
.btp-modal.is-lead-drawer .btp-lead-detail{min-width:0;padding-bottom:72px}
.btp-modal.is-lead-drawer .btp-lead-detail>*{min-width:0;max-width:100%}
.btp-modal.is-lead-drawer .btp-official-site-card,
.btp-modal.is-lead-drawer .btp-modal-source-strip,
.btp-modal.is-lead-drawer .btp-lead-public-data,
.btp-modal.is-lead-drawer .btp-diagnostic-grid,
.btp-modal.is-lead-drawer .btp-score-dimensions,
.btp-modal.is-lead-drawer .btp-offer-recommendation,
.btp-modal.is-lead-drawer .btp-lead-insights{min-width:0;max-width:100%}
.btp-modal.is-lead-drawer .btp-official-site-card strong,
.btp-modal.is-lead-drawer .btp-lead-public-data strong,
.btp-modal.is-lead-drawer .btp-diagnostic-item strong,
.btp-modal.is-lead-drawer .btp-score-dimensions strong,
.btp-modal.is-lead-drawer .btp-score-dimensions small,
.btp-modal.is-lead-drawer .btp-decision-meta span,
.btp-modal.is-lead-drawer .btp-modal-source-strip em,
.btp-modal.is-lead-drawer .btp-lead-list-block li,
.btp-modal.is-lead-drawer .btp-pitch-suggestion p,
.btp-modal.is-lead-drawer .btp-recommended-action p{overflow-wrap:anywhere;word-break:normal;white-space:normal}
.btp-modal.is-lead-drawer .btp-decision-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;min-width:0}
.btp-modal.is-lead-drawer .btp-decision-meta span{max-width:100%}
.btp-modal.is-lead-drawer .btp-drawer-fold-body{overflow:hidden}
@media (max-width:760px){
  .btp-modal.is-lead-drawer .btp-lead-detail{padding-bottom:110px}
  .btp-modal.is-lead-drawer .btp-modal-source-strip{display:grid;grid-template-columns:1fr;gap:7px}
  .btp-modal.is-lead-drawer .btp-modal-source-strip strong{margin-left:0!important}
  .btp-bulk-progress{font-size:12px}
}

/* v0.18.1 — drawer: no action bar covering diagnostic content */
.btp-modal.is-lead-drawer .btp-lead-public-data{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.btp-modal.is-lead-drawer .btp-drawer-actionbar{position:static!important;margin:4px 0 0!important;padding:8px 0 0!important;background:transparent!important;backdrop-filter:none!important}
.btp-modal.is-lead-drawer .btp-lead-detail{padding-bottom:8px!important}
@media (max-width:430px){.btp-modal.is-lead-drawer .btp-lead-public-data{grid-template-columns:1fr!important}}

/* v0.18.2 — blindagem visual dos botões contra cores globais do tema/Elementor
   Mantém todos os controles dentro da identidade preto + dourado do Prospect. */
body .btp-app button,
body .btp-login-shell button{
  --e-global-color-accent:#d6a34b;
  --wp--preset--color--vivid-red:#d6a34b;
  -webkit-appearance:none;
  appearance:none;
  text-shadow:none!important;
}

/* Ação textual de reanálise: nunca deve herdar o rosa/accent do tema. */
body .btp-app button.btp-inline-reanalyze,
body .btp-app .btp-site-cell button.btp-inline-reanalyze,
body .btp-app button.btp-inline-reanalyze.btp-quick-analyze{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  color:#a7741d!important;
  border:0!important;
  border-color:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:3px 0 0!important;
  min-height:0!important;
  line-height:1.25!important;
}
body .btp-app button.btp-inline-reanalyze:hover,
body .btp-app button.btp-inline-reanalyze:active{
  background:transparent!important;
  background-color:transparent!important;
  color:#76500f!important;
  box-shadow:none!important;
  transform:none!important;
  filter:none!important;
}
body .btp-app button.btp-inline-reanalyze:focus-visible{
  outline:2px solid rgba(214,163,75,.52)!important;
  outline-offset:3px!important;
  box-shadow:none!important;
}

/* Ações compactas da tabela. */
body .btp-app button.btp-icon-action{
  background:#fff!important;
  background-color:#fff!important;
  background-image:none!important;
  color:#243142!important;
  border:1px solid #e7e3da!important;
  box-shadow:0 5px 12px rgba(16,23,33,.04)!important;
}
body .btp-app button.btp-icon-action.is-whatsapp{
  background:#f2fbf6!important;
  background-color:#f2fbf6!important;
  color:#28734d!important;
  border-color:#d4ecde!important;
}
body .btp-app button.btp-icon-action.is-saved{
  background:linear-gradient(145deg,#fff6d9,#f5dda1)!important;
  background-color:#f5dda1!important;
  color:#8d6215!important;
  border-color:#dfba61!important;
}
@media (hover:hover){
  body .btp-app button.btp-icon-action:hover{
    background:#fffaf0!important;
    background-color:#fffaf0!important;
    color:#1e2a39!important;
    border-color:#d7aa50!important;
  }
}

/* Botões secundários/ghost e botões principais. */
body .btp-app button.btp-mini,
body .btp-app button.btp-ghost,
body .btp-app a.btp-mini,
body .btp-app a.btp-ghost{
  background:#f8f5ee!important;
  background-color:#f8f5ee!important;
  background-image:none!important;
  color:#243040!important;
  border:1px solid rgba(214,163,75,.18)!important;
}
body .btp-app button.btp-primary,
body .btp-login-shell button.btp-primary{
  background:linear-gradient(180deg,#f0cc7a 0%,#d6a34b 100%)!important;
  background-color:#d6a34b!important;
  color:#16110c!important;
  border:1px solid rgba(160,111,17,.20)!important;
}

/* Fechar modais/drawers: preto premium com detalhe dourado. */
body .btp-app button.btp-modal-close,
body .btp-app button.btp-message-editor-close,
body .btp-app button.btp-prompt-editor-close,
body .btp-app button.btp-delete-prompt{
  background:#111a26!important;
  background-color:#111a26!important;
  background-image:none!important;
  color:#f1cd78!important;
  border:1px solid rgba(214,163,75,.32)!important;
  box-shadow:0 10px 24px rgba(8,12,18,.16)!important;
}

/* KPIs/filtros clicáveis da tela de Leads. */
body .btp-app .btp-lead-kpis button{
  background:linear-gradient(180deg,#fff,#fbfaf7)!important;
  background-color:#fff!important;
  color:#111b28!important;
  border:1px solid #ece6db!important;
}
body .btp-app .btp-lead-kpis button.is-active{
  background:linear-gradient(145deg,#fffaf0,#f9efd8)!important;
  background-color:#fffaf0!important;
  border-color:rgba(211,154,52,.48)!important;
}

/* Ações em lote usam o painel escuro; evita herança do accent rosa. */
body .btp-app .btp-bulk-actions button{
  background:rgba(255,255,255,.055)!important;
  background-color:rgba(255,255,255,.055)!important;
  background-image:none!important;
  color:#edf2f7!important;
  border:1px solid rgba(255,255,255,.10)!important;
}
@media (hover:hover){
  body .btp-app .btp-bulk-actions button:hover{
    background:rgba(216,167,72,.12)!important;
    background-color:rgba(216,167,72,.12)!important;
    border-color:rgba(216,167,72,.30)!important;
  }
}

/* Navegação continua preta/transparente + dourado no estado ativo. */
body .btp-app .btp-sidebar nav button,
body .btp-app button.btp-primary-nav,
body .btp-app button.btp-mobile-more-toggle,
body .btp-app .btp-nav-more button{
  background-color:transparent!important;
  background-image:none!important;
}
body .btp-app .btp-sidebar nav button.is-active,
body .btp-app button.btp-primary-nav.is-active,
body .btp-app button.btp-mobile-more-toggle.is-active,
body .btp-app .btp-nav-more button.is-active{
  background:linear-gradient(90deg,rgba(214,163,75,.22),rgba(214,163,75,.07))!important;
  background-color:rgba(214,163,75,.12)!important;
}


/* v0.18.3 — refinamento da barra de ações em lote + reanálise visual */
body .btp-app .btp-bulkbar{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px 14px!important;
  padding:14px 16px!important;
}
body .btp-app .btp-bulkbar > div:first-child{
  align-self:center!important;
}
body .btp-app .btp-bulk-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
body .btp-app .btp-bulk-actions button,
body .btp-app .btp-bulk-actions button:visited,
body .btp-app .btp-bulk-actions button:focus,
body .btp-app .btp-bulk-actions button:active{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:38px!important;
  padding:9px 13px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.06)!important;
  background-color:rgba(255,255,255,.06)!important;
  background-image:none!important;
  color:#edf2f7!important;
  border:1px solid rgba(255,255,255,.10)!important;
  box-shadow:none!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  outline:none!important;
}
body .btp-app .btp-bulk-actions button:hover{
  background:rgba(216,167,72,.12)!important;
  background-color:rgba(216,167,72,.12)!important;
  border-color:rgba(216,167,72,.30)!important;
}
body .btp-app .btp-bulk-actions button:focus-visible{
  box-shadow:0 0 0 3px rgba(214,163,75,.18)!important;
  border-color:rgba(216,167,72,.40)!important;
}
body .btp-app .btp-bulk-actions button[data-btp-bulk="reanalyze"]{
  background:linear-gradient(180deg,#f0cc7a 0%,#d6a34b 100%)!important;
  background-color:#d6a34b!important;
  color:#16110c!important;
  border-color:rgba(160,111,17,.22)!important;
  box-shadow:0 10px 22px rgba(214,163,75,.22)!important;
}
body .btp-app .btp-bulk-actions button[data-btp-bulk="reanalyze"] .dashicons{
  color:#6d4b0d!important;
}
body .btp-app .btp-bulk-actions button[data-btp-bulk="reanalyze"]:hover,
body .btp-app .btp-bulk-actions button[data-btp-bulk="reanalyze"]:focus,
body .btp-app .btp-bulk-actions button[data-btp-bulk="reanalyze"]:active{
  background:linear-gradient(180deg,#f3d382 0%,#d9a94e 100%)!important;
  background-color:#d9a94e!important;
  color:#16110c!important;
  border-color:rgba(160,111,17,.28)!important;
}
body .btp-app .btp-bulk-progress{
  grid-column:1 / -1!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:40px!important;
  margin-top:2px!important;
  padding:10px 12px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.04)!important;
  border:1px solid rgba(255,255,255,.08)!important;
  color:#aeb8c4!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
}
body .btp-app .btp-bulk-progress::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:999px;
  background:#d6a34b;
  box-shadow:0 0 0 4px rgba(214,163,75,.12);
  flex:0 0 9px;
}

body .btp-app button.btp-inline-reanalyze,
body .btp-app .btp-site-cell button.btp-inline-reanalyze,
body .btp-app button.btp-inline-reanalyze.btp-quick-analyze{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  align-self:flex-start!important;
  width:auto!important;
  max-width:100%!important;
  min-height:34px!important;
  padding:7px 12px!important;
  margin-top:2px!important;
  border-radius:12px!important;
  border:1px solid rgba(214,163,75,.30)!important;
  background:linear-gradient(180deg,#fff9ef 0%,#f8f1e1 100%)!important;
  background-color:#fff9ef!important;
  background-image:none!important;
  color:#8a6115!important;
  box-shadow:none!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  text-align:left!important;
  line-height:1.2!important;
}
body .btp-app button.btp-inline-reanalyze .dashicons{
  color:#a7741d!important;
}
body .btp-app button.btp-inline-reanalyze:hover,
body .btp-app button.btp-inline-reanalyze:focus,
body .btp-app button.btp-inline-reanalyze:active{
  background:linear-gradient(180deg,#fff7e7 0%,#f4ead3 100%)!important;
  background-color:#fff7e7!important;
  color:#6f4d12!important;
  border-color:rgba(214,163,75,.42)!important;
  transform:none!important;
  filter:none!important;
}
body .btp-app button.btp-inline-reanalyze:focus-visible{
  outline:2px solid rgba(214,163,75,.34)!important;
  outline-offset:2px!important;
}
body .btp-app .btp-site-cell{
  align-items:start!important;
}

@media (max-width:980px){
  body .btp-app .btp-bulkbar{
    grid-template-columns:1fr!important;
    align-items:flex-start!important;
  }
}
@media (max-width:760px){
  body .btp-app .btp-bulk-actions button{
    flex:1 1 calc(50% - 8px)!important;
  }
  body .btp-app .btp-bulk-actions button[data-btp-bulk="reanalyze"]{
    flex:1 1 100%!important;
  }
}
@media (max-width:520px){
  body .btp-app .btp-bulk-actions button{
    flex:1 1 100%!important;
  }
}


/* ================================================================
   v0.18.4 — responsive polish, spacing rhythm and component consistency
   ================================================================ */

/* Global product rhythm: every page gets the same breathing room and no child
   is allowed to force horizontal overflow. */
body .btp-app *,body .btp-login-shell *{box-sizing:border-box}
body .btp-app .btp-view,
body .btp-app .btp-view.is-active,
body .btp-app .btp-panel,
body .btp-app .btp-table-panel,
body .btp-app .btp-message-card,
body .btp-app .btp-settings-card,
body .btp-app .btp-profile-form,
body .btp-app .btp-account-card{min-width:0;max-width:100%}
body .btp-app .btp-view.is-active{overflow:visible}

/* Non-clickable surfaces stay stable. Hover movement is reserved for controls. */
@media (hover:hover){
  body .btp-app .btp-panel:hover,
  body .btp-app .btp-settings-card:hover,
  body .btp-app .btp-profile-form:hover,
  body .btp-app .btp-account-card:hover,
  body .btp-app .btp-table-panel:hover,
  body .btp-app .btp-message-card:hover{transform:none!important}
}

/* Shared headings and section spacing. */
body .btp-app .btp-section-head,
body .btp-app .btp-workspace-head{
  gap:18px!important;
  min-width:0!important;
}
body .btp-app .btp-section-head h2,
body .btp-app .btp-workspace-head h2,
body .btp-app .btp-settings-title h3,
body .btp-app .btp-hero h2{
  margin-top:0!important;
  text-wrap:pretty!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body .btp-app .btp-section-head p,
body .btp-app .btp-workspace-head p,
body .btp-app .btp-settings-title p,
body .btp-app .btp-hero p{
  text-wrap:pretty!important;
  overflow-wrap:break-word!important;
}

/* Panels/cards keep one premium visual language throughout the app. */
body .btp-app .btp-panel,
body .btp-app .btp-table-panel,
body .btp-app .btp-message-card,
body .btp-app .btp-settings-card,
body .btp-app .btp-profile-form,
body .btp-app .btp-account-card,
body .btp-app .btp-goal-calculator{
  border-radius:26px!important;
  overflow:hidden;
}

/* Leads workspace — flexible KPIs, toolbar and table. */
body .btp-app .btp-lead-kpis{
  grid-template-columns:repeat(auto-fit,minmax(132px,1fr))!important;
  gap:10px!important;
  padding:0 18px 16px!important;
}
body .btp-app .btp-lead-kpis button{
  min-width:0!important;
  min-height:72px!important;
  padding:13px 14px!important;
  border-radius:18px!important;
}
body .btp-app .btp-workspace-toolbar{
  grid-template-columns:minmax(260px,1.35fr) minmax(190px,.68fr) minmax(180px,.58fr)!important;
  gap:10px!important;
  padding:0 18px 16px!important;
}
body .btp-app .btp-workspace-toolbar label{min-width:0!important}
body .btp-app .btp-workspace-toolbar input,
body .btp-app .btp-workspace-toolbar select{
  min-width:0!important;
  border-radius:16px!important;
}
body .btp-app .btp-lead-workspace .btp-table-wrap{
  scrollbar-gutter:stable;
  border-radius:0 0 24px 24px;
}
body .btp-app .btp-lead-workspace .btp-qualified-table th,
body .btp-app .btp-lead-workspace .btp-qualified-table td{
  vertical-align:middle;
}
body .btp-app .btp-company-cell>strong,
body .btp-app .btp-opportunity-cell>strong{
  overflow-wrap:break-word!important;
}
body .btp-app .btp-quick-actions{
  min-width:0!important;
}
body .btp-app .btp-icon-action{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border-radius:999px!important;
}
body .btp-app button.btp-inline-reanalyze,
body .btp-app .btp-site-cell button.btp-inline-reanalyze,
body .btp-app button.btp-inline-reanalyze.btp-quick-analyze{
  border-radius:999px!important;
}

/* Selection bar: clean two-row layout when progress text exists, without
   compressing the controls or pushing them outside the panel. */
body .btp-app .btp-bulkbar{
  margin:0 18px 14px!important;
  padding:13px 14px!important;
  border-radius:20px!important;
  overflow:hidden!important;
}
body .btp-app .btp-bulk-actions{min-width:0!important}
body .btp-app .btp-bulk-actions button{font-size:12px!important;font-weight:800!important}
body .btp-app .btp-bulk-progress{margin:0!important}

/* Buttons/forms: rounded consistently across all screens. */
body .btp-app button.btp-primary,
body .btp-app a.btp-primary,
body .btp-app button.btp-mini,
body .btp-app a.btp-mini,
body .btp-app button.btp-ghost,
body .btp-app a.btp-ghost,
body .btp-login-shell button.btp-primary{
  border-radius:999px!important;
}
body .btp-app input:not([type="checkbox"]):not([type="radio"]),
body .btp-app select,
body .btp-app textarea,
body .btp-login-shell input:not([type="checkbox"]):not([type="radio"]){
  border-radius:16px!important;
}

/* Messages / prompts — predictable card spacing and readable content. */
body .btp-app .btp-message-grid,
body .btp-app .btp-prompt-grid{gap:16px!important}
body .btp-app .btp-message-card,
body .btp-app .btp-prompt-card{min-width:0!important}
body .btp-app .btp-message-preview,
body .btp-app .btp-message-editor-preview,
body .btp-app .btp-prompt-card pre{
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}

/* Settings / account — keep cards aligned but never too tight. */
body .btp-app .btp-settings-layout,
body .btp-app .btp-profile-grid{gap:20px!important}
body .btp-app .btp-settings-side-stack{gap:16px!important}
body .btp-app .btp-account-meta{align-items:flex-start!important}
body .btp-app .btp-account-meta strong{min-width:0!important;overflow-wrap:anywhere!important}

/* Drawer — no cropped labels, controlled scrolling and stable action bar. */
body .btp-app .btp-modal.is-lead-drawer .btp-modal-card{
  width:min(700px,94vw)!important;
  padding:26px 24px 28px!important;
  scrollbar-gutter:stable;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-detail-head{
  min-width:0!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-detail-head h2{
  max-width:none!important;
  overflow-wrap:break-word!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-diagnostic-grid,
body .btp-app .btp-modal.is-lead-drawer .btp-score-dimensions,
body .btp-app .btp-modal.is-lead-drawer .btp-lead-public-data{
  gap:8px!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-drawer-actionbar{
  border-radius:20px 20px 0 0!important;
}

/* Tablet: sections stack before they become cramped. */
@media (max-width:1180px){
  body .btp-app .btp-workspace-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(190px,.65fr)!important;
  }
  body .btp-app .btp-workspace-search{grid-column:1/-1!important}
  body .btp-app .btp-quick-actions{flex-wrap:wrap!important}
  body .btp-app .btp-settings-layout,
  body .btp-app .btp-profile-grid{gap:16px!important}
}

/* Mobile/tablet workspace: preserve hierarchy and avoid giant empty areas. */
@media (max-width:760px){
  body .btp-app .btp-main{padding-left:14px!important;padding-right:14px!important}
  body .btp-app .btp-topbar{margin-bottom:18px!important}
  body .btp-app .btp-topbar-copy p{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    max-width:100%!important;
    line-height:1.45!important;
  }
  body .btp-app .btp-hero,
  body .btp-app .btp-panel,
  body .btp-app .btp-table-panel,
  body .btp-app .btp-message-card,
  body .btp-app .btp-settings-card,
  body .btp-app .btp-profile-form,
  body .btp-app .btp-account-card,
  body .btp-app .btp-goal-calculator{
    border-radius:22px!important;
  }
  body .btp-app .btp-section-head,
  body .btp-app .btp-workspace-head{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:8px!important;
  }
  body .btp-app .btp-section-head h2,
  body .btp-app .btp-workspace-head h2,
  body .btp-app .btp-hero h2{
    font-size:clamp(25px,8vw,34px)!important;
    line-height:1.08!important;
  }
  body .btp-app .btp-lead-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    padding:0 12px 12px!important;
    gap:8px!important;
  }
  body .btp-app .btp-lead-kpis button{
    min-height:64px!important;
    padding:11px 12px!important;
    border-radius:16px!important;
  }
  body .btp-app .btp-workspace-toolbar{
    grid-template-columns:1fr!important;
    gap:9px!important;
    padding:0 12px 12px!important;
  }
  body .btp-app .btp-workspace-search{grid-column:auto!important}
  body .btp-app .btp-workspace-toolbar input,
  body .btp-app .btp-workspace-toolbar select{height:44px!important}
  body .btp-app .btp-bulkbar{
    margin:0 12px 12px!important;
    padding:12px!important;
    border-radius:18px!important;
  }
  body .btp-app .btp-bulkbar>div:first-child{width:100%!important}
  body .btp-app .btp-bulk-actions{width:100%!important;gap:7px!important}
  body .btp-app .btp-bulk-actions button{
    flex:1 1 calc(50% - 7px)!important;
    min-height:40px!important;
    white-space:normal!important;
    line-height:1.2!important;
    text-align:center!important;
  }
  body .btp-app .btp-bulk-actions button[data-btp-bulk="reanalyze"]{flex:1 1 100%!important}
  body .btp-app .btp-bulk-progress{min-height:38px!important;padding:9px 10px!important}

  /* Lead rows already become cards; these refinements prevent clipped labels. */
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr{
    border-radius:18px!important;
    padding:8px 12px!important;
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td{
    align-items:flex-start!important;
    gap:12px!important;
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td::before{
    flex:0 0 78px!important;
  }
  body .btp-app .btp-company-cell,
  body .btp-app .btp-site-cell,
  body .btp-app .btp-opportunity-cell{max-width:calc(100% - 86px)!important}
  body .btp-app .btp-quick-actions{
    margin-left:auto!important;
    flex-wrap:wrap!important;
    justify-content:flex-end!important;
    max-width:190px!important;
  }
  body .btp-app .btp-icon-action{
    width:36px!important;height:36px!important;min-width:36px!important;
  }

  body .btp-app .btp-settings-layout,
  body .btp-app .btp-profile-grid,
  body .btp-app .btp-settings-side-stack{gap:12px!important}
  body .btp-app .btp-settings-card,
  body .btp-app .btp-profile-form,
  body .btp-app .btp-account-card,
  body .btp-app .btp-goal-calculator{padding:18px!important}

  body .btp-app .btp-modal.is-lead-drawer .btp-modal-card{
    width:100vw!important;
    max-width:100vw!important;
    border-radius:0!important;
    padding:16px 14px 20px!important;
  }
  body .btp-app .btp-modal.is-lead-drawer .btp-drawer-actionbar{
    border-radius:18px 18px 0 0!important;
  }
}

@media (max-width:430px){
  body .btp-app .btp-main{padding-left:12px!important;padding-right:12px!important}
  body .btp-app .btp-lead-kpis{gap:7px!important;padding-left:10px!important;padding-right:10px!important}
  body .btp-app .btp-lead-kpis button{padding:10px!important}
  body .btp-app .btp-lead-kpis button span{font-size:12px!important}
  body .btp-app .btp-lead-kpis button strong{font-size:20px!important}
  body .btp-app .btp-bulk-actions button{flex:1 1 100%!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td::before{flex-basis:70px!important}
  body .btp-app .btp-company-cell,
  body .btp-app .btp-site-cell,
  body .btp-app .btp-opportunity-cell{max-width:calc(100% - 76px)!important}
}


/* =========================================================
   v0.18.5 — status recovery + stable drawer backdrop
========================================================= */
/* Chromium can render backdrop-filter over a fixed/sticky sidebar as segmented blocks.
   Use a clean dark veil for the commercial drawer so the left menu remains visually solid. */
.btp-modal.is-lead-drawer{
  background:rgba(6,10,15,.74)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.btp-modal-open .btp-sidebar{
  filter:none!important;
  -webkit-filter:none!important;
}

/* Status save feedback — no pink/red UI in the normal interaction path. */
.btp-app .btp-status{transition:border-color .2s ease,box-shadow .2s ease,background .2s ease,opacity .2s ease!important}
.btp-app .btp-status.is-saving{opacity:.72!important;cursor:wait!important;border-color:#d7aa50!important;background:#fff9eb!important;box-shadow:0 0 0 4px rgba(214,163,75,.10)!important}
.btp-app .btp-status.is-saved{border-color:#c79a3b!important;background:#fffaf0!important;box-shadow:0 0 0 4px rgba(214,163,75,.10)!important}
.btp-app .btp-status.is-error{border-color:#9f7b38!important;background:#fff8ea!important;box-shadow:0 0 0 4px rgba(159,123,56,.10)!important}

/* =========================================================
   v0.18.6 — explicit client update + clean diagnostic actions
========================================================= */
.btp-status-control{
  display:grid!important;
  grid-template-columns:minmax(118px,1fr)!important;
  gap:7px!important;
  min-width:132px!important;
  max-width:172px!important;
  align-items:center!important;
}
.btp-status-control .btp-status{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  border-radius:999px!important;
  transition:border-color .22s ease,box-shadow .22s ease,background .22s ease,opacity .22s ease!important;
}
.btp-status-control .btp-status.is-dirty{
  border-color:#d4a348!important;
  background:#fffaf0!important;
  box-shadow:0 0 0 3px rgba(214,163,75,.10)!important;
}
.btp-status-save{
  width:100%!important;
  min-height:36px!important;
  padding:8px 12px!important;
  border:1px solid #c7922f!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#f2d184 0%,#d7a33f 100%)!important;
  color:#171a20!important;
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:850!important;
  letter-spacing:.01em!important;
  cursor:pointer!important;
  box-shadow:0 8px 18px rgba(165,116,27,.14)!important;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease,opacity .2s ease!important;
}
.btp-status-save:hover:not(:disabled){
  transform:translateY(-1px)!important;
  box-shadow:0 11px 22px rgba(165,116,27,.18)!important;
  filter:brightness(1.02)!important;
}
.btp-status-save:disabled{opacity:.68!important;cursor:wait!important;transform:none!important}
.btp-status-save[hidden]{display:none!important}
.btp-status-feedback{
  display:block!important;
  min-height:0!important;
  margin:0 3px!important;
  color:#8b7448!important;
  font-size:12px!important;
  line-height:1.35!important;
  text-align:left!important;
}
.btp-status-feedback:empty{display:none!important}

.btp-drawer-operations{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin-top:14px!important;
  padding:14px!important;
  border:1px solid #ece3d3!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#fffdf9,#f8f3e9)!important;
}
.btp-drawer-operations .btp-mini{
  flex:1 1 180px!important;
  min-height:44px!important;
  border-radius:999px!important;
  background:#fff!important;
  border:1px solid #e6dcc9!important;
  color:#25303d!important;
  font-weight:800!important;
  box-shadow:none!important;
  transition:background .2s ease,border-color .2s ease,transform .2s ease!important;
}
.btp-drawer-operations .btp-mini:hover{
  background:#fff9ed!important;
  border-color:#d9b66d!important;
  transform:translateY(-1px)!important;
}

@media(max-width:980px){
  .btp-status-control{max-width:none!important;width:100%!important}
  .btp-status-control .btp-status,.btp-status-save{width:100%!important}
}
@media(max-width:720px){
  .btp-status-control{grid-template-columns:1fr!important;gap:8px!important}
  .btp-status-save{min-height:40px!important}
  .btp-drawer-operations{padding:12px!important;gap:8px!important}
  .btp-drawer-operations .btp-mini{flex:1 1 100%!important;width:100%!important}
}


/* v0.18.7 — calculator focus polish + compact source badges */
body .btp-app .btp-money-input{
  position:relative!important;
  border:1px solid var(--btp-border-strong)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72)!important;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease!important;
}
body .btp-app .btp-money-input:focus-within{
  border-color:#d7aa50!important;
  box-shadow:0 0 0 4px rgba(214,163,75,.12),inset 0 1px 0 rgba(255,255,255,.72)!important;
}
body .btp-app .btp-money-input input,
body .btp-app .btp-money-input input:focus,
body .btp-app .btp-money-input input:focus-visible,
body .btp-app .btp-money-input input:active{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  border-left:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
body .btp-app .btp-money-input span{
  position:relative!important;
  z-index:1!important;
  flex:0 0 auto!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
body .btp-app .btp-lead-sources{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:5px!important;
}
body .btp-app .btp-lead-sources span{
  max-width:100%!important;
  white-space:normal!important;
  line-height:1.15!important;
}

/* =========================================================
   v0.19.0 — dedicated auth page + self-service registration
========================================================= */
body .btp-login-shell .btp-auth-switch{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  width:100%!important;
  margin:0 0 20px!important;
  padding:5px!important;
  border:1px solid rgba(214,163,75,.16)!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,rgba(16,23,33,.06),rgba(16,23,33,.035))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75)!important;
}
body .btp-login-shell .btp-auth-switch a{
  min-width:0!important;
  min-height:42px!important;
  padding:10px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  color:#566372!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  transition:background .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease,transform .22s ease!important;
}
body .btp-login-shell .btp-auth-switch a:hover{
  color:#182331!important;
  background:rgba(214,163,75,.08)!important;
  border-color:rgba(214,163,75,.18)!important;
}
body .btp-login-shell .btp-auth-switch a.is-active{
  color:#161b22!important;
  background:linear-gradient(180deg,#f3d78f 0%,#d8a43f 100%)!important;
  border-color:#d0a34f!important;
  box-shadow:0 8px 18px rgba(164,113,24,.16),inset 0 1px 0 rgba(255,255,255,.52)!important;
}
body .btp-login-shell .btp-auth-switch a.is-active:hover{
  transform:translateY(-1px)!important;
  filter:brightness(1.02)!important;
}

body .btp-login-shell .btp-login-form input[type="email"]{
  width:100%!important;
  height:56px!important;
  border:1px solid var(--btp-border)!important;
  background:#fff!important;
  border-radius:16px!important;
  padding:0 16px!important;
  outline:none!important;
  color:var(--btp-charcoal)!important;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease!important;
}
body .btp-login-shell .btp-login-form input[type="email"]:focus,
body .btp-login-shell .btp-login-form input[type="email"]:focus-visible{
  border-color:rgba(215,163,50,.78)!important;
  box-shadow:0 0 0 4px rgba(215,163,50,.13)!important;
}

body .btp-register-card{
  max-width:560px!important;
}
body .btp-register-form{
  gap:14px!important;
}
body .btp-register-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
body .btp-register-help{
  display:block!important;
  margin:-2px 2px 2px!important;
  color:#7c8897!important;
  font-size:12px!important;
  line-height:1.55!important;
}
body .btp-login-links--center{
  text-align:center!important;
  color:#7d8997!important;
  font-size:13px!important;
}
body .btp-honeypot{
  position:absolute!important;
  left:-10000px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

@media(max-width:1080px){
  body .btp-register-card{max-width:620px!important}
}
@media(max-width:720px){
  body .btp-login-shell .btp-auth-switch{margin-bottom:18px!important}
  body .btp-login-shell .btp-auth-switch a{min-height:40px!important;font-size:12.5px!important;padding:9px 11px!important}
  body .btp-register-grid{grid-template-columns:1fr!important;gap:14px!important}
  body .btp-register-card{max-width:600px!important}
}
@media(max-width:430px){
  body .btp-login-shell .btp-auth-switch{gap:4px!important;padding:4px!important}
  body .btp-login-shell .btp-auth-switch a{font-size:12px!important;min-height:38px!important}
  body .btp-register-help{font-size:12px!important}
}

/* ==========================================================
   v0.19.1 — status sincronizado, pipeline drag & drop e UX
   ========================================================== */
html.btp-reload-pending,
html.btp-reload-pending body{
  background:#0b1119!important;
}
html.btp-reload-pending .btp-app{
  visibility:hidden!important;
}

.btp-status-control{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  min-width:0;
}
.btp-status-control .btp-status{
  flex:1 1 132px;
  min-width:118px;
}
.btp-status-save{
  min-height:38px;
  padding:8px 14px;
  border:1px solid rgba(214,163,75,.48)!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#f1cf7b,#dca739)!important;
  color:#151b24!important;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(177,126,24,.14);
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease;
}
.btp-status-save:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(177,126,24,.2);filter:saturate(1.04)}
.btp-status-save:disabled{opacity:.7;cursor:wait;transform:none}
.btp-status-feedback{width:100%;color:#788492;font-size:12px;line-height:1.35}

.btp-instagram-search .dashicons{font-size:15px;width:15px;height:15px}

.btp-pipeline{
  align-items:stretch;
}
.btp-pipe-col{
  transition:border-color .22s ease,box-shadow .22s ease,background .22s ease,transform .22s ease;
}
.btp-pipe-list{
  min-height:180px;
}
.btp-pipe-card{
  cursor:grab;
  user-select:none;
  transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease,border-color .2s ease!important;
}
.btp-pipe-card:active{cursor:grabbing}
.btp-pipe-card.is-dragging{opacity:.48;transform:scale(.985);box-shadow:0 8px 18px rgba(15,20,30,.08)!important}
.btp-pipe-card.is-moving{opacity:.62;pointer-events:none}
.btp-pipe-col.is-drop-target{
  border-color:rgba(214,163,75,.72)!important;
  background:linear-gradient(180deg,rgba(255,249,233,.96),rgba(250,246,235,.9))!important;
  box-shadow:0 18px 38px rgba(157,108,17,.14)!important;
  transform:translateY(-2px);
}
.btp-pipe-drag-hint{
  margin-top:10px!important;
  display:flex!important;
  align-items:center;
  gap:5px;
  color:#a57725!important;
  font-size:12px!important;
  font-weight:800;
  letter-spacing:.01em;
}
.btp-pipe-drag-hint .dashicons{font-size:14px;width:14px;height:14px}
.btp-pipe-mobile-move{display:none}
.btp-pipeline-feedback{
  min-height:20px;
  margin-top:10px;
  padding:0 4px;
  color:#75808c;
  font-size:12px;
  font-weight:700;
  opacity:0;
  transform:translateY(-3px);
  transition:opacity .2s ease,transform .2s ease;
}
.btp-pipeline-feedback.is-visible{opacity:1;transform:none}
.btp-pipeline-feedback.is-success{color:#2e7b55}
.btp-pipeline-feedback.is-error{color:#a24d43}

.btp-outcome-panel{
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(214,163,75,.2);
  border-radius:22px;
  background:linear-gradient(180deg,#fffdf8,#faf6ed);
  scroll-margin-top:84px;
  box-shadow:0 14px 28px rgba(23,28,37,.05);
}
.btp-outcome-head{display:grid;gap:5px;margin-bottom:14px}
.btp-outcome-head span{color:#a4741e;font-size:12px;font-weight:900;letter-spacing:.16em}
.btp-outcome-head strong{color:#1b2532;font-size:17px;line-height:1.3}
.btp-outcome-form{margin-top:0!important;gap:11px!important}
.btp-outcome-form label{display:grid;gap:6px;min-width:0;color:#667281;font-size:12px;font-weight:800}
.btp-outcome-form label>span{padding-left:2px}
.btp-outcome-form input,.btp-outcome-form select{
  width:100%;
  min-width:0;
  border:1px solid #ded9cf!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#202a36!important;
  box-shadow:none!important;
  outline:none!important;
  transition:border-color .2s ease,box-shadow .2s ease!important;
}
.btp-outcome-form input:focus,.btp-outcome-form select:focus{
  border-color:rgba(214,163,75,.72)!important;
  box-shadow:0 0 0 4px rgba(214,163,75,.11)!important;
}
.btp-outcome-form .wide{grid-column:1/-1}

/* Evita qualquer resíduo magenta/rosa nos controles operacionais desta versão. */
.btp-app .btp-status-save,
.btp-app .btp-outcome-form button,
.btp-app .btp-pipeline button{
  accent-color:#d6a34b;
}

@media (max-width:760px){
  .btp-pipe-card{cursor:default;user-select:auto}
  .btp-pipe-drag-hint{display:none!important}
  .btp-pipe-mobile-move{display:grid;gap:5px;margin-top:12px;color:#7b8490;font-size:12px;font-weight:800}
  .btp-pipe-mobile-move select{width:100%;height:40px;border-radius:12px;border:1px solid #e2ddd3;background:#fff;color:#28323e;padding:0 10px;outline:none}
  .btp-outcome-panel{padding:15px;border-radius:19px}
  .btp-outcome-form{grid-template-columns:1fr!important}
  .btp-status-control{justify-content:flex-end}
  .btp-status-save{width:auto;min-width:104px}
}

/* =========================================================
   v0.20.0 · Planos e assinatura
========================================================= */
body .btp-app .btp-plan-head{align-items:center;gap:20px}
body .btp-app .btp-plan-status{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border:1px solid rgba(164,114,18,.18);white-space:nowrap}
body .btp-app .btp-plan-status.is-free{background:#fff8e8;color:#8b5f0b}
body .btp-app .btp-plan-status.is-pro{background:#172536;color:#f2cf73;border-color:#2d3b4c}
body .btp-app .btp-plan-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:18px;margin-bottom:18px}
body .btp-app .btp-current-plan-card,body .btp-app .btp-plan-usage-card{padding:28px;border-radius:28px;min-width:0}
body .btp-app .btp-current-plan-card.is-pro{background:linear-gradient(145deg,#101a27,#1d2d40);color:#fff;border:1px solid rgba(230,184,72,.22)}
body .btp-app .btp-current-plan-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
body .btp-app .btp-current-plan-top>div>span{font-size:12px;letter-spacing:.18em;font-weight:900;color:#a56b00}
body .btp-app .btp-current-plan-card.is-pro .btp-current-plan-top>div>span{color:#f2cf73}
body .btp-app .btp-current-plan-top h3{font-size:34px;line-height:1.05;margin:8px 0 0}
body .btp-app .btp-current-plan-top>.dashicons{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;font-size:26px;background:linear-gradient(180deg,#f7dd91,#dfaa3a);color:#172536}
body .btp-app .btp-current-plan-card>p{max-width:640px;color:#7f8b9a;font-size:15px;line-height:1.7;margin:0 0 22px}
body .btp-app .btp-current-plan-card.is-pro>p{color:#bac5d1}
body .btp-app .btp-upgrade-disabled{pointer-events:none;opacity:.82}
body .btp-app .btp-plan-provider{display:block;margin-top:14px;color:#96a1ae;font-size:12px;line-height:1.5}
body .btp-app .btp-usage-list{display:grid;gap:10px;margin-top:18px}
body .btp-app .btp-usage-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-radius:16px;background:#fbfaf7;border:1px solid #eee7d9}
body .btp-app .btp-usage-list span{color:#7f8b98;font-size:13px}
body .btp-app .btp-usage-list strong{font-size:15px;color:#172536}
body .btp-app .btp-plan-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
body .btp-app .btp-plan-option{padding:28px;border-radius:28px;background:#fff;border:1px solid rgba(222,211,190,.8);box-shadow:var(--btp-shadow-soft);display:flex;flex-direction:column;min-width:0}
body .btp-app .btp-plan-option.is-pro{background:linear-gradient(145deg,#101a27,#1c2c3f);border-color:rgba(230,184,72,.22);color:#fff}
body .btp-app .btp-plan-option>div>span{font-size:12px;letter-spacing:.18em;font-weight:900;color:#a56b00}
body .btp-app .btp-plan-option.is-pro>div>span{color:#f2cf73}
body .btp-app .btp-plan-option h3{font-size:30px;margin:7px 0 8px}
body .btp-app .btp-plan-option p{margin:0;color:#7f8b98;line-height:1.65}
body .btp-app .btp-plan-option.is-pro p{color:#b8c3ce}
body .btp-app .btp-plan-option ul{list-style:none;padding:0;margin:24px 0;display:grid;gap:10px;flex:1}
body .btp-app .btp-plan-option li{position:relative;padding-left:24px;color:#455260;line-height:1.55}
body .btp-app .btp-plan-option.is-pro li{color:#eef2f5}
body .btp-app .btp-plan-option li:before{content:'✓';position:absolute;left:0;top:0;color:#bf8518;font-weight:900}
body .btp-app .btp-plan-option>strong{font-size:20px;color:#172536}
body .btp-app .btp-plan-option.is-pro>strong{color:#f2cf73}
body .btp-app .btp-plan-note{display:flex;gap:16px;align-items:flex-start;padding:20px 22px;border-radius:22px;background:#fff8e8;border:1px solid #edd9aa}
body .btp-app .btp-plan-note>.dashicons{color:#a56b00;margin-top:2px}
body .btp-app .btp-plan-note strong{display:block;color:#172536;margin-bottom:4px}
body .btp-app .btp-plan-note p{margin:0;color:#6f7b88;line-height:1.6}
body .btp-app .btp-account-plan{width:100%;margin-top:4px}
@media(max-width:980px){body .btp-app .btp-plan-grid{grid-template-columns:1fr}body .btp-app .btp-plan-comparison{grid-template-columns:1fr}}
@media(max-width:640px){body .btp-app .btp-plan-head{align-items:flex-start;flex-direction:column}body .btp-app .btp-plan-status{align-self:flex-start}body .btp-app .btp-current-plan-card,body .btp-app .btp-plan-usage-card,body .btp-app .btp-plan-option{padding:20px;border-radius:22px}body .btp-app .btp-current-plan-top h3,body .btp-app .btp-plan-option h3{font-size:26px}body .btp-app .btp-current-plan-top>.dashicons{width:46px;height:46px;border-radius:15px;font-size:22px}}

/* =========================================================
   v0.20.1 · Responsive audit — mobile + tablet
   Corrige navegação compacta, cards/tabelas mobile, plano,
   perfil e estouro horizontal em larguras reais de uso.
========================================================= */

/* Nada dentro do app pode ampliar a viewport por conta própria. */
body .btp-app,
body .btp-app .btp-main,
body .btp-app .btp-view,
body .btp-app .btp-panel,
body .btp-app .btp-table-panel,
body .btp-app .btp-table-wrap,
body .btp-app .btp-profile-grid,
body .btp-app .btp-plan-grid,
body .btp-app .btp-plan-comparison{min-width:0!important;max-width:100%!important}
body .btp-app img{max-width:100%;height:auto}

/* Tablet compacto: o menu lateral continua lateral, mas os ícones nunca somem.
   A regra antiga ocultava todo <span>, incluindo o próprio Dashicon. */
@media (min-width:721px) and (max-width:1180px){
  body .btp-app{grid-template-columns:88px minmax(0,1fr)!important}
  body .btp-app .btp-sidebar{
    width:88px!important;
    padding:18px 10px 16px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:none!important;
  }
  body .btp-app .btp-sidebar::-webkit-scrollbar{display:none!important}
  body .btp-app .btp-brand-wrap{margin-bottom:14px!important}
  body .btp-app .btp-brand--sidebar{width:52px!important;margin:0 auto!important}
  body .btp-app .btp-brand--sidebar .btp-brand-image{display:none!important}
  body .btp-app .btp-brand--sidebar .btp-brand-mark{
    display:block!important;width:46px!important;height:50px!important;object-fit:contain!important;margin:auto!important
  }
  body .btp-app .btp-brand-tag{display:none!important}
  body .btp-app .btp-sidebar nav.btp-nav{display:grid!important;gap:4px!important}
  body .btp-app .btp-sidebar nav.btp-nav button{
    display:flex!important;align-items:center!important;justify-content:center!important;
    min-height:44px!important;padding:9px!important;border-radius:15px!important;gap:0!important
  }
  body .btp-app .btp-sidebar nav.btp-nav button>span:last-child{display:none!important}
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-icon.dashicons{
    display:block!important;visibility:visible!important;opacity:1!important;
    width:21px!important;height:21px!important;line-height:21px!important;
    font-family:dashicons!important;font-size:21px!important;font-weight:400!important;
    color:#efd083!important;margin:0!important;text-align:center!important
  }
  body .btp-app .btp-sidebar nav.btp-nav button.is-active .btp-nav-icon.dashicons{color:#ffe29e!important}
  body .btp-app .btp-mobile-more-toggle{display:none!important}
  body .btp-app .btp-nav-more{display:contents!important}
  body .btp-app .btp-main{padding-left:24px!important;padding-right:24px!important}
}

/* Portrait tablet: give content more usable room without destroying the desktop hierarchy. */
@media (min-width:721px) and (max-width:900px){
  body .btp-app .btp-main{padding:22px 18px 44px!important}
  body .btp-app .btp-topbar{gap:12px!important;margin-bottom:20px!important}
  body .btp-app .btp-usercard{max-width:260px!important}
  body .btp-app .btp-usertext strong,
  body .btp-app .btp-usertext small{max-width:180px!important}
  body .btp-app .btp-hero{padding:24px!important}
  body .btp-app .btp-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-profile-grid,
  body .btp-app .btp-settings-layout{grid-template-columns:1fr!important}
  body .btp-app .btp-account-card{position:static!important;order:0!important}
  body .btp-app .btp-pipeline{
    display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;gap:12px!important;
    max-height:none!important;padding:0 2px 12px!important;scroll-snap-type:x mandatory!important
  }
  body .btp-app .btp-pipe-col{
    flex:0 0 min(310px,72vw)!important;min-width:260px!important;max-height:62vh!important;
    overflow-y:auto!important;scroll-snap-align:start!important
  }
}

/* Mobile navigation and page shell. */
@media (max-width:720px){
  html:has(.btp-app),body:has(.btp-app){overflow-x:hidden!important;width:100%!important}
  body .btp-app{display:block!important;width:100%!important;min-height:100dvh!important}
  body .btp-app .btp-main{
    width:100%!important;min-width:0!important;
    padding:14px 12px calc(100px + env(safe-area-inset-bottom))!important
  }
  body .btp-app .btp-main>.btp-topbar,
  body .btp-app .btp-main>.btp-view{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}

  body .btp-app .btp-sidebar{
    position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;
    width:100%!important;min-height:0!important;height:auto!important;
    padding:7px 8px calc(8px + env(safe-area-inset-bottom))!important;
    overflow:visible!important;z-index:1000!important;border-right:0!important;
    border-top:1px solid rgba(240,203,120,.12)!important;
    box-shadow:0 -16px 36px rgba(7,12,18,.22)!important;
    background:linear-gradient(180deg,#101720 0%,#132035 100%)!important
  }
  body .btp-app .btp-sidebar .btp-brand-wrap{display:none!important}
  body .btp-app .btp-sidebar nav.btp-nav{
    display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:3px!important;overflow:visible!important;width:100%!important
  }
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle{
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    min-width:0!important;min-height:62px!important;padding:7px 2px 6px!important;gap:5px!important;border-radius:18px!important
  }
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-icon.dashicons{
    display:block!important;visibility:visible!important;opacity:1!important;
    flex:0 0 20px!important;width:20px!important;height:20px!important;line-height:20px!important;
    margin:0 auto!important;font-family:dashicons!important;font-size:20px!important;font-weight:400!important;
    text-align:center!important;color:#f1d184!important
  }
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child{
    display:block!important;width:100%!important;font-size:0!important;line-height:1!important;
    white-space:nowrap!important;overflow:visible!important;text-align:center!important
  }
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child::after{
    content:attr(data-mobile)!important;display:block!important;font-size:12px!important;line-height:1.1!important;color:inherit!important
  }
  /* Corrige o “Mais Mais”: só a versão curta via data-mobile é exibida. */
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child{font-size:0!important}

  body .btp-app .btp-nav-more{
    display:none!important;position:fixed!important;left:10px!important;right:10px!important;
    bottom:calc(82px + env(safe-area-inset-bottom))!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
    max-height:min(58dvh,430px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;
    padding:11px!important;border-radius:22px!important;background:rgba(16,24,35,.985)!important;
    border:1px solid rgba(240,203,120,.18)!important;box-shadow:0 24px 60px rgba(4,8,14,.34)!important;z-index:1100!important
  }
  body .btp-app .btp-nav.is-more-open .btp-nav-more{display:grid!important}
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more button{
    display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
    min-width:0!important;min-height:52px!important;padding:9px 10px!important;gap:9px!important;border-radius:15px!important;text-align:left!important
  }
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more button .btp-nav-icon.dashicons{
    flex:0 0 18px!important;width:18px!important;height:18px!important;line-height:18px!important;font-size:18px!important;margin:0!important
  }
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more button>span:last-child{
    display:block!important;min-width:0!important;font-size:12px!important;line-height:1.2!important;
    white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:#e5ebf2!important
  }
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more button>span:last-child::after{content:none!important}

  /* Header compacto: deixa o conteúdo ocupar a largura disponível. */
  body .btp-app .btp-topbar{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;
    gap:10px!important;margin-bottom:18px!important
  }
  body .btp-app .btp-topbar-copy{min-width:0!important}
  body .btp-app .btp-topbar-copy h1{font-size:18px!important;line-height:1.15!important;max-width:none!important}
  body .btp-app .btp-topbar-copy p{
    font-size:12px!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:24ch!important
  }
  body .btp-app .btp-userbox{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:0!important}
  body .btp-app .btp-usercard{width:46px!important;height:46px!important;min-width:46px!important;flex:0 0 46px!important;padding:5px!important;border-radius:16px!important}
  body .btp-app .btp-useravatar{width:36px!important;height:36px!important;border-radius:12px!important}
  body .btp-app .btp-usertext,body .btp-app .btp-topbar .btp-ghost{display:none!important}

  /* Perfil: primeiro vêm os campos editáveis; o resumo da conta fica abaixo. */
  body .btp-app .btp-profile-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
  body .btp-app .btp-profile-form{order:1!important;padding:18px!important}
  body .btp-app .btp-account-card{order:2!important;position:static!important;padding:18px!important}
  body .btp-app .btp-form-grid-profile{grid-template-columns:1fr!important;gap:12px!important}
  body .btp-app .btp-form-grid-profile label.wide{grid-column:auto!important}
  body .btp-app .btp-profile-form input{min-width:0!important;width:100%!important}
  body .btp-app .btp-account-card h3,
  body .btp-app .btp-account-card>p{white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important}

  /* Plano: nenhum CTA ou texto pode atravessar o card em telas estreitas. */
  body .btp-app .btp-plan-grid,
  body .btp-app .btp-plan-comparison{grid-template-columns:1fr!important;gap:12px!important}
  body .btp-app .btp-current-plan-card,
  body .btp-app .btp-plan-usage-card,
  body .btp-app .btp-plan-option{padding:18px!important;border-radius:22px!important;overflow:hidden!important}
  body .btp-app .btp-current-plan-top{gap:12px!important}
  body .btp-app .btp-current-plan-top h3,
  body .btp-app .btp-plan-option h3{font-size:25px!important;overflow-wrap:anywhere!important}
  body .btp-app .btp-current-plan-card .btp-primary,
  body .btp-app .btp-current-plan-card .btp-ghost,
  body .btp-app .btp-plan-option .btp-primary,
  body .btp-app .btp-plan-option .btp-ghost{
    width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:50px!important;
    padding:12px 14px!important;white-space:normal!important;text-align:center!important;line-height:1.25!important;font-size:14px!important
  }
  body .btp-app .btp-plan-provider{overflow-wrap:anywhere!important}
  body .btp-app .btp-usage-list>div{padding:13px!important;gap:8px!important;align-items:flex-start!important}
  body .btp-app .btp-usage-list span{min-width:0!important;overflow-wrap:anywhere!important}
  body .btp-app .btp-plan-note{padding:16px!important;gap:10px!important}

  /* Lead workspace: remove o min-width desktop de 1180px que fazia o card sair da tela. */
  body .btp-app .btp-lead-workspace .btp-table-wrap,
  body .btp-app .btp-lead-workspace--compact .btp-table-wrap{
    width:100%!important;max-width:100%!important;margin:0!important;padding:0 10px 10px!important;
    overflow-x:hidden!important;overflow-y:auto!important
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table{
    min-width:0!important;width:100%!important;max-width:100%!important;display:block!important;table-layout:fixed!important
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table thead,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table thead{display:none!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody{display:grid!important;width:100%!important;gap:10px!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody tr{
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    padding:8px 12px!important;margin:0!important;border-radius:18px!important;overflow:hidden!important
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td{
    display:flex!important;width:100%!important;min-width:0!important;max-width:100%!important;
    align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;
    padding:10px 0!important;text-align:right!important;border-bottom:1px solid #edf0f2!important
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td:last-child,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td:last-child{border-bottom:0!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td::before,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td::before{
    content:attr(data-label)!important;display:block!important;flex:0 0 76px!important;min-width:76px!important;
    padding-top:2px!important;font-size:12px!important;line-height:1.2!important;letter-spacing:.08em!important;
    text-transform:uppercase!important;color:#8d98a5!important;font-weight:850!important;text-align:left!important
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td.btp-select-col::before,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td.btp-select-col::before{content:'Selecionar'!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td>*:not(.btp-lead-select),
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td>*:not(.btp-lead-select){min-width:0!important;max-width:calc(100% - 86px)!important}
  body .btp-app .btp-company-cell,
  body .btp-app .btp-site-cell,
  body .btp-app .btp-opportunity-cell{width:100%!important;max-width:calc(100% - 86px)!important;overflow-wrap:anywhere!important;text-align:right!important}
  body .btp-app .btp-lead-sources{justify-content:flex-end!important;flex-wrap:wrap!important}
  body .btp-app .btp-status-control{width:min(100%,190px)!important;max-width:190px!important;margin-left:auto!important}
  body .btp-app .btp-status{width:100%!important;min-width:0!important;max-width:190px!important}
  body .btp-app .btp-quick-actions{width:auto!important;max-width:210px!important;margin-left:auto!important;justify-content:flex-end!important;flex-wrap:wrap!important}
  body .btp-app .btp-icon-action{flex:0 0 36px!important}
  body .btp-app .btp-inline-reanalyze{max-width:100%!important;white-space:normal!important;text-align:center!important}

  /* O cabeçalho, filtros e KPIs também precisam caber sem comprimir o conteúdo. */
  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:0 10px 10px!important}
  body .btp-app .btp-lead-kpis button{min-width:0!important;min-height:62px!important;padding:10px!important}
  body .btp-app .btp-workspace-toolbar{grid-template-columns:1fr!important;gap:8px!important;padding:0 10px 10px!important}
  body .btp-app .btp-bulkbar{margin:0 10px 10px!important;padding:10px!important;display:grid!important;gap:9px!important}
  body .btp-app .btp-bulkbar[hidden]{display:none!important}
  body .btp-app .btp-bulk-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:7px!important}
  body .btp-app .btp-bulk-actions button{width:100%!important;justify-content:center!important;min-height:40px!important}
  body .btp-app .btp-workspace-total{padding:8px 11px!important}

  /* Pipeline em touch vira trilho horizontal, sem esmagar colunas. */
  body .btp-app .btp-pipeline{
    display:flex!important;width:100%!important;max-width:100%!important;gap:10px!important;
    overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;padding:0 1px 10px!important;
    scroll-snap-type:x mandatory!important;overscroll-behavior-x:contain!important
  }
  body .btp-app .btp-pipe-col{
    flex:0 0 calc(100% - 24px)!important;min-width:0!important;max-height:calc(100dvh - 250px)!important;
    overflow-y:auto!important;scroll-snap-align:start!important
  }

  /* Modais/drawers nunca ultrapassam o viewport. */
  body .btp-app .btp-modal{padding:0!important}
  body .btp-app .btp-modal-card,
  body .btp-app .btp-modal.is-lead-drawer .btp-modal-card{
    width:100vw!important;max-width:100vw!important;min-width:0!important;height:100dvh!important;max-height:100dvh!important;
    border-radius:0!important;padding:16px 12px calc(18px + env(safe-area-inset-bottom))!important;overflow-x:hidden!important
  }
}

@media (max-width:380px){
  body .btp-app .btp-main{padding-left:10px!important;padding-right:10px!important}
  body .btp-app .btp-sidebar{padding-left:5px!important;padding-right:5px!important}
  body .btp-app .btp-sidebar nav.btp-nav{gap:2px!important}
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle{padding-left:1px!important;padding-right:1px!important}
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child::after{font-size:12px!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td::before,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td::before{flex-basis:68px!important;min-width:68px!important;font-size:12px!important}
  body .btp-app .btp-company-cell,
  body .btp-app .btp-site-cell,
  body .btp-app .btp-opportunity-cell{max-width:calc(100% - 78px)!important}
  body .btp-app .btp-current-plan-card,
  body .btp-app .btp-plan-usage-card,
  body .btp-app .btp-plan-option{padding:16px!important}
  body .btp-app .btp-current-plan-top>.dashicons{width:42px!important;height:42px!important;font-size:20px!important;flex:0 0 42px!important}
}


/* =========================================================
   v0.20.2 · Marca consistente no cabeçalho mobile
   O logo oficial passa a aparecer no topo de todas as telas
   do app no celular, sem duplicar o nome textual da marca.
========================================================= */
body .btp-app .btp-topbar-mobile-logo{
  display:none;
  width:auto;
  height:auto;
  max-width:100%;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
  -webkit-user-drag:none;
}

@media (max-width:720px){
  body .btp-app .btp-topbar-copy{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    min-width:0!important;
  }
  body .btp-app .btp-topbar-mobile-logo{
    display:block!important;
    width:min(156px,100%)!important;
    max-width:156px!important;
    margin:0 0 5px!important;
    filter:drop-shadow(0 8px 18px rgba(43,31,12,.06));
  }
  /* No mobile, o logo oficial substitui o título textual redundante. */
  body .btp-app .btp-topbar-copy h1{display:none!important}
  body .btp-app .btp-topbar-copy p{
    margin:0!important;
    max-width:21ch!important;
    color:#8894a3!important;
    font-size:12px!important;
    line-height:1.35!important;
    letter-spacing:.01em!important;
  }
}

@media (max-width:380px){
  body .btp-app .btp-topbar-mobile-logo{
    width:min(144px,100%)!important;
    max-width:144px!important;
  }
  body .btp-app .btp-topbar-copy p{
    max-width:19ch!important;
    font-size:12px!important;
  }
}

/* =========================================================
   v0.20.3 · Mobile data cards — alinhamento e legibilidade
   Em celulares, tabelas de leads deixam de usar o layout
   label/valor lado a lado. Cada campo passa a ocupar a largura
   inteira do card para evitar telefones, e-mails e títulos
   espremidos ou deslocados para a direita.
========================================================= */
@media (max-width:640px){
  /* Área dos cards: um pouco mais de respiro, sem perder largura útil. */
  body .btp-app .btp-lead-workspace .btp-table-wrap,
  body .btp-app .btp-lead-workspace--compact .btp-table-wrap{
    padding:0 8px 10px!important;
    overflow-x:hidden!important;
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody{
    gap:12px!important;
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody tr.btp-lead-row{
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    padding:16px 15px!important;
    border-radius:20px!important;
    overflow:hidden!important;
    background:#fff!important;
  }

  /* Checkbox fica independente e não rouba largura do conteúdo. */
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td.btp-select-col,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td.btp-select-col{
    position:absolute!important;
    top:14px!important;
    right:14px!important;
    z-index:2!important;
    width:24px!important;
    min-width:24px!important;
    max-width:24px!important;
    height:24px!important;
    padding:0!important;
    border:0!important;
    display:grid!important;
    place-items:center!important;
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td.btp-select-col::before,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td.btp-select-col::before{display:none!important}
  body .btp-app .btp-lead-select{width:18px!important;height:18px!important;margin:0!important}

  /* Cada informação vira uma seção vertical: rótulo em cima, conteúdo embaixo. */
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td:not(.btp-select-col),
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody tr.btp-lead-row td:not(.btp-select-col){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    justify-content:stretch!important;
    gap:5px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:12px 0!important;
    text-align:left!important;
    border-bottom:1px solid #edf0f2!important;
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td:not(.btp-select-col)::before,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody tr.btp-lead-row td:not(.btp-select-col)::before{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    flex:none!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
    font-size:12px!important;
    line-height:1.2!important;
    letter-spacing:.11em!important;
    color:#8b96a3!important;
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td:last-child,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody tr.btp-lead-row td:last-child{border-bottom:0!important;padding-bottom:2px!important}

  /* Remove os limites herdados do layout de duas colunas. */
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody td>*:not(.btp-lead-select),
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td>*:not(.btp-lead-select),
  body .btp-app .btp-company-cell,
  body .btp-app .btp-site-cell,
  body .btp-app .btp-opportunity-cell{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    text-align:left!important;
  }

  /* Empresa */
  body .btp-app .btp-lead-workspace td[data-label="Empresa"],
  body .btp-app .btp-lead-workspace--compact td[data-label="Empresa"]{padding-top:4px!important;padding-right:34px!important}
  body .btp-app .btp-company-cell>strong{
    display:block!important;
    font-size:17px!important;
    line-height:1.28!important;
    letter-spacing:-.015em!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  body .btp-app .btp-company-cell>small{
    display:block!important;
    margin-top:4px!important;
    font-size:12px!important;
    line-height:1.45!important;
    color:#919ba7!important;
    overflow-wrap:break-word!important;
  }
  body .btp-app .btp-lead-sources{justify-content:flex-start!important;margin-top:8px!important;gap:5px!important}
  body .btp-app .btp-lead-sources span,body .btp-app .btp-lead-sources em{max-width:100%!important;white-space:normal!important;text-align:left!important}

  /* Contato: telefone nunca deve quebrar em duas linhas. */
  body .btp-app .btp-qualified-table td[data-label="Contato"]>strong{
    display:block!important;
    width:max-content!important;
    max-width:100%!important;
    white-space:nowrap!important;
    font-size:16px!important;
    line-height:1.25!important;
    color:#1c2837!important;
  }
  body .btp-app .btp-qualified-table td[data-label="Contato"]>small{
    display:block!important;
    width:100%!important;
    margin:0!important;
    font-size:12px!important;
    line-height:1.5!important;
    color:#929ca8!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }

  /* Site e análise */
  body .btp-app .btp-site-cell{display:grid!important;gap:7px!important;justify-items:start!important}
  body .btp-app .btp-site-cell>strong{font-size:14px!important;line-height:1.35!important;overflow-wrap:break-word!important}
  body .btp-app .btp-site-cell>small{font-size:12px!important;line-height:1.45!important;margin:0!important}
  body .btp-app .btp-inline-reanalyze{
    width:auto!important;
    max-width:100%!important;
    min-height:40px!important;
    padding:9px 13px!important;
    margin:1px 0 0!important;
    white-space:normal!important;
    justify-self:start!important;
  }

  /* Avaliações: nota e quantidade ficam legíveis sem apertar o número. */
  body .btp-app .btp-qualified-table td[data-label="Avaliações"]{
    grid-template-columns:auto minmax(0,1fr)!important;
    column-gap:10px!important;
    align-items:center!important;
  }
  body .btp-app .btp-qualified-table td[data-label="Avaliações"]::before{grid-column:1/-1!important}
  body .btp-app .btp-qualified-table td[data-label="Avaliações"]>strong{
    width:max-content!important;
    white-space:nowrap!important;
    font-size:16px!important;
    line-height:1.2!important;
  }
  body .btp-app .btp-qualified-table td[data-label="Avaliações"]>small{
    margin:0!important;
    min-width:0!important;
    text-align:left!important;
    font-size:12px!important;
    line-height:1.3!important;
  }

  /* Oportunidade: score e recomendação passam a compor um bloco coeso. */
  body .btp-app .btp-opportunity-cell{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    gap:5px 10px!important;
    align-items:start!important;
  }
  body .btp-app .btp-score-inline{
    grid-column:1!important;
    grid-row:1 / span 2!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    flex-wrap:wrap!important;
    width:auto!important;
  }
  body .btp-app .btp-opportunity-cell>strong{
    grid-column:2!important;
    display:block!important;
    font-size:14px!important;
    line-height:1.35!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  body .btp-app .btp-opportunity-cell>small{
    grid-column:2!important;
    display:block!important;
    margin:0!important;
    font-size:12px!important;
    line-height:1.4!important;
    text-align:left!important;
  }

  /* Status e ações usam a largura do card, não ficam jogados à direita. */
  body .btp-app .btp-status-control{width:100%!important;max-width:100%!important;margin:0!important}
  body .btp-app .btp-status{width:100%!important;max-width:100%!important;min-height:46px!important}
  body .btp-app .btp-status-save{width:100%!important;margin-top:7px!important}
  body .btp-app .btp-status-feedback{text-align:left!important}
  body .btp-app .btp-quick-actions,
  body .btp-app .btp-table-actions{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    display:flex!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:7px!important;
    flex-wrap:wrap!important;
  }
  body .btp-app .btp-icon-action{width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;border-radius:14px!important}

  /* Tabelas simples (vendas, perdas e outras listagens) seguem o mesmo padrão. */
  body .btp-app .btp-table:not(.btp-qualified-table){min-width:0!important;width:100%!important;display:block!important}
  body .btp-app .btp-table:not(.btp-qualified-table) thead{display:none!important}
  body .btp-app .btp-table:not(.btp-qualified-table) tbody{display:grid!important;gap:10px!important;width:100%!important}
  body .btp-app .btp-table:not(.btp-qualified-table) tbody tr:not(.btp-empty-row){
    display:block!important;width:100%!important;padding:14px!important;border:1px solid #e8e3da!important;border-radius:18px!important;background:#fff!important
  }
  body .btp-app .btp-table:not(.btp-qualified-table) tbody tr:not(.btp-empty-row) td{
    display:grid!important;grid-template-columns:1fr!important;gap:5px!important;width:100%!important;max-width:100%!important;
    padding:10px 0!important;text-align:left!important;border-bottom:1px solid #edf0f2!important
  }
  body .btp-app .btp-table:not(.btp-qualified-table) tbody tr:not(.btp-empty-row) td::before{
    content:attr(data-label)!important;display:block!important;width:auto!important;min-width:0!important;flex:none!important;
    margin:0!important;padding:0!important;font-size:12px!important;line-height:1.2!important;letter-spacing:.11em!important;
    text-transform:uppercase!important;color:#8b96a3!important;font-weight:850!important;text-align:left!important
  }
  body .btp-app .btp-table:not(.btp-qualified-table) tbody tr:not(.btp-empty-row) td:last-child{border-bottom:0!important}
  body .btp-app .btp-table:not(.btp-qualified-table) tbody tr:not(.btp-empty-row) td>*{max-width:100%!important;margin-left:0!important;text-align:left!important}

  /* Cards de pipeline também preservam nomes longos sem cortes artificiais. */
  body .btp-app .btp-pipe-card strong{white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;line-height:1.35!important}
}

@media (max-width:380px){
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody tr.btp-lead-row{padding:14px 13px!important}
  body .btp-app .btp-company-cell>strong{font-size:16px!important}
  body .btp-app .btp-qualified-table td[data-label="Contato"]>strong{font-size:15px!important}
  body .btp-app .btp-opportunity-cell{grid-template-columns:1fr!important;gap:6px!important}
  body .btp-app .btp-score-inline{grid-column:1!important;grid-row:auto!important}
  body .btp-app .btp-opportunity-cell>strong,
  body .btp-app .btp-opportunity-cell>small{grid-column:1!important}
  body .btp-app .btp-icon-action{width:40px!important;height:40px!important;min-width:40px!important;flex-basis:40px!important}
}


/* =========================================================
   v0.20.4 · Mobile header cleanup
   No celular, mantém apenas a marca oficial no topo. A linha
   institucional/breadcrumb abaixo do logo é ocultada para
   recuperar espaço vertical e evitar informação redundante.
========================================================= */
@media (max-width:720px){
  body .btp-app .btp-topbar-copy p{display:none!important}
  body .btp-app .btp-topbar-mobile-logo{margin-bottom:0!important}
  body .btp-app .btp-topbar{margin-bottom:16px!important}
}


/* =========================================================
   v0.20.5 · Botão de prospecção no mobile
   Evita que o CTA principal ultrapasse o card em 320–440px.
========================================================= */
.btp-search-submit .btp-search-submit-label{
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  text-align:center;
  line-height:1.22;
}

@media (max-width:720px){
  body .btp-app .btp-search-panel{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  body .btp-app .btp-search-submit{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:56px!important;
    height:auto!important;
    margin:14px 0 0!important;
    padding:13px 16px!important;
    gap:9px!important;
    border-radius:18px!important;
    white-space:normal!important;
    overflow:hidden!important;
    text-align:center!important;
    font-size:15px!important;
    line-height:1.22!important;
  }
  body .btp-app .btp-search-submit .dashicons{
    flex:0 0 18px!important;
    width:18px!important;
    height:18px!important;
    margin:0!important;
  }
  body .btp-app .btp-search-submit .btp-search-submit-label{
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:calc(100% - 27px)!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    text-align:center!important;
  }
}

@media (max-width:380px){
  body .btp-app .btp-search-panel{padding:16px!important}
  body .btp-app .btp-search-submit{
    padding:12px 13px!important;
    gap:7px!important;
    font-size:14px!important;
    border-radius:17px!important;
  }
  body .btp-app .btp-search-submit .btp-search-submit-label{
    max-width:calc(100% - 25px)!important;
  }
}

/* ==========================================================
   v0.20.6 · Figma icon system
   Source: Criação de ÍCONES (Figma) · Linear icon family
   Replaces the visible WordPress Dashicons with a coherent,
   lightweight SVG mask system while preserving existing JS.
========================================================== */
body .btp-app .dashicons-dashboard{--btp-figma-icon:url('../icons/figma/dashboard.svg')}
body .btp-app .dashicons-search{--btp-figma-icon:url('../icons/figma/search.svg')}
body .btp-app .dashicons-star-filled{--btp-figma-icon:url('../icons/figma/star.svg')}
body .btp-app .dashicons-groups{--btp-figma-icon:url('../icons/figma/users.svg')}
body .btp-app .dashicons-chart-bar,
body .btp-app .dashicons-chart-line{--btp-figma-icon:url('../icons/figma/chart.svg')}
body .btp-app .dashicons-ellipsis{--btp-figma-icon:url('../icons/figma/more.svg')}
body .btp-app .dashicons-yes-alt{--btp-figma-icon:url('../icons/figma/check-circle.svg')}
body .btp-app .dashicons-dismiss{--btp-figma-icon:url('../icons/figma/close-circle.svg')}
body .btp-app .dashicons-email-alt{--btp-figma-icon:url('../icons/figma/letter.svg')}
body .btp-app .dashicons-editor-code{--btp-figma-icon:url('../icons/figma/code.svg')}
body .btp-app .dashicons-admin-generic{--btp-figma-icon:url('../icons/figma/settings.svg')}
body .btp-app .dashicons-awards{--btp-figma-icon:url('../icons/figma/medal.svg')}
body .btp-app .dashicons-admin-users{--btp-figma-icon:url('../icons/figma/user.svg')}
body .btp-app .dashicons-update{--btp-figma-icon:url('../icons/figma/refresh.svg')}
body .btp-app .dashicons-format-chat{--btp-figma-icon:url('../icons/figma/chat.svg')}
body .btp-app .dashicons-hidden{--btp-figma-icon:url('../icons/figma/archive.svg')}
body .btp-app .dashicons-undo{--btp-figma-icon:url('../icons/figma/undo.svg')}
body .btp-app .dashicons-download{--btp-figma-icon:url('../icons/figma/download.svg')}
body .btp-app .dashicons-visibility{--btp-figma-icon:url('../icons/figma/eye.svg')}
body .btp-app .dashicons-admin-links{--btp-figma-icon:url('../icons/figma/link.svg')}
body .btp-app .dashicons-filter{--btp-figma-icon:url('../icons/figma/filter.svg')}
body .btp-app .dashicons-move{--btp-figma-icon:url('../icons/figma/target.svg')}
body .btp-app .dashicons-lock{--btp-figma-icon:url('../icons/figma/lock.svg')}

body .btp-app .dashicons-dashboard,
body .btp-app .dashicons-search,
body .btp-app .dashicons-star-filled,
body .btp-app .dashicons-groups,
body .btp-app .dashicons-chart-bar,
body .btp-app .dashicons-chart-line,
body .btp-app .dashicons-ellipsis,
body .btp-app .dashicons-yes-alt,
body .btp-app .dashicons-dismiss,
body .btp-app .dashicons-email-alt,
body .btp-app .dashicons-editor-code,
body .btp-app .dashicons-admin-generic,
body .btp-app .dashicons-awards,
body .btp-app .dashicons-admin-users,
body .btp-app .dashicons-update,
body .btp-app .dashicons-format-chat,
body .btp-app .dashicons-hidden,
body .btp-app .dashicons-undo,
body .btp-app .dashicons-download,
body .btp-app .dashicons-visibility,
body .btp-app .dashicons-admin-links,
body .btp-app .dashicons-filter,
body .btp-app .dashicons-move,
body .btp-app .dashicons-lock{
  display:inline-block!important;
  flex:0 0 auto;
  font-family:inherit!important;
  font-size:0!important;
  line-height:1!important;
  width:20px!important;
  height:20px!important;
  background-color:currentColor!important;
  -webkit-mask-image:var(--btp-figma-icon)!important;
  mask-image:var(--btp-figma-icon)!important;
  -webkit-mask-repeat:no-repeat!important;
  mask-repeat:no-repeat!important;
  -webkit-mask-position:center!important;
  mask-position:center!important;
  -webkit-mask-size:contain!important;
  mask-size:contain!important;
  vertical-align:middle;
}
body .btp-app .dashicons-dashboard:before,
body .btp-app .dashicons-search:before,
body .btp-app .dashicons-star-filled:before,
body .btp-app .dashicons-groups:before,
body .btp-app .dashicons-chart-bar:before,
body .btp-app .dashicons-chart-line:before,
body .btp-app .dashicons-ellipsis:before,
body .btp-app .dashicons-yes-alt:before,
body .btp-app .dashicons-dismiss:before,
body .btp-app .dashicons-email-alt:before,
body .btp-app .dashicons-editor-code:before,
body .btp-app .dashicons-admin-generic:before,
body .btp-app .dashicons-awards:before,
body .btp-app .dashicons-admin-users:before,
body .btp-app .dashicons-update:before,
body .btp-app .dashicons-format-chat:before,
body .btp-app .dashicons-hidden:before,
body .btp-app .dashicons-undo:before,
body .btp-app .dashicons-download:before,
body .btp-app .dashicons-visibility:before,
body .btp-app .dashicons-admin-links:before,
body .btp-app .dashicons-filter:before,
body .btp-app .dashicons-move:before,
body .btp-app .dashicons-lock:before{content:''!important;display:none!important}

/* Navigation receives a slightly calmer optical size than action controls. */
body .btp-app .btp-sidebar nav.btp-nav .btp-nav-icon.dashicons{
  width:21px!important;
  height:21px!important;
  min-width:21px!important;
  margin:0!important;
}
body .btp-app .btp-sidebar nav.btp-nav button.is-active .btp-nav-icon.dashicons{
  filter:drop-shadow(0 3px 9px rgba(215,166,69,.15));
}
body .btp-app .btp-icon-action .dashicons,
body .btp-app .btp-inline-reanalyze .dashicons{
  width:18px!important;
  height:18px!important;
}
body .btp-app .btp-search-submit .dashicons,
body .btp-app .btp-workspace-search .dashicons,
body .btp-app .btp-prompt-search .dashicons{
  width:19px!important;
  height:19px!important;
}
body .btp-app .btp-bulk-actions button .dashicons{
  width:17px!important;
  height:17px!important;
  color:inherit!important;
}
body .btp-app .btp-current-plan-top>.dashicons{
  width:26px!important;
  height:26px!important;
  background-color:#172536!important;
}
body .btp-app .btp-plan-note>.dashicons{width:21px!important;height:21px!important}

@media(max-width:720px){
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-icon.dashicons{
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav button.is-active .btp-nav-icon.dashicons{
    width:23px!important;
    height:23px!important;
  }
}

/* Keep the plan badge as a gold tile, with the Figma glyph centered inside. */
body .btp-app .btp-current-plan-top>.dashicons{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#f7dd91,#dfaa3a)!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
  color:#172536!important;
}
body .btp-app .btp-current-plan-top>.dashicons:after{
  content:'';
  display:block;
  width:26px;
  height:26px;
  background:#172536;
  -webkit-mask-image:var(--btp-figma-icon);
  mask-image:var(--btp-figma-icon);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:contain;
  mask-size:contain;
}
@media(max-width:640px){
  body .btp-app .btp-current-plan-top>.dashicons{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    border-radius:15px!important;
  }
  body .btp-app .btp-current-plan-top>.dashicons:after{width:22px;height:22px}
}
/* Context-specific optical sizes for the new SVG masks. */
body .btp-app .btp-prompt-empty>.dashicons{width:36px!important;height:36px!important}
body .btp-app .btp-workspace-empty .dashicons{width:28px!important;height:28px!important}
body .btp-app .btp-pipe-drag-hint .dashicons{width:14px!important;height:14px!important}
body .btp-app .btp-inline-reanalyze .dashicons{width:15px!important;height:15px!important}
body .btp-app .btp-instagram-search .dashicons{width:16px!important;height:16px!important}

/* =========================================================
   v0.20.7 · Stable desktop shell + clean public plan UI
   Keeps the app chrome anchored to the viewport while drawers
   are open and removes internal implementation-looking surfaces.
========================================================= */

html:has(.btp-app){
  scrollbar-gutter:stable;
}
body.btp-modal-open{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}

/* The sidebar must not be tied to the document scroll on desktop/tablet.
   A fixed independent rail prevents the menu from being clipped when a
   lead drawer is opened after the page has been scrolled. */
@media (min-width:1181px){
  body .btp-app{
    display:block!important;
    min-height:100dvh!important;
  }
  body .btp-app .btp-sidebar{
    position:fixed!important;
    inset:0 auto 0 0!important;
    width:280px!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
    z-index:100!important;
  }
  body .btp-app .btp-sidebar::-webkit-scrollbar{display:none!important}
  body .btp-app .btp-main{
    width:calc(100% - 280px)!important;
    min-width:0!important;
    margin-left:280px!important;
  }
}

@media (min-width:721px) and (max-width:1180px){
  body .btp-app{
    display:block!important;
    min-height:100dvh!important;
  }
  body .btp-app .btp-sidebar{
    position:fixed!important;
    inset:0 auto 0 0!important;
    width:88px!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
    z-index:100!important;
  }
  body .btp-app .btp-sidebar::-webkit-scrollbar{display:none!important}
  body .btp-app .btp-main{
    width:calc(100% - 88px)!important;
    min-width:0!important;
    margin-left:88px!important;
  }
}

/* Lead detail backdrop always owns the viewport. This avoids the visual gap
   produced when a sticky sidebar was evaluated against an already-scrolled page. */
body .btp-app .btp-modal.is-lead-drawer{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  align-items:stretch!important;
  justify-content:flex-end!important;
  overflow:hidden!important;
  background:rgba(7,11,17,.72)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  z-index:2147483000!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-modal-card{
  position:relative!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  width:min(700px,94vw)!important;
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  border-radius:28px 0 0 28px!important;
  box-shadow:-28px 0 70px rgba(4,8,14,.24)!important;
}
body.btp-modal-open .btp-sidebar{
  visibility:visible!important;
  opacity:1!important;
  transform:none!important;
  filter:none!important;
  -webkit-filter:none!important;
}

/* Public-facing plan messaging. */
body .btp-app .btp-plan-access-message{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  column-gap:10px!important;
  row-gap:2px!important;
  align-items:center!important;
  width:100%!important;
  margin-top:18px!important;
  padding:13px 14px!important;
  border-radius:17px!important;
  border:1px solid rgba(214,163,75,.18)!important;
  background:rgba(255,255,255,.08)!important;
}
body .btp-app .btp-plan-access-message>.dashicons{
  grid-row:1 / span 2!important;
  width:20px!important;
  height:20px!important;
  color:#f2cf73!important;
}
body .btp-app .btp-plan-access-message strong{
  min-width:0!important;
  font-size:14px!important;
  line-height:1.3!important;
  color:inherit!important;
}
body .btp-app .btp-plan-access-message small{
  min-width:0!important;
  font-size:12px!important;
  line-height:1.45!important;
  color:#aeb9c5!important;
  overflow-wrap:break-word!important;
}
body .btp-app .btp-current-plan-card.is-free .btp-plan-access-message{
  background:#fff9eb!important;
  border-color:#ead39b!important;
  color:#172536!important;
}
body .btp-app .btp-current-plan-card.is-free .btp-plan-access-message small{color:#72808f!important}
body .btp-app .btp-current-plan-card.is-free .btp-plan-access-message>.dashicons{color:#a97616!important}

/* Legacy internal-note styles remain harmless but the element is no longer rendered. */
body .btp-app .btp-plan-note,
body .btp-app .btp-plan-provider{display:none!important}

@media (max-width:720px){
  body .btp-app{display:block!important;min-height:100dvh!important}
  body .btp-app .btp-main{
    width:100%!important;
    margin-left:0!important;
  }
  body .btp-app .btp-sidebar{
    left:0!important;
    right:0!important;
    top:auto!important;
    bottom:0!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  body .btp-app .btp-modal.is-lead-drawer{
    width:100vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
  }
  body .btp-app .btp-modal.is-lead-drawer .btp-modal-card{
    width:100vw!important;
    max-width:100vw!important;
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    border-radius:0!important;
    padding-left:max(14px,env(safe-area-inset-left))!important;
    padding-right:max(14px,env(safe-area-inset-right))!important;
    padding-bottom:max(20px,env(safe-area-inset-bottom))!important;
  }
  body .btp-app .btp-plan-head{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:12px!important;
  }
  body .btp-app .btp-plan-head>div{min-width:0!important;width:100%!important}
  body .btp-app .btp-plan-head h2{overflow-wrap:break-word!important}
  body .btp-app .btp-plan-head p{max-width:100%!important;overflow-wrap:break-word!important}
  body .btp-app .btp-plan-access-message{
    grid-template-columns:auto minmax(0,1fr)!important;
    margin-top:14px!important;
    padding:12px!important;
  }
  body .btp-app .btp-usage-list>div{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
  }
  body .btp-app .btp-usage-list strong{
    white-space:nowrap!important;
    text-align:right!important;
  }
}

@media (max-width:390px){
  body .btp-app .btp-current-plan-top{
    align-items:flex-start!important;
  }
  body .btp-app .btp-current-plan-top h3{font-size:24px!important}
  body .btp-app .btp-plan-option h3{font-size:24px!important}
  body .btp-app .btp-plan-option li{padding-left:21px!important;font-size:14px!important}
  body .btp-app .btp-plan-access-message small{font-size:12px!important}
}

/* v0.21.0 — operational metering (admin only) */
body .btp-app .btp-admin-usage-panel{grid-column:1/-1;padding:26px!important;min-width:0;overflow:hidden}
body .btp-app .btp-admin-usage-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
body .btp-app .btp-admin-usage-kpis article{display:grid;gap:7px;min-width:0;padding:18px;border-radius:18px;background:linear-gradient(180deg,#fff,#fbfaf7);border:1px solid #eee5d5}
body .btp-app .btp-admin-usage-kpis span{color:#7f8b98;font-size:12px;font-weight:700}
body .btp-app .btp-admin-usage-kpis strong{color:#172536;font-size:24px;line-height:1.1;letter-spacing:-.03em;overflow-wrap:anywhere}
body .btp-app .btp-admin-usage-kpis small{color:#9aa4af;font-size:12px;line-height:1.45}
body .btp-app .btp-admin-meter-config{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
body .btp-app .btp-admin-usage-users{display:grid;gap:8px;margin-top:18px;padding-top:18px;border-top:1px solid #eee5d5}
body .btp-app .btp-admin-usage-users>strong{font-size:13px;color:#172536}
body .btp-app .btp-admin-usage-users>div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:11px 13px;border-radius:14px;background:#faf8f3}
body .btp-app .btp-admin-usage-users span{min-width:0;color:#263547;font-weight:700;overflow-wrap:anywhere}
body .btp-app .btp-admin-usage-users em{font-style:normal;color:#8a95a2;font-size:12px;text-align:right;white-space:nowrap}
@media(max-width:980px){
  body .btp-app .btp-admin-usage-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .btp-app .btp-admin-meter-config{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  body .btp-app .btp-admin-usage-panel{padding:18px!important;border-radius:22px!important}
  body .btp-app .btp-admin-usage-kpis{grid-template-columns:1fr;gap:9px}
  body .btp-app .btp-admin-meter-config{grid-template-columns:1fr}
  body .btp-app .btp-admin-usage-kpis article{padding:15px;border-radius:16px}
  body .btp-app .btp-admin-usage-kpis strong{font-size:21px}
  body .btp-app .btp-admin-usage-users>div{align-items:flex-start;flex-direction:column;gap:3px}
  body .btp-app .btp-admin-usage-users em{text-align:left;white-space:normal}
}

/* =========================================================
   v0.22.0 · SaaS dashboard, usage center, history and support
   Inspired by mature prospecting products without copying UI.
========================================================= */
.btp-dashboard-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:4px 0 18px}
.btp-dashboard-intro>div>span,.btp-dashboard-plan-title span,.btp-dashboard-consumption-head span,.btp-onboarding-head>span,.btp-plan-choice-head>span{font-size:12px;letter-spacing:.18em;font-weight:800;color:#9b6a00}
.btp-dashboard-intro h2{margin:7px 0 7px;font-size:30px;line-height:1.08;color:var(--btp-ink);letter-spacing:-.025em}
.btp-dashboard-intro p{margin:0;max-width:780px;color:var(--btp-gray);line-height:1.65}
.btp-dashboard-new-search{width:auto!important;min-width:190px;display:inline-flex!important;align-items:center;justify-content:center;gap:9px;white-space:nowrap}

.btp-dashboard-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 16px}
.btp-dashboard-kpis article{min-width:0;background:rgba(255,255,255,.94);border:1px solid rgba(225,221,210,.88);border-radius:20px;padding:17px;display:flex;align-items:flex-start;gap:12px;box-shadow:0 10px 28px rgba(20,31,48,.045)}
.btp-kpi-icon{width:34px;height:34px;min-width:34px;border-radius:11px;display:grid;place-items:center;background:#fbf4e4;color:#a8750a}
.btp-kpi-icon .dashicons{width:17px!important;height:17px!important}
.btp-dashboard-kpis article>div{min-width:0}
.btp-dashboard-kpis small{display:block;color:#7e8b99;font-size:12px;text-transform:uppercase;letter-spacing:.075em;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.btp-dashboard-kpis strong{display:block;margin:6px 0 3px;font-size:27px;line-height:1;color:var(--btp-ink);letter-spacing:-.03em}
.btp-dashboard-kpis em{display:block;font-size:12px;color:#98a2ad;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.btp-dashboard-plan-row{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:16px;margin-bottom:18px}
.btp-dashboard-plan-row .btp-panel{margin:0;min-height:100%}
.btp-dashboard-plan-card{position:relative;overflow:hidden;background:linear-gradient(140deg,#162536 0%,#1f3148 100%)!important;color:#fff;border-color:rgba(240,203,120,.13)!important}
.btp-dashboard-plan-card:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:-120px;top:-130px;background:radial-gradient(circle,rgba(240,203,120,.18),transparent 67%);pointer-events:none}
.btp-dashboard-plan-card.is-free{background:linear-gradient(140deg,#fff 0%,#fbf5e8 100%)!important;color:var(--btp-ink);border-color:#eadfca!important}
.btp-dashboard-plan-card.is-free:after{background:radial-gradient(circle,rgba(215,163,50,.14),transparent 67%)}
.btp-dashboard-plan-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;position:relative;z-index:1}
.btp-dashboard-plan-title h3{font-size:26px;margin:7px 0 0;color:inherit}
.btp-dashboard-plan-card p{position:relative;z-index:1;max-width:720px;line-height:1.65;color:#bdc9d7}
.btp-dashboard-plan-card.is-free p{color:#687585}
.btp-plan-mini-badge{padding:7px 11px!important;border:1px solid rgba(240,203,120,.24);border-radius:999px;letter-spacing:0!important;color:#f4d783!important;background:rgba(240,203,120,.08);white-space:nowrap}
.btp-dashboard-plan-card.is-free .btp-plan-mini-badge{color:#8c6510!important;background:#fff8e8;border-color:#ead7aa}
.btp-plan-benefit-row{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0;position:relative;z-index:1}
.btp-plan-benefit-row span{padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.075);color:#e7edf4;font-size:12px;font-weight:700}
.btp-dashboard-plan-card.is-free .btp-plan-benefit-row span{background:#fff;color:#70520f;border:1px solid #efe3c7}
.btp-dashboard-plan-actions{position:relative;z-index:1}.btp-dashboard-plan-actions .btp-primary,.btp-dashboard-plan-card>.btp-ghost{width:auto!important;display:inline-flex!important}

.btp-dashboard-consumption{padding:23px 24px!important}
.btp-dashboard-consumption-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}
.btp-dashboard-consumption-head h3{margin:5px 0 0;font-size:20px;color:var(--btp-ink)}
.btp-link-button{border:0;background:transparent;color:#91670d;font-weight:800;cursor:pointer;padding:4px 0}
.btp-usage-meter{margin:14px 0}.btp-usage-meter>div{display:flex;justify-content:space-between;gap:12px;align-items:center}.btp-usage-meter span{font-size:12px;color:#687585}.btp-usage-meter strong{font-size:12px;color:var(--btp-ink)}
.btp-usage-meter>i{display:block;height:7px;background:#edf0f2;border-radius:999px;overflow:hidden;margin-top:7px}.btp-usage-meter>i>b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d9a73b,#f0cb78);transition:width .35s ease}
.btp-usage-meter.is-warning>i>b{background:linear-gradient(90deg,#d19422,#e6b844)}.btp-usage-meter.is-danger>i>b{background:linear-gradient(90deg,#ba574d,#d87665)}

.btp-onboarding-card{padding:26px!important}.btp-onboarding-head h3{font-size:24px;margin:7px 0 6px;color:var(--btp-ink)}.btp-onboarding-head p{margin:0;color:#778492}
.btp-onboarding-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.btp-onboarding-steps article{padding:18px;border:1px solid #ece7dc;background:#fbfbfa;border-radius:18px;min-width:0}.btp-onboarding-steps b{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#fbefd2;color:#8c6411;margin-bottom:16px}.btp-onboarding-steps strong{display:block;color:var(--btp-ink);font-size:14px}.btp-onboarding-steps span{display:block;color:#8a96a4;margin-top:7px;font-size:12px;line-height:1.5}.btp-onboarding-card>.btp-ghost{width:auto!important;display:inline-flex!important}
.btp-commercial-goal-hero{margin-top:18px}

.btp-search-quota{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #e8dfcf;background:linear-gradient(90deg,#fffaf0,#fff);border-radius:18px;margin:-2px 0 16px}
.btp-search-quota>div{display:flex;gap:12px;align-items:center}.btp-search-quota>div>.dashicons{color:#a8750a;width:20px!important;height:20px!important}.btp-search-quota strong,.btp-search-quota small{display:block}.btp-search-quota strong{font-size:13px;color:var(--btp-ink)}.btp-search-quota small{font-size:12px;color:#8994a1;margin-top:3px}.btp-search-quota .btp-ghost{width:auto!important;min-height:40px!important;padding:0 14px!important;white-space:nowrap}
.btp-search-quota.is-warning{border-color:#e5c878;background:#fff8e8}.btp-search-quota.is-limit{border-color:#edc7c3;background:#fff4f2}.btp-search-quota.is-limit strong{color:#9c433d}.btp-search-quota.is-limit>div>.dashicons{color:#b64e46}
.btp-search-submit:disabled{opacity:.62;cursor:not-allowed;filter:saturate(.55)}

/* Search history */
.btp-history-panel{padding:10px 22px 18px!important}.btp-history-list{display:grid}.btp-history-list article{display:grid;grid-template-columns:minmax(260px,1fr) 110px 110px 170px auto;align-items:center;gap:16px;padding:17px 0;border-bottom:1px solid #edf0f2}.btp-history-list article:last-child{border-bottom:0}
.btp-history-main{display:flex;align-items:center;gap:12px;min-width:0}.btp-history-icon{display:grid;place-items:center;width:40px;height:40px;min-width:40px;border-radius:13px;background:#fbf2df;color:#9d6e08}.btp-history-icon .dashicons{width:18px!important;height:18px!important}.btp-history-main strong,.btp-history-main small{display:block}.btp-history-main strong{color:var(--btp-ink)}.btp-history-main small{margin-top:4px;color:#8b97a4}.btp-history-metric span,.btp-history-metric strong{display:block}.btp-history-metric span{font-size:12px;color:#929da9;text-transform:uppercase;letter-spacing:.08em}.btp-history-metric strong{font-size:18px;color:var(--btp-ink);margin-top:4px}.btp-history-list time{font-size:12px;color:#8793a0}.btp-history-list .btp-ghost{width:auto!important;min-height:40px!important;padding:0 13px!important;white-space:nowrap}.btp-history-empty{text-align:center;padding:44px 18px}.btp-history-empty>.dashicons{width:34px!important;height:34px!important;color:#a9780e}.btp-history-empty strong,.btp-history-empty small{display:block}.btp-history-empty strong{font-size:19px;margin-top:14px;color:var(--btp-ink)}.btp-history-empty small{max-width:520px;margin:8px auto 18px;color:#8994a1;line-height:1.6}.btp-history-empty .btp-ghost{width:auto!important;display:inline-flex!important}

/* Support */
.btp-support-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:18px;align-items:start}.btp-support-grid .btp-panel{margin:0}.btp-support-form{display:grid;gap:15px}.btp-support-form label{display:grid;gap:7px;font-size:12px;font-weight:800;color:#5f6d7d}.btp-support-form input,.btp-support-form select,.btp-support-form textarea,.btp-ticket-admin input,.btp-ticket-admin select{width:100%;border:1px solid #e0e4e8;background:#fff;border-radius:14px;padding:12px 14px;color:var(--btp-ink);outline:none}.btp-support-form textarea{resize:vertical;min-height:130px;line-height:1.55}.btp-support-form input:focus,.btp-support-form select:focus,.btp-support-form textarea:focus,.btp-ticket-admin input:focus,.btp-ticket-admin select:focus{border-color:#d5aa4e;box-shadow:0 0 0 4px rgba(215,163,50,.10)}.btp-support-form>.btp-primary{width:auto!important;justify-self:start;display:inline-flex!important;align-items:center;gap:8px}
.btp-ticket-list{display:grid;gap:11px;max-height:640px;overflow:auto;padding-right:4px}.btp-ticket{border:1px solid #e6e8eb;border-radius:18px;padding:15px;background:#fff}.btp-ticket-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.btp-ticket-top strong{color:var(--btp-ink);font-size:13px}.btp-ticket-top small{display:block;color:#909aa6;font-size:12px;margin-top:4px}.btp-ticket-top>span{padding:6px 9px;border-radius:999px;background:#fff4dd;color:#956608;font-size:12px;font-weight:800;white-space:nowrap}.btp-ticket.is-em_atendimento .btp-ticket-top>span{background:#edf4ff;color:#375f9e}.btp-ticket.is-resolvido .btp-ticket-top>span{background:#eaf7f0;color:#22724b}.btp-ticket>p{font-size:12px;line-height:1.6;color:#657382;margin:13px 0 0}.btp-ticket-note{margin-top:13px;padding:12px;background:#f6f8fa;border-radius:13px}.btp-ticket-note strong{font-size:12px;color:#536272}.btp-ticket-note p{margin:5px 0 0;font-size:12px;color:#657382;line-height:1.55}.btp-ticket-admin{display:grid;grid-template-columns:160px minmax(0,1fr) auto;gap:8px;margin-top:13px}.btp-ticket-admin .btp-ghost{width:auto!important;min-height:42px!important;padding:0 14px!important}.btp-support-empty{text-align:center;color:#8b97a3;padding:50px 18px;border:1px dashed #dfe4e8;border-radius:18px}

/* Plan center v2 */
.btp-plan-overview{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);padding:0!important;overflow:hidden}.btp-plan-overview-copy{padding:30px;background:linear-gradient(145deg,#162536,#1f324a);color:#fff}.btp-plan-overview-copy>span:first-child{font-size:12px;letter-spacing:.18em;font-weight:800;color:#f0cb78}.btp-plan-overview-copy h3{font-size:34px;margin:9px 0 10px}.btp-plan-overview-copy p{color:#bdc9d5;line-height:1.65;max-width:570px}.btp-plan-overview-copy .btp-primary{width:auto!important;display:inline-flex!important;margin-top:13px}.btp-pro-active-pill{display:inline-flex!important;padding:9px 13px;border-radius:999px;background:rgba(240,203,120,.12);border:1px solid rgba(240,203,120,.2);color:#f4d77f!important;font-size:12px!important;letter-spacing:0!important}.btp-plan-overview-usage{padding:28px 30px;background:#fff}.btp-plan-choice-head{margin:30px 0 16px}.btp-plan-choice-head h3{font-size:26px;color:var(--btp-ink);margin:7px 0 6px}.btp-plan-choice-head p{margin:0;color:#788594;max-width:830px;line-height:1.6}.btp-plan-comparison-v2{align-items:stretch}.btp-plan-comparison-v2 .btp-plan-option{position:relative;display:flex;flex-direction:column;gap:15px}.btp-plan-comparison-v2 .btp-plan-option.is-current{box-shadow:0 0 0 2px rgba(215,163,50,.45),var(--btp-shadow-soft)}.btp-plan-featured{position:absolute;top:-13px;right:22px;padding:7px 12px;border-radius:999px;background:linear-gradient(90deg,#d8a339,#efca75);color:#19283a!important;font-size:12px!important;letter-spacing:.08em!important;font-weight:900}.btp-plan-price{font-size:28px!important;color:var(--btp-ink)}.btp-plan-option.is-pro .btp-plan-price{color:#f2cc72}.btp-plan-price small{font-size:13px;font-weight:600;opacity:.72}.btp-plan-current-label{margin-top:auto;display:block;padding:12px 15px;border-radius:14px;text-align:center;background:#f7f7f5;color:#657281;font-weight:800;font-size:12px}.btp-plan-option.is-pro .btp-plan-current-label{background:rgba(255,255,255,.08);color:#f3d17f}.btp-plan-comparison-v2 .btp-primary{margin-top:auto;width:100%!important;display:flex!important;justify-content:center}

@media(max-width:1220px){
  .btp-dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .btp-history-list article{grid-template-columns:minmax(220px,1fr) 90px 90px auto}.btp-history-list time{grid-column:1/4;margin-left:52px}.btp-history-list .btp-ghost{grid-column:4;grid-row:1/3}
}
@media(max-width:980px){
  .btp-dashboard-plan-row,.btp-plan-overview,.btp-support-grid{grid-template-columns:1fr}
  .btp-onboarding-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .btp-dashboard-intro{display:block;margin-top:0}.btp-dashboard-intro h2{font-size:25px}.btp-dashboard-intro p{font-size:14px}.btp-dashboard-new-search{margin-top:15px;min-width:0;width:100%!important}
  .btp-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.btp-dashboard-kpis article{padding:14px 12px;gap:9px}.btp-dashboard-kpis small{font-size:12px}.btp-dashboard-kpis strong{font-size:24px}.btp-dashboard-kpis em{font-size:12px}.btp-kpi-icon{width:31px;height:31px;min-width:31px}
  .btp-dashboard-plan-row{gap:12px}.btp-dashboard-plan-card,.btp-dashboard-consumption{padding:19px!important}.btp-dashboard-plan-title h3{font-size:23px}.btp-plan-benefit-row{gap:6px}.btp-plan-benefit-row span{font-size:12px;padding:7px 9px}.btp-dashboard-consumption-head h3{font-size:18px}
  .btp-onboarding-card{padding:19px!important}.btp-onboarding-steps{grid-template-columns:1fr}.btp-onboarding-steps article{display:grid;grid-template-columns:36px 1fr;column-gap:11px;align-items:start}.btp-onboarding-steps b{grid-row:1/3;margin:0}.btp-onboarding-steps span{grid-column:2;margin-top:4px}
  .btp-search-quota{align-items:flex-start;display:grid;grid-template-columns:1fr}.btp-search-quota .btp-ghost{width:100%!important}
  .btp-history-panel{padding:8px 16px 16px!important}.btp-history-list article{grid-template-columns:1fr auto;gap:10px;padding:16px 0}.btp-history-main{grid-column:1/3}.btp-history-metric{padding-left:52px}.btp-history-list time{grid-column:1/3;margin-left:52px}.btp-history-list .btp-ghost{grid-column:1/3;grid-row:auto;width:100%!important}
  .btp-support-form>.btp-primary{width:100%!important;justify-content:center}.btp-ticket-top{display:grid}.btp-ticket-top>span{justify-self:start}.btp-ticket-admin{grid-template-columns:1fr}.btp-ticket-admin .btp-ghost{width:100%!important}
  .btp-plan-overview-copy,.btp-plan-overview-usage{padding:21px}.btp-plan-overview-copy h3{font-size:28px}.btp-plan-overview-copy .btp-primary{width:100%!important;justify-content:center}.btp-plan-choice-head h3{font-size:22px}
}
@media(max-width:720px){
  body .btp-app .btp-nav-more{max-height:min(66dvh,520px)!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:14px!important}
}
@media(min-width:721px){
  body .btp-app .btp-sidebar{overflow:hidden!important}
  body .btp-app .btp-sidebar nav.btp-nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-width:thin;scrollbar-color:rgba(215,163,50,.38) transparent}
  body .btp-app .btp-sidebar nav.btp-nav::-webkit-scrollbar{width:5px}
  body .btp-app .btp-sidebar nav.btp-nav::-webkit-scrollbar-thumb{background:rgba(215,163,50,.34);border-radius:999px}
}

/* ============================================================
   v0.23.0 — HIERARQUIA VISUAL, DEDUPLICAÇÃO E RESPONSIVIDADE
   ============================================================ */

/* Dashboard: os KPIs do topo agora mostram apenas informações
   comerciais que não repetem os cards de plano/consumo. */
body .btp-app .btp-dashboard-kpis--commercial{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  margin-bottom:16px!important;
}

body .btp-app .btp-dashboard-kpis--commercial .btp-kpi-card{
  min-width:0!important;
}

body .btp-app .btp-dashboard-kpis--commercial .btp-kpi-card small,
body .btp-app .btp-dashboard-kpis--commercial .btp-kpi-card em{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
}

/* Indicadores financeiros complementares: visual mais leve para não
   transformar o dashboard em uma sequência de cards repetitivos. */
body .btp-app .btp-dashboard-secondary{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin:18px 0!important;
}

body .btp-app .btp-dashboard-secondary > article{
  position:relative!important;
  min-width:0!important;
  padding:18px 20px!important;
  border:1px solid rgba(22,33,47,.075)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 10px 28px rgba(20,29,40,.045)!important;
  overflow:hidden!important;
}

body .btp-app .btp-dashboard-secondary > article::before{
  content:""!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:3px!important;
  background:linear-gradient(180deg,#efc765 0%,#bd8422 100%)!important;
  opacity:.72!important;
}

body .btp-app .btp-dashboard-secondary span{
  display:block!important;
  color:#8a96a5!important;
  font-size:12px!important;
  font-weight:650!important;
  line-height:1.4!important;
  margin-bottom:7px!important;
}

body .btp-app .btp-dashboard-secondary strong{
  display:block!important;
  color:#111c2b!important;
  font-size:clamp(22px,2vw,31px)!important;
  line-height:1.04!important;
  letter-spacing:-.035em!important;
  overflow-wrap:anywhere!important;
}

/* Prospectar: a lateral fica dedicada à explicação do score.
   Os totais ficam uma única vez junto dos resultados, onde também
   funcionam como filtros. */
body .btp-app .btp-prospect-aside{
  grid-template-columns:1fr!important;
}

body .btp-app .btp-engine-context{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  padding:13px 14px!important;
  border:1px solid rgba(205,153,55,.19)!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,rgba(255,250,238,.96),rgba(255,255,255,.92))!important;
  color:#667384!important;
  box-shadow:0 8px 20px rgba(20,29,40,.035)!important;
}

body .btp-app .btp-engine-context .dashicons{
  flex:0 0 auto!important;
  width:20px!important;
  height:20px!important;
  margin-top:1px!important;
  color:#b57a14!important;
  font-size:20px!important;
  line-height:20px!important;
}

body .btp-app .btp-engine-context p{
  margin:0!important;
  font-size:12.5px!important;
  line-height:1.55!important;
  font-weight:600!important;
}

/* Proteção contra estilos globais do tema/Elementor.
   Ações secundárias nunca podem herdar rosa/magenta. */
body .btp-app button.btp-link-button,
body .btp-app input[type="button"].btp-link-button,
body .btp-app input[type="submit"].btp-link-button{
  -webkit-appearance:none!important;
  appearance:none!important;
  min-height:38px!important;
  padding:9px 13px!important;
  border:1px solid rgba(194,137,36,.30)!important;
  border-radius:13px!important;
  background:#fffaf0!important;
  background-color:#fffaf0!important;
  background-image:none!important;
  color:#76530f!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font:inherit!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:pointer!important;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease!important;
}

body .btp-app button.btp-link-button:focus-visible,
body .btp-app input.btp-link-button:focus-visible{
  outline:0!important;
  box-shadow:0 0 0 3px rgba(214,163,75,.23)!important;
  border-color:#d6a34b!important;
}

@media (hover:hover){
  body .btp-app button.btp-link-button:hover,
  body .btp-app input.btp-link-button:hover{
    background:#f8eed8!important;
    background-color:#f8eed8!important;
    color:#5b400d!important;
    border-color:rgba(181,122,20,.48)!important;
    transform:translateY(-1px)!important;
    box-shadow:0 8px 18px rgba(120,82,15,.08)!important;
  }
}

/* Outras ações claras do sistema também ficam blindadas contra
   variáveis de accent externas. */
body .btp-app button.btp-status-save,
body .btp-app button.btp-inline-reanalyze{
  background-color:#fffaf0!important;
  background-image:none!important;
  color:#76530f!important;
  border-color:rgba(194,137,36,.30)!important;
}

/* Tabelas: a página faz a rolagem vertical. O painel deixa de criar
   uma segunda barra vertical que escapava visualmente do card. */
body .btp-app .btp-table-panel,
body .btp-app .btp-lead-workspace,
body .btp-app .btp-lead-workspace--compact{
  overflow:hidden!important;
}

body .btp-app .btp-table-panel .btp-table-wrap,
body .btp-app .btp-lead-workspace .btp-table-wrap,
body .btp-app .btp-lead-workspace--compact .btp-table-wrap{
  height:auto!important;
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  scrollbar-gutter:auto!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(157,111,30,.40) transparent!important;
}

body .btp-app .btp-table-panel .btp-table-wrap::-webkit-scrollbar,
body .btp-app .btp-lead-workspace .btp-table-wrap::-webkit-scrollbar,
body .btp-app .btp-lead-workspace--compact .btp-table-wrap::-webkit-scrollbar{
  height:7px!important;
  width:7px!important;
}

body .btp-app .btp-table-panel .btp-table-wrap::-webkit-scrollbar-track,
body .btp-app .btp-lead-workspace .btp-table-wrap::-webkit-scrollbar-track,
body .btp-app .btp-lead-workspace--compact .btp-table-wrap::-webkit-scrollbar-track{
  background:transparent!important;
  margin-inline:14px!important;
}

body .btp-app .btp-table-panel .btp-table-wrap::-webkit-scrollbar-thumb,
body .btp-app .btp-lead-workspace .btp-table-wrap::-webkit-scrollbar-thumb,
body .btp-app .btp-lead-workspace--compact .btp-table-wrap::-webkit-scrollbar-thumb{
  min-width:30px!important;
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(157,111,30,.40)!important;
  background-clip:padding-box!important;
}

/* Navegação lateral continua rolável, mas sem a barra dourada exposta. */
@media (min-width:721px){
  body .btp-app .btp-sidebar nav.btp-nav{
    padding-right:0!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
  }

  body .btp-app .btp-sidebar nav.btp-nav::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
  }
}

/* Modais: scrollbar fica dentro do raio visual e não cria a sensação
   de uma linha solta para fora do card. */
body .btp-app .btp-prompt-editor-card,
body .btp-app .btp-message-editor-card{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(157,111,30,.46) transparent!important;
  scrollbar-gutter:stable!important;
}

body .btp-app .btp-prompt-editor-card::-webkit-scrollbar,
body .btp-app .btp-message-editor-card::-webkit-scrollbar{
  width:8px!important;
}

body .btp-app .btp-prompt-editor-card::-webkit-scrollbar-track,
body .btp-app .btp-message-editor-card::-webkit-scrollbar-track{
  background:transparent!important;
  margin-block:22px!important;
}

body .btp-app .btp-prompt-editor-card::-webkit-scrollbar-thumb,
body .btp-app .btp-message-editor-card::-webkit-scrollbar-thumb{
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(157,111,30,.46)!important;
  background-clip:padding-box!important;
}

/* Notebook / desktop compacto */
@media (max-width:1220px){
  body .btp-app .btp-dashboard-kpis--commercial{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  body .btp-app .btp-dashboard-secondary{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* Tablets */
@media (max-width:980px){
  body .btp-app .btp-prospect-aside{
    grid-template-columns:1fr!important;
  }

  body .btp-app .btp-dashboard-secondary{
    gap:10px!important;
  }

  body .btp-app .btp-dashboard-secondary > article{
    padding:16px 17px!important;
  }
}

/* Mobile */
@media (max-width:720px){
  body .btp-app .btp-dashboard-kpis--commercial{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }

  body .btp-app .btp-dashboard-secondary{
    grid-template-columns:1fr!important;
    gap:9px!important;
    margin:14px 0!important;
  }

  body .btp-app .btp-dashboard-secondary > article{
    padding:15px 16px!important;
    border-radius:17px!important;
  }

  body .btp-app .btp-dashboard-secondary strong{
    font-size:24px!important;
  }

  body .btp-app .btp-engine-context{
    padding:12px 13px!important;
    border-radius:14px!important;
  }

  body .btp-app .btp-table-panel .btp-table-wrap,
  body .btp-app .btp-lead-workspace .btp-table-wrap,
  body .btp-app .btp-lead-workspace--compact .btp-table-wrap{
    overflow:hidden!important;
    max-height:none!important;
    scrollbar-width:none!important;
  }

  body .btp-app .btp-table-panel .btp-table-wrap::-webkit-scrollbar,
  body .btp-app .btp-lead-workspace .btp-table-wrap::-webkit-scrollbar,
  body .btp-app .btp-lead-workspace--compact .btp-table-wrap::-webkit-scrollbar{
    display:none!important;
  }

  body .btp-app .btp-prompt-editor-card,
  body .btp-app .btp-message-editor-card{
    scrollbar-width:none!important;
    scrollbar-gutter:auto!important;
  }

  body .btp-app .btp-prompt-editor-card::-webkit-scrollbar,
  body .btp-app .btp-message-editor-card::-webkit-scrollbar{
    display:none!important;
  }
}

/* Celulares estreitos */
@media (max-width:390px){
  body .btp-app .btp-dashboard-kpis--commercial{
    grid-template-columns:1fr!important;
  }
}

/* v0.23.0 — complemento: textos secundários e scroll interno consistente. */
body .btp-app .btp-dashboard-secondary small{
  display:block!important;
  margin-top:7px!important;
  color:#9aa4b0!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:600!important;
}

body .btp-app .btp-modal-card,
body .btp-app .btp-ticket-list,
body .btp-app .btp-message-card pre,
body .btp-app .btp-prompt-card pre,
body .btp-app .btp-batch-pitch-list{
  scrollbar-width:thin!important;
  scrollbar-color:rgba(157,111,30,.40) transparent!important;
}

body .btp-app .btp-modal-card::-webkit-scrollbar,
body .btp-app .btp-ticket-list::-webkit-scrollbar,
body .btp-app .btp-message-card pre::-webkit-scrollbar,
body .btp-app .btp-prompt-card pre::-webkit-scrollbar,
body .btp-app .btp-batch-pitch-list::-webkit-scrollbar{
  width:7px!important;
  height:7px!important;
}

body .btp-app .btp-modal-card::-webkit-scrollbar-track,
body .btp-app .btp-ticket-list::-webkit-scrollbar-track,
body .btp-app .btp-message-card pre::-webkit-scrollbar-track,
body .btp-app .btp-prompt-card pre::-webkit-scrollbar-track,
body .btp-app .btp-batch-pitch-list::-webkit-scrollbar-track{
  background:transparent!important;
  margin-block:14px!important;
}

body .btp-app .btp-modal-card::-webkit-scrollbar-thumb,
body .btp-app .btp-ticket-list::-webkit-scrollbar-thumb,
body .btp-app .btp-message-card pre::-webkit-scrollbar-thumb,
body .btp-app .btp-prompt-card pre::-webkit-scrollbar-thumb,
body .btp-app .btp-batch-pitch-list::-webkit-scrollbar-thumb{
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(157,111,30,.40)!important;
  background-clip:padding-box!important;
}

/* =========================================================
   v0.24.0 · Natural scrolling + pipeline sem faixa horizontal
   ========================================================= */

/* Lead/result tables keep only the horizontal overflow they actually need.
   Vertical wheel/touch movement belongs to the page, not to a nested panel. */
body .btp-app .btp-table-panel .btp-table-wrap,
body .btp-app .btp-lead-workspace .btp-table-wrap,
body .btp-app .btp-lead-workspace--compact .btp-table-wrap{
  height:auto!important;
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior:auto!important;
  touch-action:auto!important;
  -webkit-overflow-scrolling:touch;
}

/* The informational note removed from Prospectar must never reserve space in
   older cached markup after an update. */
body .btp-app .btp-engine-context{display:none!important}

/* Pipeline: each commercial stage is a full-width row. This removes the
   six-lane horizontal strip and makes the board readable at a glance. */
body .btp-app .btp-pipeline{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;
  gap:13px!important;
  width:100%!important;
  max-width:100%!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  scroll-snap-type:none!important;
  overscroll-behavior:auto!important;
}

body .btp-app .btp-pipe-col{
  display:grid!important;
  grid-template-columns:176px minmax(0,1fr)!important;
  align-items:start!important;
  gap:16px!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:15px!important;
  overflow:visible!important;
  scroll-snap-align:none!important;
  border:1px solid #e8e3d9!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(250,248,243,.92))!important;
  box-shadow:0 10px 28px rgba(17,25,36,.045)!important;
}

body .btp-app .btp-pipe-col h3{
  position:sticky;
  top:14px;
  z-index:1;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:12px!important;
  min-width:0!important;
  margin:0!important;
  padding:8px 12px 8px 5px!important;
  border:0!important;
  color:#5f6c79!important;
  text-transform:none!important;
  letter-spacing:0!important;
}

body .btp-app .btp-pipe-col h3>span{
  display:grid!important;
  gap:5px!important;
  min-width:0!important;
}

body .btp-app .btp-pipe-col h3 small{
  display:block!important;
  margin:0!important;
  color:#aa7b26!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.16em!important;
}

body .btp-app .btp-pipe-stage-name{
  display:block!important;
  color:#243142!important;
  font-size:16px!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:-.015em!important;
  text-transform:none!important;
}

body .btp-app .btp-pipe-col h3 em{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:34px!important;
  height:28px!important;
  margin:0!important;
  padding:0 10px!important;
  border:1px solid #ead9b5!important;
  border-radius:999px!important;
  background:#fff8e9!important;
  color:#8d6416!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:850!important;
  font-style:normal!important;
}

body .btp-app .btp-pipe-list{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:start!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  min-height:92px!important;
  max-height:none!important;
  overflow:visible!important;
}

body .btp-app .btp-pipe-card,
body .btp-app .btp-pipe-col article{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  align-content:start!important;
  gap:3px 10px!important;
  min-width:0!important;
  min-height:128px!important;
  height:100%!important;
  margin:0!important;
  padding:12px!important;
  border:1px solid #e7e3da!important;
  border-radius:17px!important;
  background:linear-gradient(180deg,#fff,#fdfcf9)!important;
  box-shadow:0 7px 20px rgba(17,25,36,.04)!important;
}

body .btp-app .btp-pipe-card>.btp-score{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:start!important;
  width:36px!important;
  height:36px!important;
  margin:0!important;
}

body .btp-app .btp-pipe-card>strong{
  grid-column:2!important;
  min-width:0!important;
  margin:2px 0 0!important;
  color:#263241!important;
  font-size:13.5px!important;
  line-height:1.34!important;
  font-weight:800!important;
  overflow-wrap:break-word!important;
}

body .btp-app .btp-pipe-card>small{
  grid-column:2!important;
  margin:2px 0 0!important;
  color:#8b96a3!important;
  font-size:12px!important;
  line-height:1.35!important;
}

body .btp-app .btp-pipe-drag-hint{
  grid-column:1/-1!important;
  align-self:end!important;
  margin:10px 0 0!important;
  padding-top:9px!important;
  border-top:1px solid #f0ece5!important;
}

body .btp-app .btp-pipe-mobile-move{
  grid-column:1/-1!important;
}

body .btp-app .btp-pipe-empty{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-width:0!important;
  min-height:92px!important;
  height:auto!important;
  margin:0!important;
  padding:18px 20px!important;
  border:1px dashed #e2ddd3!important;
  border-radius:17px!important;
  background:rgba(255,255,255,.52)!important;
  color:#929ca6!important;
  text-align:left!important;
}

body .btp-app .btp-pipe-col.is-drop-target{
  transform:none!important;
  border-color:rgba(202,147,46,.68)!important;
  background:linear-gradient(145deg,#fffaf0,#fbf6ea)!important;
  box-shadow:0 12px 30px rgba(145,101,18,.10)!important;
}

/* Notebook / medium desktop */
@media (max-width:1500px){
  body .btp-app .btp-pipe-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Tablet / compact desktop */
@media (max-width:1080px){
  body .btp-app .btp-pipe-col{
    grid-template-columns:145px minmax(0,1fr)!important;
    gap:12px!important;
  }
  body .btp-app .btp-pipe-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (min-width:721px) and (max-width:900px){
  body .btp-app .btp-pipeline{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    overflow:visible!important;
    max-height:none!important;
    padding:0!important;
    scroll-snap-type:none!important;
  }
  body .btp-app .btp-pipe-col{
    display:grid!important;
    flex:none!important;
    grid-template-columns:132px minmax(0,1fr)!important;
    width:100%!important;
    min-width:0!important;
    max-height:none!important;
    overflow:visible!important;
    scroll-snap-align:none!important;
  }
}

/* Mobile: one compact stage at a time vertically, with no nested scroll. */
@media (max-width:720px){
  body .btp-app .btp-pipeline{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    overflow:visible!important;
    max-height:none!important;
    padding:0!important;
    gap:10px!important;
    scroll-snap-type:none!important;
  }

  body .btp-app .btp-pipe-col{
    display:block!important;
    flex:none!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-height:none!important;
    padding:13px!important;
    overflow:visible!important;
    scroll-snap-align:none!important;
    border-radius:20px!important;
  }

  body .btp-app .btp-pipe-col h3{
    position:static!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin:0 0 11px!important;
    padding:2px 2px 10px!important;
    border-bottom:1px solid #eee8dd!important;
  }

  body .btp-app .btp-pipe-list{
    grid-template-columns:minmax(0,1fr)!important;
    min-height:0!important;
    gap:9px!important;
  }

  body .btp-app .btp-pipe-card,
  body .btp-app .btp-pipe-col article{
    min-height:0!important;
    height:auto!important;
    padding:13px!important;
  }

  body .btp-app .btp-pipe-empty{
    min-height:70px!important;
    padding:15px!important;
  }

  body .btp-app .btp-table-panel .btp-table-wrap,
  body .btp-app .btp-lead-workspace .btp-table-wrap,
  body .btp-app .btp-lead-workspace--compact .btp-table-wrap{
    overflow:visible!important;
    touch-action:auto!important;
  }
}

/* =========================================================
   v0.25.0 · Painel comercial enxuto, ajuda contextual,
   pipeline híbrido e rolagem nativa
========================================================= */

/* Evita que smooth-scroll global do tema/Elementor deixe o app lento. */
html:has(.btp-app),
body:has(.btp-app),
body .btp-app,
body .btp-app .btp-main,
body .btp-app .btp-pipe-list,
body .btp-app .btp-table-wrap{
  scroll-behavior:auto!important;
}

/* O wheel/touch vertical pertence ao documento. Tabelas usam overflow apenas
   no eixo horizontal quando realmente excedem a largura disponível. */
body .btp-app .btp-table-panel .btp-table-wrap,
body .btp-app .btp-lead-workspace .btp-table-wrap,
body .btp-app .btp-lead-workspace--compact .btp-table-wrap{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  max-height:none!important;
  height:auto!important;
  overscroll-behavior:auto!important;
  scrollbar-gutter:auto!important;
  touch-action:pan-x pan-y!important;
  -webkit-overflow-scrolling:touch!important;
}

/* Ajuda no topo, sem tutorial ocupando o dashboard. */
body .btp-app .btp-help-trigger{
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 48px!important;
  width:48px!important;
  height:48px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #eee6d6!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.86)!important;
  color:#9d6d17!important;
  box-shadow:0 8px 22px rgba(21,31,43,.05)!important;
  cursor:pointer!important;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important;
}
body .btp-app .btp-help-trigger:hover{
  transform:translateY(-1px)!important;
  border-color:#ddbc77!important;
  box-shadow:0 12px 25px rgba(21,31,43,.08)!important;
}
body .btp-app .btp-help-trigger .dashicons{
  width:21px!important;height:21px!important;font-size:21px!important;line-height:21px!important;
}
body.btp-help-open{overflow:hidden!important}
body .btp-app .btp-help-panel{
  position:fixed!important;
  inset:0!important;
  z-index:100000!important;
  display:block!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  transition:opacity .22s ease,visibility .22s ease!important;
}
body .btp-app .btp-help-panel.is-open{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body .btp-app .btp-help-backdrop{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:rgba(5,12,20,.48)!important;backdrop-filter:blur(5px)!important;
}
body .btp-app .btp-help-card{
  position:absolute!important;top:0!important;right:0!important;bottom:0!important;
  width:min(460px,calc(100vw - 26px))!important;
  display:flex!important;flex-direction:column!important;
  min-width:0!important;max-width:100%!important;
  padding:0!important;
  border-left:1px solid rgba(219,180,102,.36)!important;
  background:linear-gradient(180deg,#fffdfa 0%,#f8f5ef 100%)!important;
  box-shadow:-28px 0 65px rgba(7,18,30,.22)!important;
  transform:translateX(104%)!important;
  transition:transform .28s cubic-bezier(.22,.75,.25,1)!important;
  overflow:hidden!important;
}
body .btp-app .btp-help-panel.is-open .btp-help-card{transform:none!important}
body .btp-app .btp-help-head{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;
  padding:30px 28px 22px!important;border-bottom:1px solid #ece5d9!important;
  background:linear-gradient(145deg,#132337,#0f1c2c)!important;color:#fff!important;
}
body .btp-app .btp-help-head>div{min-width:0!important}
body .btp-app .btp-help-head span{
  display:block!important;margin:0 0 7px!important;color:#efc45e!important;font-size:12px!important;font-weight:900!important;letter-spacing:.15em!important;
}
body .btp-app .btp-help-head h2{margin:0!important;color:#fff!important;font-size:27px!important;line-height:1.1!important;letter-spacing:-.035em!important}
body .btp-app .btp-help-head p{margin:9px 0 0!important;color:#b7c0cb!important;font-size:13px!important;line-height:1.55!important}
body .btp-app .btp-help-close{
  flex:0 0 42px!important;width:42px!important;height:42px!important;padding:0!important;margin:0!important;
  border:1px solid rgba(255,255,255,.13)!important;border-radius:50%!important;
  background:rgba(255,255,255,.07)!important;color:#fff!important;font-size:24px!important;line-height:1!important;cursor:pointer!important;
}
body .btp-app .btp-help-content{
  flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:20px 22px 30px!important;overscroll-behavior:contain!important;
  scrollbar-width:thin!important;scrollbar-color:rgba(166,117,28,.48) transparent!important;
}
body .btp-app .btp-help-content::-webkit-scrollbar{width:8px!important}
body .btp-app .btp-help-content::-webkit-scrollbar-track{background:transparent!important}
body .btp-app .btp-help-content::-webkit-scrollbar-thumb{background:rgba(166,117,28,.42)!important;border:2px solid transparent!important;background-clip:padding-box!important;border-radius:999px!important}
body .btp-app .btp-help-content details{
  margin:0 0 10px!important;padding:0!important;border:1px solid #e8e2d7!important;border-radius:17px!important;background:#fff!important;overflow:hidden!important;
}
body .btp-app .btp-help-content summary{
  position:relative!important;display:block!important;padding:16px 44px 16px 16px!important;
  color:#182535!important;font-size:13.5px!important;line-height:1.35!important;font-weight:800!important;cursor:pointer!important;list-style:none!important;
}
body .btp-app .btp-help-content summary::-webkit-details-marker{display:none!important}
body .btp-app .btp-help-content summary::after{
  content:'+'!important;position:absolute!important;right:16px!important;top:50%!important;transform:translateY(-50%)!important;
  color:#a36f13!important;font-size:21px!important;font-weight:500!important;
}
body .btp-app .btp-help-content details[open] summary::after{content:'−'!important}
body .btp-app .btp-help-content details p{margin:0!important;padding:0 16px 16px!important;color:#74808e!important;font-size:13px!important;line-height:1.6!important}
body .btp-app .btp-help-support{margin:0 16px 16px!important;width:calc(100% - 32px)!important;justify-content:center!important}

/* Dashboard: prioridade para faturamento e consumo. */
body .btp-app .btp-dashboard-intro--lean{
  display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:24px!important;margin-bottom:16px!important;
}
body .btp-app .btp-dashboard-intro--lean>div{min-width:0!important;max-width:850px!important}
body .btp-app .btp-dashboard-intro--lean h2{margin-bottom:6px!important}
body .btp-app .btp-dashboard-intro--lean p{max-width:720px!important;margin-bottom:0!important}
body .btp-app .btp-dashboard-new-search{flex:0 0 auto!important;white-space:nowrap!important}
body .btp-app .btp-dashboard-core{
  display:grid!important;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr)!important;gap:14px!important;align-items:stretch!important;margin-bottom:14px!important;
}
body .btp-app .btp-dashboard-revenue-card,
body .btp-app .btp-dashboard-consumption{margin:0!important;min-width:0!important;height:100%!important}
body .btp-app .btp-dashboard-revenue-card{
  padding:26px!important;border:1px solid rgba(225,184,93,.22)!important;
  background:radial-gradient(circle at 88% 6%,rgba(225,181,84,.14),transparent 33%),linear-gradient(145deg,#172a40,#102033)!important;
  color:#fff!important;box-shadow:0 20px 44px rgba(15,30,48,.13)!important;
}
body .btp-app .btp-dashboard-revenue-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important}
body .btp-app .btp-dashboard-revenue-head span,
body .btp-app .btp-dashboard-consumption-head>div>span{color:#c98d22!important;font-size:12px!important;font-weight:900!important;letter-spacing:.14em!important}
body .btp-app .btp-dashboard-revenue-head h3{margin:5px 0 0!important;color:#fff!important;font-size:20px!important}
body .btp-app .btp-dashboard-revenue-head>strong{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:0 12px!important;border:1px solid rgba(238,194,93,.22)!important;border-radius:999px!important;background:rgba(255,255,255,.07)!important;color:#f2c65d!important;font-size:12px!important;
}
body .btp-app .btp-dashboard-revenue-value{margin:20px 0 2px!important;color:#fff!important;font-size:clamp(34px,3.4vw,54px)!important;line-height:1!important;font-weight:850!important;letter-spacing:-.055em!important;white-space:nowrap!important}
body .btp-app .btp-dashboard-revenue-card>p{margin:8px 0 16px!important;color:#aeb9c6!important;font-size:13px!important}
body .btp-app .btp-dashboard-revenue-progress{margin:0 0 19px!important;background:rgba(255,255,255,.10)!important}
body .btp-app .btp-dashboard-revenue-meta{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
body .btp-app .btp-dashboard-revenue-meta>div{min-width:0!important;padding:12px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:15px!important;background:rgba(255,255,255,.045)!important}
body .btp-app .btp-dashboard-revenue-meta span{display:block!important;color:#9fabb9!important;font-size:12px!important;line-height:1.3!important;margin-bottom:5px!important}
body .btp-app .btp-dashboard-revenue-meta strong{display:block!important;color:#fff!important;font-size:13px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
body .btp-app .btp-dashboard-consumption{padding:24px!important}
body .btp-app .btp-dashboard-consumption-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin-bottom:15px!important}
body .btp-app .btp-dashboard-consumption-head h3{margin:5px 0 0!important;font-size:20px!important;line-height:1.2!important}
body .btp-app .btp-dashboard-consumption .btp-usage-meter{margin-top:12px!important}
body .btp-app .btp-dashboard-kpis--lean{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 14px!important;
}
body .btp-app .btp-dashboard-kpis--lean>article{
  display:flex!important;align-items:center!important;gap:13px!important;min-width:0!important;min-height:98px!important;margin:0!important;padding:17px!important;border:1px solid #e9e4da!important;border-radius:20px!important;background:#fff!important;box-shadow:0 10px 25px rgba(20,29,39,.045)!important;
}
body .btp-app .btp-dashboard-kpis--lean .btp-kpi-icon{display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;border-radius:13px!important;background:#fff5df!important;color:#b47a18!important}
body .btp-app .btp-dashboard-kpis--lean article>div{min-width:0!important;display:grid!important}
body .btp-app .btp-dashboard-kpis--lean small{color:#85919f!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.06em!important}
body .btp-app .btp-dashboard-kpis--lean strong{margin:2px 0!important;color:#172332!important;font-size:24px!important;line-height:1.05!important;white-space:nowrap!important}
body .btp-app .btp-dashboard-kpis--lean em{color:#9aa4af!important;font-size:12px!important;font-style:normal!important;line-height:1.3!important}
body .btp-app .btp-dashboard-empty-state{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;padding:24px!important;margin-top:0!important}
body .btp-app .btp-dashboard-empty-state>div{min-width:0!important}
body .btp-app .btp-dashboard-empty-state span{color:#a46f13!important;font-size:12px!important;font-weight:900!important;letter-spacing:.14em!important}
body .btp-app .btp-dashboard-empty-state h3{margin:6px 0!important}
body .btp-app .btp-dashboard-empty-state p{margin:0!important;color:#8793a1!important}

/* Filtros: uma única linha de totais úteis; o estado vazio secundário só aparece
   quando há leads na base mas o filtro atual não encontra resultados. */
body .btp-app .btp-lead-kpis{grid-template-columns:repeat(7,minmax(0,1fr))!important}
body .btp-app .btp-workspace-empty[hidden]{display:none!important}

/* Preferências do usuário; infraestrutura ficou no painel WordPress. */
body .btp-app .btp-settings-layout--user{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr)!important;gap:14px!important;align-items:start!important}
body .btp-app .btp-settings-layout--user .btp-goal-calculator{margin:0!important;height:100%!important}
body .btp-app .btp-settings-side-stack{display:grid!important;gap:14px!important;min-width:0!important}
body .btp-app .btp-settings-savebar{grid-column:1/-1!important}
body .btp-app .btp-plan-checkout-pending{
  display:flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;width:100%!important;margin-top:18px!important;padding:11px 16px!important;border:1px solid rgba(226,183,89,.36)!important;border-radius:999px!important;background:#fff7e6!important;color:#8c651d!important;font-size:12px!important;font-weight:800!important;text-align:center!important;
}
body .btp-app .btp-account-card .btp-account-meta{margin-top:18px!important}

/* Pipeline híbrido: 3 colunas em desktop, quebra por linhas; somente a lista
   dentro da etapa rola quando há muitos leads. */
body .btp-app .btp-pipeline{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:start!important;
  gap:14px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  max-height:none!important;
  scroll-snap-type:none!important;
}
body .btp-app .btp-pipe-col{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:14px!important;
  overflow:visible!important;
  border:1px solid #e8e3d9!important;
  border-radius:22px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(250,248,243,.94))!important;
  box-shadow:0 10px 28px rgba(17,25,36,.045)!important;
}
body .btp-app .btp-pipe-col h3{
  position:static!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  margin:0 0 11px!important;
  padding:2px 2px 10px!important;
  border:0!important;
  border-bottom:1px solid #eee8dd!important;
}
body .btp-app .btp-pipe-col h3>span{display:grid!important;gap:4px!important;min-width:0!important}
body .btp-app .btp-pipe-col h3 small{font-size:12px!important;line-height:1!important}
body .btp-app .btp-pipe-stage-name{font-size:15px!important;line-height:1.2!important;white-space:nowrap!important}
body .btp-app .btp-pipe-col h3 em{flex:0 0 auto!important}
body .btp-app .btp-pipe-list{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  min-height:72px!important;
  max-height:min(52vh,520px)!important;
  padding:1px 5px 1px 1px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
  touch-action:pan-y!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(167,118,29,.45) transparent!important;
}
body .btp-app .btp-pipe-list::-webkit-scrollbar{width:8px!important}
body .btp-app .btp-pipe-list::-webkit-scrollbar-track{background:transparent!important}
body .btp-app .btp-pipe-list::-webkit-scrollbar-thumb{background:rgba(167,118,29,.40)!important;border:2px solid transparent!important;background-clip:padding-box!important;border-radius:999px!important}
body .btp-app .btp-pipe-card,
body .btp-app .btp-pipe-col article{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr)!important;
  gap:2px 10px!important;
  min-width:0!important;
  min-height:106px!important;
  height:auto!important;
  padding:11px!important;
  border-radius:16px!important;
}
body .btp-app .btp-pipe-card>strong{font-size:12.5px!important;line-height:1.32!important;overflow-wrap:normal!important;word-break:normal!important}
body .btp-app .btp-pipe-card>small{font-size:12px!important}
body .btp-app .btp-pipe-drag-hint{margin-top:8px!important;padding-top:7px!important;font-size:12px!important}
body .btp-app .btp-pipe-empty{min-height:72px!important;padding:14px!important;border-radius:15px!important}

/* Scrollbars internos que realmente fazem sentido seguem a identidade. */
body .btp-app .btp-pipe-list,
body .btp-app .btp-help-content,
body .btp-app .btp-prompt-editor-card,
body .btp-app .btp-modal-card{
  scrollbar-width:thin!important;
  scrollbar-color:rgba(164,113,24,.45) transparent!important;
}
body .btp-app .btp-pipe-list::-webkit-scrollbar-thumb,
body .btp-app .btp-help-content::-webkit-scrollbar-thumb,
body .btp-app .btp-prompt-editor-card::-webkit-scrollbar-thumb,
body .btp-app .btp-modal-card::-webkit-scrollbar-thumb{
  border-radius:999px!important;
}

@media (max-width:1450px){
  body .btp-app .btp-pipeline{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-dashboard-core{grid-template-columns:minmax(0,1fr) minmax(320px,.72fr)!important}
  body .btp-app .btp-dashboard-revenue-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-dashboard-revenue-meta>div:first-child{grid-column:1/-1!important}
}

@media (max-width:1120px){
  body .btp-app .btp-dashboard-core{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-dashboard-revenue-meta{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-dashboard-revenue-meta>div:first-child{grid-column:auto!important}
  body .btp-app .btp-dashboard-kpis--lean{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-settings-layout--user{grid-template-columns:minmax(0,1fr)!important}
}

@media (max-width:900px){
  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

@media (max-width:820px){
  body .btp-app .btp-pipeline{grid-template-columns:minmax(0,1fr)!important}
}

@media (max-width:720px){
  body .btp-app .btp-help-trigger{flex-basis:42px!important;width:42px!important;height:42px!important;border-radius:14px!important}
  body .btp-app .btp-help-card{
    top:auto!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:100%!important;max-height:min(86dvh,760px)!important;
    border-left:0!important;border-top:1px solid rgba(219,180,102,.36)!important;border-radius:24px 24px 0 0!important;
    transform:translateY(104%)!important;box-shadow:0 -28px 65px rgba(7,18,30,.22)!important;
  }
  body .btp-app .btp-help-panel.is-open .btp-help-card{transform:none!important}
  body .btp-app .btp-help-head{padding:22px 18px 17px!important}
  body .btp-app .btp-help-head h2{font-size:23px!important}
  body .btp-app .btp-help-content{padding:14px 14px calc(20px + env(safe-area-inset-bottom))!important}

  body .btp-app .btp-dashboard-intro--lean{align-items:stretch!important;flex-direction:column!important;gap:13px!important}
  body .btp-app .btp-dashboard-new-search{width:100%!important;justify-content:center!important}
  body .btp-app .btp-dashboard-core{gap:10px!important}
  body .btp-app .btp-dashboard-revenue-card,
  body .btp-app .btp-dashboard-consumption{padding:18px!important}
  body .btp-app .btp-dashboard-revenue-value{font-size:34px!important;white-space:normal!important}
  body .btp-app .btp-dashboard-revenue-meta{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-dashboard-kpis--lean{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body .btp-app .btp-dashboard-kpis--lean>article{min-height:88px!important;padding:13px!important;gap:9px!important}
  body .btp-app .btp-dashboard-kpis--lean .btp-kpi-icon{flex-basis:36px!important;width:36px!important;height:36px!important}
  body .btp-app .btp-dashboard-kpis--lean strong{font-size:21px!important}
  body .btp-app .btp-dashboard-empty-state{align-items:stretch!important;flex-direction:column!important;padding:18px!important}
  body .btp-app .btp-dashboard-empty-state .btp-primary{width:100%!important;justify-content:center!important}

  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  body .btp-app .btp-pipe-col{padding:12px!important;border-radius:19px!important}
  body .btp-app .btp-pipe-list{max-height:360px!important;gap:8px!important;padding-right:4px!important}
  body .btp-app .btp-pipe-card,
  body .btp-app .btp-pipe-col article{min-height:0!important;height:auto!important;padding:12px!important}
  body .btp-app .btp-pipe-stage-name{white-space:normal!important}

  /* Em cards mobile não existe necessidade de trilho horizontal de tabela. */
  body .btp-app .btp-table-panel .btp-table-wrap,
  body .btp-app .btp-lead-workspace .btp-table-wrap,
  body .btp-app .btp-lead-workspace--compact .btp-table-wrap{
    overflow-x:hidden!important;
    overflow-y:visible!important;
    touch-action:pan-y!important;
  }
}

@media (max-width:430px){
  body .btp-app .btp-dashboard-kpis--lean{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-dashboard-consumption-head{align-items:flex-start!important;flex-direction:column!important}
  body .btp-app .btp-dashboard-consumption-head .btp-link-button{width:100%!important;justify-content:center!important}
}

/* =========================================================
   v0.26 — contextos distintos, suporte e estados de leitura
========================================================= */
body .btp-app .btp-lead-mode-discovery .btp-lead-kpis{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
}
body .btp-app .btp-workspace-context-action{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:42px!important;
  padding:10px 15px!important;
  white-space:nowrap!important;
  border-radius:999px!important;
}
body .btp-app .btp-status-readonly{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  max-width:100%!important;
  padding:8px 12px!important;
  border:1px solid #e4e7ea!important;
  border-radius:999px!important;
  background:#f7f8f9!important;
  color:#596776!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body .btp-app .btp-status-readonly.is-abordar,
body .btp-app .btp-status-readonly.is-contatado{background:#fff9ec!important;border-color:#ead7aa!important;color:#8d6518!important}
body .btp-app .btp-status-readonly.is-respondeu,
body .btp-app .btp-status-readonly.is-interessado{background:#eff8f3!important;border-color:#cfe7d9!important;color:#397154!important}
body .btp-app .btp-status-readonly.is-proposta{background:#f7f2ff!important;border-color:#ddd2ef!important;color:#6c568e!important}
body .btp-app .btp-status-readonly.is-fechado{background:#edf8f0!important;border-color:#c9e5d0!important;color:#2d7745!important}
body .btp-app .btp-status-readonly.is-perdido{background:#faf2f2!important;border-color:#ecd2d2!important;color:#8e5555!important}
body .btp-app .btp-lead-mode-discovery .btp-table-actions,
body .btp-app .btp-lead-mode-summary .btp-table-actions{
  gap:7px!important;
  flex-wrap:nowrap!important;
}
body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr,
body .btp-app .btp-lead-mode-summary .btp-qualified-table tbody tr{
  transition:background .18s ease!important;
}
@media (hover:hover){
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr:hover,
  body .btp-app .btp-lead-mode-summary .btp-qualified-table tbody tr:hover{background:#fffdf8!important}
}
body .btp-app .btp-support-form .is-invalid{
  border-color:#b96a5d!important;
  box-shadow:0 0 0 4px rgba(185,106,93,.10)!important;
  background:#fffafa!important;
}
body .btp-app #btp-support-feedback:not(:empty){
  display:block!important;
  margin-top:0!important;
  padding:11px 13px!important;
  border:1px solid #e7e2d8!important;
  border-radius:13px!important;
  background:#fbfaf7!important;
  line-height:1.45!important;
}
body .btp-app #btp-support-feedback.success{border-color:#cfe4d7!important;background:#f3faf6!important;color:#2f7550!important}
body .btp-app #btp-support-feedback.error{border-color:#ead2cd!important;background:#fff8f6!important;color:#9a5c52!important}

@media (max-width:1180px){
  body .btp-app .btp-lead-mode-discovery .btp-lead-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:760px){
  body .btp-app .btp-workspace-head{align-items:flex-start!important}
  body .btp-app .btp-workspace-context-action{width:100%!important;margin-top:4px!important}
  body .btp-app .btp-status-readonly{width:100%!important;justify-content:flex-start!important}
}
@media (max-width:560px){
  body .btp-app .btp-lead-mode-discovery .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ==========================================================
   v0.28.0 — Fechamentos unificados + ações externas confiáveis
========================================================== */
body .btp-app .btp-closing-page-head{margin-bottom:18px!important}
body .btp-app .btp-closing-page-head>div{max-width:820px!important}
body .btp-app .btp-closing-stack{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:18px!important;
}
body .btp-app .btp-closing-panel{
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  border:1px solid rgba(222,214,198,.78)!important;
}
body .btp-app .btp-closing-section-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:22px!important;
  padding:22px 24px 18px!important;
  border-bottom:1px solid #eee9df!important;
  background:linear-gradient(180deg,#fff,#fffdf9)!important;
}
body .btp-app .btp-closing-section-head>div{min-width:0!important;max-width:860px!important}
body .btp-app .btp-closing-section-head span{
  display:block!important;
  margin:0 0 5px!important;
  color:#9b6a13!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.16em!important;
}
body .btp-app .btp-closing-section-head h3{
  margin:0!important;
  color:#121c29!important;
  font-size:22px!important;
  line-height:1.15!important;
}
body .btp-app .btp-closing-section-head p{
  margin:7px 0 0!important;
  max-width:760px!important;
  color:#7e8b9a!important;
  font-size:13px!important;
  line-height:1.55!important;
}
body .btp-app .btp-closing-count{
  flex:0 0 auto!important;
  min-width:78px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  padding:11px 14px!important;
  border:1px solid #ead8ad!important;
  border-radius:16px!important;
  background:#fff8e8!important;
  color:#8f6211!important;
  font-size:20px!important;
  line-height:1!important;
}
body .btp-app .btp-closing-count small{
  color:#9a8766!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
body .btp-app .btp-closing-scroll{
  max-height:430px!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:#d1a13d #eee9df!important;
  scrollbar-gutter:stable!important;
  padding:0!important;
}
body .btp-app .btp-closing-scroll::-webkit-scrollbar{width:10px!important;height:10px!important}
body .btp-app .btp-closing-scroll::-webkit-scrollbar-track{background:#eee9df!important;border-radius:999px!important}
body .btp-app .btp-closing-scroll::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#ebc667,#bd8520)!important;
  border:2px solid #eee9df!important;
  border-radius:999px!important;
}
body .btp-app .btp-closing-scroll:focus-visible{
  outline:2px solid rgba(205,151,42,.45)!important;
  outline-offset:-2px!important;
}
@media (min-width:761px){
  body .btp-app .btp-closing-table thead th{
    position:sticky!important;
    top:0!important;
    z-index:3!important;
    background:#fffdf9!important;
    box-shadow:0 1px 0 #eee9df!important;
  }
}
body .btp-app .btp-icon-action.is-error{
  border-color:#c46f62!important;
  color:#a64e42!important;
  background:#fff5f3!important;
}
@media (max-width:760px){
  body .btp-app .btp-closing-section-head{
    align-items:center!important;
    gap:12px!important;
    padding:18px 16px 15px!important;
  }
  body .btp-app .btp-closing-section-head h3{font-size:19px!important}
  body .btp-app .btp-closing-section-head p{font-size:12px!important;line-height:1.45!important}
  body .btp-app .btp-closing-count{min-width:66px!important;padding:9px 10px!important;border-radius:14px!important;font-size:18px!important}
  body .btp-app .btp-closing-scroll{max-height:460px!important;padding:8px!important}
}
@media (max-width:420px){
  body .btp-app .btp-closing-section-head{align-items:flex-start!important}
  body .btp-app .btp-closing-count{min-width:58px!important}
}


/* ==========================================================
   v0.29.0 — Prospectar com distribuição horizontal mais eficiente
   + Plano removido da navegação redundante
========================================================== */

/* A tabela de descoberta tem uma responsabilidade diferente da central de
   Leads: ela serve para revisar e comparar. No desktop, usamos um layout
   fixo equilibrado para evitar que Status crie um corredor vazio antes das
   ações e para aproveitar melhor toda a largura do painel. */
@media (min-width:721px){
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table{
    width:100%!important;
    min-width:1080px!important;
    table-layout:fixed!important;
  }

  body .btp-app .btp-lead-mode-discovery .btp-qualified-table th,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table td{
    padding-left:12px!important;
    padding-right:12px!important;
  }

  body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(1){width:13%!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(2){width:16%!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(3){width:16%!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(4){width:10%!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(5){width:18%!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(6){width:10%!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(7){width:17%!important}

  body .btp-app .btp-lead-mode-discovery .btp-qualified-table td[data-label="Empresa"] strong,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table td[data-label="Contato"] strong,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table td[data-label="Site"] strong,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table td[data-label="Oportunidade"] strong{
    overflow-wrap:break-word!important;
    word-break:normal!important;
    hyphens:none!important;
  }

  body .btp-app .btp-lead-mode-discovery .btp-qualified-table td[data-label="Status"]{
    padding-left:8px!important;
    padding-right:8px!important;
  }

  body .btp-app .btp-lead-mode-discovery .btp-status-readonly{
    width:max-content!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  body .btp-app .btp-lead-mode-discovery .btp-qualified-table td[data-label="Ações"]{
    padding-left:8px!important;
    width:calc(100% - 6px)!important;
    max-width:calc(100% - 6px)!important;
    margin-right:6px!important;
    padding-right:6px!important;
  }

  body .btp-app .btp-lead-mode-discovery .btp-table-actions{
    width:max-content!important;
    max-width:100%!important;
    margin:0!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
  }

  body .btp-app .btp-lead-mode-discovery .btp-icon-action{
    flex:0 0 35px!important;
  }
}

/* Em notebooks/tablets a tabela permanece dentro do próprio painel. A página
   nunca ganha overflow lateral: somente o trilho da tabela pode rolar. */
@media (min-width:721px) and (max-width:1180px){
  body .btp-app .btp-lead-mode-discovery .btp-table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    scrollbar-width:thin!important;
  }
}

/* O layout mobile já transforma cada lead em card. Reforçamos que nada da
   distribuição desktop pode forçar largura ou quebrar o viewport. */
@media (max-width:720px){
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table{
    min-width:0!important;
    width:100%!important;
    table-layout:auto!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-table-actions{
    width:auto!important;
    max-width:100%!important;
    margin-left:auto!important;
    justify-content:flex-end!important;
    flex-wrap:wrap!important;
  }
}


/* ==========================================================
   v0.30.0 — suporte confiável + seleção de leads em touch
========================================================== */
body .btp-app #btp-support-form,
body .btp-app #btp-support-form *{
  pointer-events:auto;
}
body .btp-app #btp-support-form button[type="submit"]{
  position:relative!important;
  z-index:3!important;
  cursor:pointer!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}
body .btp-app #btp-support-form button[type="submit"][disabled]{
  cursor:wait!important;
  opacity:.72!important;
}
body .btp-app .btp-select-col,
body .btp-app .btp-select-col input,
body .btp-app .btp-lead-select,
body .btp-app [data-btp-select-all]{
  pointer-events:auto!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:transparent!important;
}
body .btp-app .btp-select-col{position:relative!important;z-index:4!important;cursor:pointer!important}
body .btp-app .btp-lead-select,
body .btp-app [data-btp-select-all]{
  position:relative!important;
  z-index:5!important;
  min-width:18px!important;
  min-height:18px!important;
  cursor:pointer!important;
}
body .btp-app #btp-message-lead-picker{
  pointer-events:auto!important;
  position:relative!important;
  z-index:3!important;
  touch-action:manipulation!important;
  cursor:pointer!important;
}
body .btp-app .btp-message-lead-select{position:relative!important;z-index:2!important}


/* v0.31.0 — suporte em conversa contínua */
.btp-ticket-thread{display:grid;gap:10px;margin-top:14px;max-height:360px;overflow:auto;padding:2px 4px 2px 0;scrollbar-width:thin;scrollbar-color:rgba(215,163,50,.48) rgba(16,31,47,.06)}
.btp-ticket-message-row{max-width:86%;padding:11px 13px;border-radius:15px;border:1px solid #e8ebee;background:#f7f8fa;justify-self:start}.btp-ticket-message-row.is-user{background:#fffaf0;border-color:#ead8aa;justify-self:end}.btp-ticket-message-row.is-support{background:#f3f6f9;border-color:#e0e6ec}
.btp-ticket-message-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}.btp-ticket-message-meta strong{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#8b6411}.btp-ticket-message-row.is-support .btp-ticket-message-meta strong{color:#395675}.btp-ticket-message-meta time{font-size:12px;color:#9aa4ae;white-space:nowrap}.btp-ticket-message-row p{margin:0;font-size:12px;line-height:1.55;color:#5d6b79;overflow-wrap:anywhere}
.btp-ticket-reply-form{margin-top:14px;padding-top:14px;border-top:1px solid #edf0f2;display:grid;gap:9px}.btp-ticket-reply-form label{display:grid;gap:7px}.btp-ticket-reply-form label>span{font-size:12px;font-weight:800;color:#556476}.btp-ticket-reply-form textarea{width:100%;min-height:88px;resize:vertical;border:1px solid #e0e4e8;background:#fff;border-radius:14px;padding:12px 14px;color:var(--btp-ink);outline:none;line-height:1.5}.btp-ticket-reply-form textarea:focus{border-color:#d5aa4e;box-shadow:0 0 0 4px rgba(215,163,50,.10)}.btp-ticket-reply-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.btp-ticket-reply-actions small{color:#909ba6;font-size:12px;line-height:1.4}.btp-ticket-reply-actions .btp-primary{width:auto!important;min-height:40px!important;padding:0 14px!important;white-space:nowrap}.btp-ticket-reply-feedback:empty{display:none}
.btp-ticket-thread::-webkit-scrollbar{width:7px}.btp-ticket-thread::-webkit-scrollbar-track{background:rgba(16,31,47,.05);border-radius:999px}.btp-ticket-thread::-webkit-scrollbar-thumb{background:linear-gradient(#e7b94d,#b77c0b);border-radius:999px}
@media(max-width:720px){.btp-ticket-message-row{max-width:94%}.btp-ticket-reply-actions{align-items:stretch;display:grid}.btp-ticket-reply-actions .btp-primary{width:100%!important;justify-content:center}.btp-ticket-thread{max-height:320px}}


/* v0.32.0 — resposta de suporte robusta + encerramento pelo cliente */
.btp-ticket-reply-form [data-ticket-reply-submit]{position:relative;z-index:2;pointer-events:auto!important}
.btp-ticket-resolve-form{display:flex;justify-content:flex-end;margin-top:10px}
.btp-ticket-resolve-button{appearance:none;border:1px solid #e4dccb;background:#fffaf0;color:#7e5b13;border-radius:999px;min-height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease;pointer-events:auto!important}
.btp-ticket-resolve-button:hover{background:#fff4da;border-color:#d7ad58;transform:translateY(-1px)}
.btp-ticket-resolve-button:disabled{opacity:.58;cursor:wait;transform:none}.btp-ticket-resolve-button .dashicons{font-size:16px;width:16px;height:16px}
.btp-ticket-resolved-note{margin-top:10px;padding:10px 12px;border-radius:12px;background:#edf8f2;border:1px solid #d2eadc;color:#367154;font-size:12px;line-height:1.45;display:flex;align-items:flex-start;gap:7px}.btp-ticket-resolved-note .dashicons{font-size:16px;width:16px;height:16px;flex:0 0 auto}
@media(max-width:720px){.btp-ticket-resolve-form{justify-content:stretch}.btp-ticket-resolve-button{width:100%}}


/* ==========================================================
   v0.33.0 — contrato visual dos botões da plataforma
   ----------------------------------------------------------
   REGRA DE DESIGN DO BYTHOMAS PROSPECT:
   Toda nova ação da interface do usuário deve reutilizar um dos
   padrões existentes (btp-primary, btp-ghost, btp-mini,
   btp-icon-action ou uma variante explicitamente baseada nos
   tokens abaixo). Não permitir cores de botão herdadas do tema,
   Elementor ou WordPress. Em especial: sem rosa/magenta/roxo.
========================================================== */
body .btp-app{
  --btp-action-primary-top:#f0cc7a;
  --btp-action-primary-bottom:#d6a34b;
  --btp-action-primary-text:#16110c;
  --btp-action-secondary-bg:#fffaf0;
  --btp-action-secondary-hover:#fff4da;
  --btp-action-secondary-text:#735316;
  --btp-action-secondary-border:#dfc081;
  --btp-action-focus:rgba(214,163,75,.22);
}

/* Botão "Já foi resolvido": sempre secundário premium, nunca herda a
   cor global de botões do Elementor/tema. A classe btp-ghost também é
   aplicada no markup para manter o contrato mesmo se a folha for reordenada. */
body .btp-app button.btp-ticket-resolve-button,
body .btp-app .btp-ticket-resolve-form button.btp-ticket-resolve-button{
  -webkit-appearance:none!important;
  appearance:none!important;
  background:var(--btp-action-secondary-bg)!important;
  background-color:var(--btp-action-secondary-bg)!important;
  background-image:none!important;
  color:var(--btp-action-secondary-text)!important;
  border:1px solid var(--btp-action-secondary-border)!important;
  border-radius:999px!important;
  box-shadow:0 8px 20px rgba(38,31,19,.06)!important;
  text-shadow:none!important;
  min-height:40px!important;
  padding:0 15px!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.2!important;
  letter-spacing:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  cursor:pointer!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
body .btp-app button.btp-ticket-resolve-button .dashicons{
  color:#a87513!important;
}
@media (hover:hover){
  body .btp-app button.btp-ticket-resolve-button:hover{
    background:var(--btp-action-secondary-hover)!important;
    background-color:var(--btp-action-secondary-hover)!important;
    border-color:#d6a34b!important;
    color:#65480f!important;
    transform:translateY(-1px)!important;
    box-shadow:0 10px 24px rgba(167,117,22,.10)!important;
  }
}
body .btp-app button.btp-ticket-resolve-button:focus-visible{
  outline:none!important;
  box-shadow:0 0 0 4px var(--btp-action-focus),0 8px 20px rgba(38,31,19,.06)!important;
}
body .btp-app button.btp-ticket-resolve-button:disabled{
  opacity:.58!important;
  cursor:wait!important;
  transform:none!important;
}

/* Reforço de identidade para botões primários/ghost criados futuramente.
   Isto impede que uma regra do tema do tipo button[type=submit] injete o
   accent color externo na plataforma. */
body .btp-app button.btp-primary,
body .btp-app input[type="submit"].btp-primary,
body .btp-app a.btp-primary{
  background:linear-gradient(180deg,var(--btp-action-primary-top),var(--btp-action-primary-bottom))!important;
  background-color:var(--btp-action-primary-bottom)!important;
  background-image:linear-gradient(180deg,var(--btp-action-primary-top),var(--btp-action-primary-bottom))!important;
  color:var(--btp-action-primary-text)!important;
  border-color:rgba(160,111,17,.20)!important;
  text-shadow:none!important;
}
body .btp-app button.btp-ghost,
body .btp-app a.btp-ghost{
  color:#243040!important;
  border-color:rgba(214,163,75,.22)!important;
  text-shadow:none!important;
}

/* Ações do chamado: alinhamento consistente e sem estouro em resoluções
   intermediárias. */
body .btp-app .btp-ticket-reply-actions{
  flex-wrap:wrap!important;
}
body .btp-app .btp-ticket-reply-actions > small{
  flex:1 1 220px!important;
  min-width:0!important;
}
body .btp-app .btp-ticket-reply-actions > .btp-primary{
  flex:0 0 auto!important;
}
body .btp-app .btp-ticket-resolve-form{
  width:100%!important;
  display:flex!important;
  justify-content:flex-end!important;
  margin-top:10px!important;
}

@media (max-width:900px){
  body .btp-app .btp-ticket-reply-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
  }
  body .btp-app .btp-ticket-reply-actions > .btp-primary,
  body .btp-app .btp-ticket-resolve-button{
    width:100%!important;
    min-width:0!important;
  }
  body .btp-app .btp-ticket-resolve-form{
    justify-content:stretch!important;
  }
}

@media (max-width:560px){
  body .btp-app .btp-ticket,
  body .btp-app .btp-support-form,
  body .btp-app .btp-support-history{
    min-width:0!important;
  }
  body .btp-app .btp-ticket-top{
    gap:8px!important;
  }
  body .btp-app .btp-ticket-message-row{
    max-width:96%!important;
  }
  body .btp-app .btp-ticket-message-meta{
    align-items:flex-start!important;
    flex-wrap:wrap!important;
  }
  body .btp-app .btp-ticket-reply-form textarea{
    min-height:104px!important;
  }
}


/* ==========================================================
   V0.34 — SUPORTE: INBOX ATIVA + ARQUIVO DE RESOLVIDOS
   Chamados resolvidos são somente leitura e saem do chat.
========================================================== */
body .btp-app .btp-support-grid-v2{grid-template-columns:minmax(340px,.72fr) minmax(0,1.28fr);gap:20px;align-items:start}
body .btp-app .btp-support-column{display:grid;gap:16px;min-width:0}
body .btp-app .btp-support-active,
body .btp-app .btp-support-resolved{min-width:0}
body .btp-app .btp-support-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
body .btp-app .btp-support-title-row>div{min-width:0}
body .btp-app .btp-support-title-row>em{font-style:normal;display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;border-radius:999px;background:#fff8e8;border:1px solid #ead5a1;color:#9a6810;font-size:12px;font-weight:900;flex:0 0 auto}
body .btp-app .btp-ticket-list-active{max-height:620px;overscroll-behavior:contain}
body .btp-app .btp-ticket.is-aguardando_cliente .btp-ticket-top>span{background:#fff4dd;color:#8f630d}
body .btp-app .btp-support-empty-compact{padding:30px 18px;display:grid;justify-items:center;gap:6px}
body .btp-app .btp-support-empty-compact>.dashicons{width:30px;height:30px;font-size:30px;color:#b98218}
body .btp-app .btp-support-empty-compact strong{color:var(--btp-ink);font-size:13px}
body .btp-app .btp-support-empty-compact small{font-size:12px;color:#909ba6}
body .btp-app .btp-support-resolved-list{display:grid;gap:8px;max-height:292px;overflow:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:rgba(215,163,50,.58) rgba(16,31,47,.06)}
body .btp-app .btp-support-resolved-list::-webkit-scrollbar{width:7px}
body .btp-app .btp-support-resolved-list::-webkit-scrollbar-track{background:rgba(16,31,47,.05);border-radius:999px}
body .btp-app .btp-support-resolved-list::-webkit-scrollbar-thumb{background:linear-gradient(#e7b94d,#b77c0b);border-radius:999px}
body .btp-app .btp-support-resolved-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid #e8e4dc;border-radius:14px;background:#fff;min-width:0}
body .btp-app .btp-support-resolved-main{display:flex;align-items:center;gap:11px;min-width:0}
body .btp-app .btp-support-resolved-main>div{min-width:0}
body .btp-app .btp-support-resolved-main strong{display:block;color:var(--btp-ink);font-size:12px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .btp-app .btp-support-resolved-main small{display:block;color:#929ca7;font-size:12px;margin-top:4px;line-height:1.35}
body .btp-app .btp-support-resolved-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:#f1f8f4;color:#2f7651;flex:0 0 32px}
body .btp-app .btp-support-resolved-icon .dashicons{width:17px;height:17px;font-size:17px}
body .btp-app .btp-support-resolved-badge{padding:6px 9px;border-radius:999px;background:#eaf7f0;color:#22724b;font-size:12px;font-weight:900;white-space:nowrap}
@media(max-width:1180px){body .btp-app .btp-support-grid-v2{grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr)}}
@media(max-width:980px){body .btp-app .btp-support-grid-v2{grid-template-columns:1fr}body .btp-app .btp-support-form{order:1}body .btp-app .btp-support-column{order:2}body .btp-app .btp-support-grid-v2.has-active-support .btp-support-column{order:1}body .btp-app .btp-support-grid-v2.has-active-support .btp-support-form{order:2}}
@media(max-width:620px){body .btp-app .btp-support-title-row{gap:10px}body .btp-app .btp-support-resolved-row{align-items:flex-start}body .btp-app .btp-support-resolved-main strong{white-space:normal}body .btp-app .btp-support-resolved-main small{max-width:220px}body .btp-app .btp-support-resolved-badge{margin-left:auto}}


/* ==========================================================
   V0.35 — SUPORTE / ARQUIVO SOMENTE LEITURA
   Resolvidos permanecem compactos, mas a conversa pode ser
   consultada sem reabrir o atendimento.
========================================================== */
body .btp-app .btp-support-resolved-item{display:block;border:1px solid #e8e4dc;border-radius:15px;background:#fff;overflow:hidden;min-width:0}
body .btp-app .btp-support-resolved-item + .btp-support-resolved-item{margin-top:0}
body .btp-app .btp-support-resolved-item>summary{list-style:none;cursor:pointer;border:0!important;border-radius:0!important;background:#fff;transition:background .18s ease}
body .btp-app .btp-support-resolved-item>summary::-webkit-details-marker{display:none}
body .btp-app .btp-support-resolved-item>summary:hover{background:#fffaf0}
body .btp-app .btp-support-resolved-item[open]>summary{background:#fffaf0;border-bottom:1px solid #eee7d8!important}
body .btp-app .btp-support-resolved-actions{display:flex;align-items:center;gap:9px;flex:0 0 auto}
body .btp-app .btp-support-resolved-toggle{display:inline-flex;align-items:center;gap:6px;color:#7a5a18;font-size:12px;font-weight:900;white-space:nowrap}
body .btp-app .btp-support-resolved-toggle::after{content:'›';display:inline-block;font-size:18px;line-height:1;transform:rotate(90deg);transition:transform .18s ease}
body .btp-app .btp-support-resolved-item[open] .btp-support-resolved-toggle::after{transform:rotate(-90deg)}
body .btp-app .btp-support-resolved-item[open] .btp-support-resolved-toggle{font-size:0}
body .btp-app .btp-support-resolved-item[open] .btp-support-resolved-toggle::before{content:'Ocultar conversa';font-size:12px}
body .btp-app .btp-support-resolved-transcript{padding:14px 14px 15px;background:#fcfbf8}
body .btp-app .btp-support-resolved-transcript-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}
body .btp-app .btp-support-resolved-transcript-head strong{color:var(--btp-ink);font-size:12px}
body .btp-app .btp-support-resolved-transcript-head small{color:#8d98a4;font-size:12px;text-align:right;line-height:1.4}
body .btp-app .btp-ticket-thread--archive{margin-top:0;max-height:320px;background:#fff;border:1px solid #ece7dc;border-radius:13px;padding:10px}
body .btp-app .btp-support-resolved-lock{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:10px 11px;border-radius:12px;background:#f2f6f3;border:1px solid #dbe8df;color:#557064;font-size:12px;line-height:1.45}
body .btp-app .btp-support-resolved-lock .dashicons{width:16px;height:16px;font-size:16px;flex:0 0 auto}
body .btp-app .btp-support-resolved-list{gap:8px;max-height:560px}
body .btp-app .btp-support-resolved-list>.btp-support-resolved-item .btp-support-resolved-row{border:0}
@media(max-width:720px){
  body .btp-app .btp-support-resolved-actions{align-items:flex-end;flex-direction:column;gap:6px}
  body .btp-app .btp-support-resolved-transcript{padding:12px}
  body .btp-app .btp-support-resolved-transcript-head{display:grid;gap:4px}
  body .btp-app .btp-support-resolved-transcript-head small{text-align:left}
  body .btp-app .btp-ticket-thread--archive{max-height:280px;padding:8px}
}
@media(max-width:520px){
  body .btp-app .btp-support-resolved-item>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
  body .btp-app .btp-support-resolved-actions{grid-column:2;grid-row:1}
  body .btp-app .btp-support-resolved-main{padding-right:4px}
  body .btp-app .btp-support-resolved-badge{display:none}
}

body .btp-app .btp-support-resolved-preview{margin-top:5px!important;color:#647382!important;white-space:normal;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:620px}body .btp-app .btp-support-resolved-preview b{color:#4b5d6f;font-weight:800}

/* V0.36 — Central de suporte em caixa de entrada + detalhe único */
body .btp-app .btp-support-grid-v3{grid-template-columns:minmax(330px,.72fr) minmax(0,1.28fr);gap:20px;align-items:start}
body .btp-app .btp-support-inbox{display:grid;gap:16px;min-width:0}
body .btp-app .btp-support-list-panel{min-width:0;overflow:hidden}
body .btp-app .btp-support-ticket-index{display:grid;gap:8px;overflow:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:rgba(211,157,43,.62) rgba(16,31,47,.06);overscroll-behavior:contain}
body .btp-app .btp-support-ticket-index-active{max-height:390px}
body .btp-app .btp-support-ticket-index-resolved{max-height:300px}
body .btp-app .btp-support-ticket-index::-webkit-scrollbar{width:7px}
body .btp-app .btp-support-ticket-index::-webkit-scrollbar-track{background:rgba(16,31,47,.05);border-radius:999px}
body .btp-app .btp-support-ticket-index::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#edc767,#b77d16);border-radius:999px}
body .btp-app .btp-support-ticket-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:13px 14px;border:1px solid #e8e4dc;border-radius:15px;background:#fff;color:inherit;text-decoration:none;min-width:0;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
body .btp-app .btp-support-ticket-row:hover{transform:translateY(-1px);border-color:#dfc98f;background:#fffdf8;box-shadow:0 8px 22px rgba(18,28,42,.05)}
body .btp-app .btp-support-ticket-row:focus-visible{outline:3px solid rgba(215,163,50,.22);outline-offset:2px}
body .btp-app .btp-support-ticket-row-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:#fff7e7;color:#9d6c13;flex:0 0 38px}
body .btp-app .btp-support-ticket-row-icon.is-resolved{background:#eef8f2;color:#2d7651}
body .btp-app .btp-support-ticket-row-icon .dashicons{width:18px;height:18px;font-size:18px}
body .btp-app .btp-support-ticket-row-copy{display:block;min-width:0}
body .btp-app .btp-support-ticket-row-copy strong{display:block;color:var(--btp-ink);font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .btp-app .btp-support-ticket-row-copy small{display:block;margin-top:4px;color:#929ca7;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .btp-app .btp-support-ticket-row-status,
body .btp-app .btp-support-status-pill{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap;border:1px solid transparent}
body .btp-app .btp-support-ticket-row-status.is-aberto,
body .btp-app .btp-support-status-pill.is-aberto{background:#fff4dd;color:#8f620c;border-color:#f2ddb2}
body .btp-app .btp-support-ticket-row-status.is-em_atendimento,
body .btp-app .btp-support-status-pill.is-em_atendimento{background:#edf4ff;color:#3a6199;border-color:#dce8f8}
body .btp-app .btp-support-ticket-row-status.is-aguardando_cliente,
body .btp-app .btp-support-status-pill.is-aguardando_cliente{background:#fff8e9;color:#8b6418;border-color:#ead9b2}
body .btp-app .btp-support-ticket-row-status.is-resolvido,
body .btp-app .btp-support-status-pill.is-resolvido{background:#eaf7f0;color:#24734b;border-color:#d7ebdf}
body .btp-app .btp-support-ticket-row-action{display:inline-flex;align-items:center;gap:5px;color:#765719;font-size:12px;font-weight:900;white-space:nowrap}
body .btp-app .btp-support-ticket-row-action .dashicons{width:15px;height:15px;font-size:15px}
body .btp-app .btp-support-ticket-detail{min-width:0}
body .btp-app .btp-support-detail-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
body .btp-app .btp-support-back{width:auto!important;min-height:38px!important;padding:0 13px!important;gap:6px!important;text-decoration:none!important}
body .btp-app .btp-support-detail-head{padding-bottom:14px;border-bottom:1px solid #eee9e0}
body .btp-app .btp-support-detail-head>div>span{display:block;color:#9d6b13;font-size:12px;font-weight:900;letter-spacing:.16em}
body .btp-app .btp-support-detail-head h3{margin:6px 0 4px;color:var(--btp-ink);font-size:22px;line-height:1.22;overflow-wrap:anywhere}
body .btp-app .btp-support-detail-head p{margin:0;color:#8d98a4;font-size:12px;line-height:1.45}
body .btp-app .btp-support-detail-thread{max-height:470px;margin:16px 0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(211,157,43,.62) rgba(16,31,47,.06)}
body .btp-app .btp-support-detail-thread::-webkit-scrollbar{width:7px}
body .btp-app .btp-support-detail-thread::-webkit-scrollbar-track{background:rgba(16,31,47,.05);border-radius:999px}
body .btp-app .btp-support-detail-thread::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#edc767,#b77d16);border-radius:999px}
body .btp-app .btp-support-ticket-detail.is-resolved .btp-support-detail-thread{max-height:540px}
body .btp-app .btp-support-ticket-detail .btp-ticket-resolve-form{margin-top:10px}
body .btp-app .btp-support-ticket-detail .btp-ticket-reply-actions{align-items:center}
@media(max-width:1180px){
  body .btp-app .btp-support-grid-v3{grid-template-columns:minmax(300px,.86fr) minmax(0,1.14fr)}
  body .btp-app .btp-support-ticket-row{grid-template-columns:36px minmax(0,1fr) auto}
  body .btp-app .btp-support-ticket-row-action{grid-column:2 / 4;justify-self:start;margin-top:-2px}
}
@media(max-width:980px){
  body .btp-app .btp-support-grid-v3{grid-template-columns:1fr}
  body .btp-app .btp-support-column{order:1}
  body .btp-app .btp-support-form{order:2}
  body .btp-app .btp-support-ticket-index-active{max-height:360px}
  body .btp-app .btp-support-ticket-index-resolved{max-height:270px}
}
@media(max-width:620px){
  body .btp-app .btp-support-ticket-row{grid-template-columns:34px minmax(0,1fr) auto;gap:9px;padding:12px}
  body .btp-app .btp-support-ticket-row-icon{width:34px;height:34px;border-radius:10px;flex-basis:34px}
  body .btp-app .btp-support-ticket-row-copy strong{white-space:normal;font-size:12px}
  body .btp-app .btp-support-ticket-row-copy small{white-space:normal;font-size:12px}
  body .btp-app .btp-support-ticket-row-status{grid-column:3;grid-row:1;align-self:start;padding:0 8px;min-height:25px;font-size:12px}
  body .btp-app .btp-support-ticket-row-action{grid-column:2 / 4;font-size:12px}
  body .btp-app .btp-support-detail-nav{align-items:flex-start;flex-wrap:wrap}
  body .btp-app .btp-support-back{min-height:36px!important;font-size:12px!important}
  body .btp-app .btp-support-detail-head h3{font-size:19px}
  body .btp-app .btp-support-detail-thread{max-height:410px}
  body .btp-app .btp-support-ticket-detail .btp-ticket-reply-actions{display:grid;grid-template-columns:1fr;gap:9px}
  body .btp-app .btp-support-ticket-detail .btp-ticket-reply-actions .btp-primary,
  body .btp-app .btp-support-ticket-detail .btp-ticket-resolve-button{width:100%!important;justify-content:center!important}
}


/* v0.37.0 · suporte: feedback de navegação */
body .btp-app [data-btp-support-nav].is-opening{
  pointer-events:none!important;
  opacity:.68!important;
  transform:translateY(1px)!important;
}
body .btp-app [data-btp-support-nav][aria-busy="true"] .btp-support-ticket-row-action::after{
  content:"";
  width:12px;height:12px;border:2px solid rgba(151,103,8,.22);border-top-color:#b67a08;border-radius:50%;
  display:inline-block;margin-left:7px;vertical-align:-2px;animation:btp-support-spin .7s linear infinite;
}
@keyframes btp-support-spin{to{transform:rotate(360deg)}}

/* v0.39.0 · suporte escalável: central compacta + histórico completo paginado */
body .btp-app .btp-support-archive-cta{
  margin-top:14px;padding-top:14px;border-top:1px solid #eee9e0;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
}
body .btp-app .btp-support-archive-cta>div{min-width:0}
body .btp-app .btp-support-archive-cta strong{display:block;color:var(--btp-ink);font-size:12px;line-height:1.35}
body .btp-app .btp-support-archive-cta small{display:block;margin-top:3px;color:#8f9aa6;font-size:12px;line-height:1.45}
body .btp-app .btp-support-archive-cta .btp-ghost{width:auto!important;min-height:40px!important;padding:0 14px!important;display:inline-flex!important;align-items:center;gap:7px;flex:0 0 auto;text-decoration:none!important}
body .btp-app .btp-support-list-note{
  margin-top:10px;padding:9px 11px;border-radius:12px;background:#fffaf0;border:1px solid #eee0bd;
  display:flex;align-items:center;justify-content:space-between;gap:10px;color:#7a684a;font-size:12px;line-height:1.4
}
body .btp-app .btp-support-list-note a{color:#8b6214;font-weight:900;text-decoration:none;white-space:nowrap}
body .btp-app .btp-support-history-page{display:grid;gap:18px;overflow:hidden}
body .btp-app .btp-support-history-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding-bottom:17px;border-bottom:1px solid #eee9e0}
body .btp-app .btp-support-history-head>div:first-child{min-width:0}
body .btp-app .btp-support-history-head .btp-support-back{margin-bottom:15px}
body .btp-app .btp-support-history-head>div:first-child>span{display:block;color:#9d6b13;font-size:12px;font-weight:900;letter-spacing:.17em}
body .btp-app .btp-support-history-head h3{margin:6px 0 5px;color:var(--btp-ink);font-size:27px;line-height:1.15;letter-spacing:-.02em}
body .btp-app .btp-support-history-head p{max-width:760px;margin:0;color:#7f8c99;font-size:12px;line-height:1.55}
body .btp-app .btp-support-history-total{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:0;padding:12px 15px;border:1px solid #ead7aa;border-radius:15px;background:#fff9ec;white-space:nowrap}
body .btp-app .btp-support-history-total strong{font-size:21px;line-height:1;color:#9a6810;flex:0 0 auto}
body .btp-app .btp-support-history-total span{font-size:12px;font-weight:800;color:#9b8a6c;white-space:nowrap;line-height:1.2}
body .btp-app .btp-support-history-filters{
  display:grid;grid-template-columns:minmax(250px,1.5fr) minmax(150px,.72fr) minmax(150px,.72fr) minmax(130px,.58fr) minmax(130px,.58fr) auto;
  gap:10px;align-items:end;padding:14px;border:1px solid #e9e5dd;border-radius:17px;background:#fbfbfa
}
body .btp-app .btp-support-history-filters label{display:grid;gap:6px;min-width:0}
body .btp-app .btp-support-history-filters label>span{font-size:12px;font-weight:900;letter-spacing:.08em;color:#728092;text-transform:uppercase}
body .btp-app .btp-support-history-filters input,
body .btp-app .btp-support-history-filters select{
  width:100%;min-width:0;height:43px;border:1px solid #dfe4e8;border-radius:13px;background:#fff;color:var(--btp-ink);padding:0 12px;outline:none;font:inherit;font-size:12px;font-weight:700
}
body .btp-app .btp-support-history-filters input:focus,
body .btp-app .btp-support-history-filters select:focus{border-color:#d5aa4e;box-shadow:0 0 0 4px rgba(215,163,50,.10)}
body .btp-app .btp-support-history-search>div{position:relative;min-width:0}
body .btp-app .btp-support-history-search>div>.dashicons{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;font-size:17px;color:#b27b15;pointer-events:none}
body .btp-app .btp-support-history-search input{padding-left:38px}
body .btp-app .btp-support-history-filter-actions{display:flex;gap:8px;align-items:center}
body .btp-app .btp-support-history-filter-actions .btp-primary,
body .btp-app .btp-support-history-filter-actions .btp-ghost{width:auto!important;min-height:43px!important;padding:0 13px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;white-space:nowrap;text-decoration:none!important}
body .btp-app .btp-support-history-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#74818e;font-size:12px;padding:0 2px}
body .btp-app .btp-support-history-summary strong{color:var(--btp-ink)}
body .btp-app .btp-support-history-summary small{font-size:12px;color:#929ca7}
body .btp-app .btp-support-history-list{display:grid;gap:8px}
body .btp-app .btp-support-history-row{
  display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;gap:13px;align-items:center;
  min-width:0;padding:13px 14px;border:1px solid #e7e5df;border-radius:15px;background:#fff;color:inherit;text-decoration:none;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease
}
body .btp-app .btp-support-history-row:hover{transform:translateY(-1px);border-color:#dfc98f;background:#fffdf8;box-shadow:0 8px 22px rgba(18,28,42,.05)}
body .btp-app .btp-support-history-row:focus-visible{outline:3px solid rgba(215,163,50,.22);outline-offset:2px}
body .btp-app .btp-support-history-row-main{display:block;min-width:0}
body .btp-app .btp-support-history-row-main strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--btp-ink);font-size:12px;line-height:1.35}
body .btp-app .btp-support-history-row-main small{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#919ba7;font-size:12px;line-height:1.4}
body .btp-app .btp-support-history-empty{padding:55px 18px;display:grid;justify-items:center;gap:7px}
body .btp-app .btp-support-history-empty>.dashicons{width:34px;height:34px;font-size:34px;color:#b98218}
body .btp-app .btp-support-history-empty strong{color:var(--btp-ink);font-size:14px}
body .btp-app .btp-support-history-empty small{color:#909ba6;font-size:12px;text-align:center}
body .btp-app .btp-support-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;padding-top:4px}
body .btp-app .btp-support-pagination>.btp-ghost{width:max-content!important;min-height:38px!important;padding:0 12px!important;display:inline-flex!important;align-items:center;gap:6px;text-decoration:none!important}
body .btp-app .btp-support-pagination>.btp-ghost:last-child{justify-self:end}
body .btp-app .btp-support-page-numbers{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
body .btp-app .btp-support-page-numbers a,
body .btp-app .btp-support-page-numbers span{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 8px;border-radius:10px;font-size:12px;font-weight:900;text-decoration:none}
body .btp-app .btp-support-page-numbers a{border:1px solid #e7e2d8;background:#fff;color:#5e6874}
body .btp-app .btp-support-page-numbers a:hover{border-color:#d9b766;background:#fff9ec;color:#8a6111}
body .btp-app .btp-support-page-numbers a.is-current{background:#132337;border-color:#132337;color:#fff;pointer-events:none}
body .btp-app .btp-support-page-numbers span{min-width:auto;color:#a1a8af}

@media(max-width:1380px){
  body .btp-app .btp-support-history-filters{grid-template-columns:minmax(230px,1.3fr) repeat(2,minmax(145px,.7fr)) repeat(2,minmax(125px,.58fr));}
  body .btp-app .btp-support-history-filter-actions{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:980px){
  body .btp-app .btp-support-history-head{align-items:flex-start}
  body .btp-app .btp-support-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .btp-app .btp-support-history-search{grid-column:1/-1}
  body .btp-app .btp-support-history-filter-actions{grid-column:1/-1}
  body .btp-app .btp-support-history-row{grid-template-columns:38px minmax(0,1fr) auto}
  body .btp-app .btp-support-history-row .btp-support-ticket-row-action{grid-column:2/4;justify-self:start}
}
@media(max-width:620px){
  body .btp-app .btp-support-archive-cta{align-items:stretch;display:grid}
  body .btp-app .btp-support-archive-cta .btp-ghost{width:100%!important;justify-content:center!important}
  body .btp-app .btp-support-history-head{display:grid;gap:14px}
  body .btp-app .btp-support-history-head h3{font-size:22px}
  body .btp-app .btp-support-history-total{display:inline-flex;justify-self:start;align-items:center;justify-content:flex-start;gap:8px;width:auto;max-width:100%}
  body .btp-app .btp-support-history-total span{white-space:nowrap}
  body .btp-app .btp-support-history-filters{grid-template-columns:1fr;padding:12px}
  body .btp-app .btp-support-history-search,
  body .btp-app .btp-support-history-filter-actions{grid-column:auto}
  body .btp-app .btp-support-history-filter-actions{display:grid;grid-template-columns:1fr 1fr}
  body .btp-app .btp-support-history-filter-actions .btp-primary,
  body .btp-app .btp-support-history-filter-actions .btp-ghost{width:100%!important}
  body .btp-app .btp-support-history-summary{align-items:flex-start;display:grid;gap:3px}
  body .btp-app .btp-support-history-row{grid-template-columns:34px minmax(0,1fr) auto;gap:9px;padding:12px}
  body .btp-app .btp-support-history-row-main strong,
  body .btp-app .btp-support-history-row-main small{white-space:normal}
  body .btp-app .btp-support-history-row .btp-support-ticket-row-status{grid-column:3;grid-row:1;align-self:start}
  body .btp-app .btp-support-history-row .btp-support-ticket-row-action{grid-column:2/4;font-size:12px}
  body .btp-app .btp-support-pagination{grid-template-columns:1fr 1fr;gap:10px}
  body .btp-app .btp-support-page-numbers{grid-column:1/-1;grid-row:1;flex-wrap:wrap}
  body .btp-app .btp-support-pagination>.btp-ghost{grid-row:2;width:100%!important;justify-content:center!important}
}

/* v0.39.2 · contador do histórico sempre horizontal */
body .btp-app .btp-support-history-total{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;white-space:nowrap!important}
body .btp-app .btp-support-history-total strong,body .btp-app .btp-support-history-total span{display:inline-block!important;margin:0!important}
@media(max-width:620px){body .btp-app .btp-support-history-total{justify-self:start!important;width:auto!important;max-width:100%!important;padding:11px 13px!important}}

/* v0.39.3 · dashboard: uma única chamada de prospecção por contexto */
.btp-dashboard-intro--lean.btp-dashboard-intro--no-action {
  grid-template-columns: minmax(0, 1fr);
}
.btp-dashboard-intro--lean.btp-dashboard-intro--no-action > div {
  max-width: 920px;
}


/* ==========================================================
   v0.40.0 · MOBILE UX PASS
   Bottom nav truly centered + support cards/text optimized
   for narrow phones without unnecessary wrapping.
========================================================== */
@media (max-width:720px){
  /* There are five visible destinations on mobile (4 primary + Mais).
     The previous six-column grid left a ghost column and shifted the menu. */
  body .btp-app .btp-sidebar nav.btp-nav{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    width:min(100%,460px)!important;
    margin:0 auto!important;
    gap:5px!important;
    justify-content:center!important;
    align-items:stretch!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle{
    width:100%!important;
    min-width:0!important;
    min-height:60px!important;
    padding:7px 2px 6px!important;
    margin:0!important;
    justify-self:stretch!important;
    transform:none!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child::after{
    font-size:12px!important;
    line-height:1.12!important;
    letter-spacing:0!important;
  }

  /* Support pages use the whole available width instead of behaving like
     desktop cards squeezed into a narrow column. */
  body .btp-app .btp-view[data-view="suporte"] .btp-panel{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body .btp-app .btp-support-grid-v3{
    width:100%!important;
    max-width:100%!important;
    gap:12px!important;
  }
  body .btp-app .btp-support-column,
  body .btp-app .btp-support-inbox,
  body .btp-app .btp-support-list-panel,
  body .btp-app .btp-support-form{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body .btp-app .btp-support-form,
  body .btp-app .btp-support-list-panel,
  body .btp-app .btp-support-ticket-detail{
    padding:18px!important;
    border-radius:24px!important;
  }

  /* Keep the count badge out of the text column so headings can use the
     available width. */
  body .btp-app .btp-support-title-row{
    position:relative!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    padding-right:0!important;
  }
  body .btp-app .btp-support-title-row>div{
    width:100%!important;
    min-width:0!important;
    padding-right:48px!important;
  }
  body .btp-app .btp-support-title-row>em{
    position:absolute!important;
    top:0!important;
    right:0!important;
    min-width:34px!important;
    height:34px!important;
    padding:0 9px!important;
  }
  body .btp-app .btp-support-title-row h3,
  body .btp-app .btp-support-form .btp-settings-title h3{
    width:100%!important;
    max-width:none!important;
    margin:5px 0 9px!important;
    font-size:clamp(25px,7.5vw,29px)!important;
    line-height:1.08!important;
    letter-spacing:-.025em!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    text-wrap:balance;
  }
  body .btp-app .btp-support-title-row p,
  body .btp-app .btp-support-form .btp-settings-title p{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    font-size:14px!important;
    line-height:1.55!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body .btp-app .btp-support-form .btp-settings-title{
    margin-bottom:22px!important;
  }
  body .btp-app .btp-support-form label{
    width:100%!important;
    min-width:0!important;
  }
  body .btp-app .btp-support-form input,
  body .btp-app .btp-support-form select,
  body .btp-app .btp-support-form textarea{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  body .btp-app .btp-support-form textarea{min-height:132px!important}
  body .btp-app .btp-support-form>.btp-primary{
    width:100%!important;
    min-height:48px!important;
    justify-content:center!important;
  }

  /* Ticket cards: preserve the useful content area and keep action/status
     aligned instead of stealing width from the title. */
  body .btp-app .btp-support-ticket-index{
    width:100%!important;
    padding-right:2px!important;
  }
  body .btp-app .btp-support-ticket-row{
    grid-template-columns:34px minmax(0,1fr) auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    gap:9px!important;
    padding:11px!important;
  }
  body .btp-app .btp-support-ticket-row-copy strong{
    font-size:12px!important;
    line-height:1.3!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body .btp-app .btp-support-ticket-row-copy small{
    font-size:12px!important;
    line-height:1.4!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body .btp-app .btp-support-ticket-row-status{
    grid-column:3!important;
    grid-row:1!important;
    align-self:start!important;
    min-height:24px!important;
    padding:0 7px!important;
    font-size:12px!important;
  }
  body .btp-app .btp-support-ticket-row-action{
    grid-column:2 / 4!important;
    width:max-content!important;
    max-width:100%!important;
    justify-self:start!important;
    margin-top:0!important;
    font-size:12px!important;
    line-height:1.25!important;
  }

  /* Archive CTA stays compact and readable on 320px-wide devices. */
  body .btp-app .btp-support-archive-cta{
    margin-top:12px!important;
    padding-top:12px!important;
    gap:10px!important;
  }
  body .btp-app .btp-support-archive-cta strong{font-size:12px!important}
  body .btp-app .btp-support-archive-cta small{font-size:12px!important;line-height:1.4!important}
  body .btp-app .btp-support-archive-cta .btp-ghost{
    width:100%!important;
    min-height:44px!important;
    padding:10px 12px!important;
    justify-content:center!important;
    font-size:12.5px!important;
    line-height:1.2!important;
    white-space:normal!important;
    text-align:center!important;
  }

  /* History page: avoid oversized headings/controls and useless wrapping. */
  body .btp-app .btp-support-history-page{gap:14px!important}
  body .btp-app .btp-support-history-head{gap:10px!important}
  body .btp-app .btp-support-history-head h3{
    font-size:24px!important;
    line-height:1.08!important;
    text-wrap:balance;
  }
  body .btp-app .btp-support-history-head p{
    width:100%!important;
    max-width:none!important;
    font-size:12.5px!important;
    line-height:1.5!important;
  }
  body .btp-app .btp-support-history-row{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
}

@media (max-width:380px){
  body .btp-app .btp-sidebar nav.btp-nav{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:3px!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle{
    min-height:58px!important;
    padding-left:1px!important;
    padding-right:1px!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child::after{
    font-size:12px!important;
  }
  body .btp-app .btp-support-form,
  body .btp-app .btp-support-list-panel,
  body .btp-app .btp-support-ticket-detail{padding:16px!important;border-radius:22px!important}
  body .btp-app .btp-support-title-row h3,
  body .btp-app .btp-support-form .btp-settings-title h3{
    font-size:25px!important;
    line-height:1.08!important;
  }
  body .btp-app .btp-support-title-row p,
  body .btp-app .btp-support-form .btp-settings-title p{font-size:13px!important;line-height:1.52!important}
  body .btp-app .btp-support-ticket-row{padding:10px!important;gap:8px!important}
  body .btp-app .btp-support-ticket-row-status{font-size:12px!important;padding:0 6px!important}
}

/* ==========================================================
   v0.40.2 · DASHBOARD LEADS REBALANCE
   Reorganiza a tabela-resumo do Dashboard para reduzir quebras
   de linha, aproveitar melhor a largura útil e manter leitura
   mais elegante em desktop e notebook.
========================================================== */
body .btp-app .btp-dashboard-intro--lean.btp-dashboard-intro--no-action{
  display:block!important;
}
body .btp-app .btp-dashboard-intro--lean.btp-dashboard-intro--no-action>div{
  width:100%!important;
  max-width:980px!important;
}

/* O resumo do Dashboard é leitura rápida; gestão completa continua na aba Leads. */
body .btp-app .btp-lead-mode-summary .btp-table-wrap{
  overflow-x:auto!important;
  overflow-y:visible!important;
}
body .btp-app .btp-lead-mode-summary .btp-qualified-table{
  width:100%!important;
  min-width:1040px!important;
  table-layout:fixed!important;
}
body .btp-app .btp-lead-mode-summary .btp-qualified-table th:nth-child(1){width:24%!important}
body .btp-app .btp-lead-mode-summary .btp-qualified-table th:nth-child(2){width:18%!important}
body .btp-app .btp-lead-mode-summary .btp-qualified-table th:nth-child(3){width:23%!important}
body .btp-app .btp-lead-mode-summary .btp-qualified-table th:nth-child(4){width:26%!important}
body .btp-app .btp-lead-mode-summary .btp-qualified-table th:nth-child(5){width:9%!important}
body .btp-app .btp-lead-mode-summary .btp-qualified-table th,
body .btp-app .btp-lead-mode-summary .btp-qualified-table td{
  padding:18px 18px!important;
  vertical-align:top!important;
}
body .btp-app .btp-lead-mode-summary td[data-label="Empresa"],
body .btp-app .btp-lead-mode-summary td[data-label="Contato"],
body .btp-app .btp-lead-mode-summary td[data-label="Site"],
body .btp-app .btp-lead-mode-summary td[data-label="Oportunidade"]{
  min-width:0!important;
}
body .btp-app .btp-lead-mode-summary .btp-company-cell,
body .btp-app .btp-lead-mode-summary .btp-site-cell,
body .btp-app .btp-lead-mode-summary .btp-opportunity-cell{
  gap:6px!important;
  width:100%!important;
  max-width:none!important;
}
body .btp-app .btp-lead-mode-summary .btp-company-cell strong,
body .btp-app .btp-lead-mode-summary td[data-label="Contato"]>strong,
body .btp-app .btp-lead-mode-summary .btp-site-cell>strong,
body .btp-app .btp-lead-mode-summary .btp-opportunity-cell>strong{
  display:block!important;
  margin:0!important;
  font-size:15px!important;
  line-height:1.34!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  text-wrap:pretty!important;
}
body .btp-app .btp-lead-mode-summary .btp-company-cell>small,
body .btp-app .btp-lead-mode-summary td[data-label="Contato"]>small,
body .btp-app .btp-lead-mode-summary .btp-site-cell>small,
body .btp-app .btp-lead-mode-summary .btp-opportunity-cell>small{
  font-size:12px!important;
  line-height:1.45!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
body .btp-app .btp-lead-mode-summary .btp-company-cell>small{max-width:28ch!important}
body .btp-app .btp-lead-mode-summary td[data-label="Contato"]>strong{
  white-space:nowrap!important;
  font-size:16px!important;
}
body .btp-app .btp-lead-mode-summary td[data-label="Contato"]>small{max-width:27ch!important}
body .btp-app .btp-lead-mode-summary .btp-site-cell>small,
body .btp-app .btp-lead-mode-summary .btp-opportunity-cell>small{max-width:34ch!important}
body .btp-app .btp-lead-mode-summary .btp-score-inline{
  gap:8px!important;
  margin-bottom:1px!important;
}
body .btp-app .btp-lead-mode-summary .btp-score-inline .btp-score{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
}
body .btp-app .btp-lead-mode-summary .btp-summary-rating{
  display:block!important;
  margin-top:4px!important;
  color:#8793a0!important;
  font-size:12px!important;
  line-height:1.3!important;
  white-space:nowrap!important;
}
body .btp-app .btp-lead-mode-summary td[data-label="Ações"]{
  width:1%!important;
  white-space:nowrap!important;
}
body .btp-app .btp-lead-mode-summary .btp-table-actions{
  justify-content:flex-start!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
}
body .btp-app .btp-lead-mode-summary .btp-icon-action{
  flex:0 0 40px!important;
  width:40px!important;
  height:40px!important;
}

@media (min-width:1280px){
  body .btp-app .btp-lead-mode-summary .btp-qualified-table{min-width:0!important}
}
@media (max-width:1200px){
  body .btp-app .btp-lead-mode-summary .btp-qualified-table{min-width:980px!important}
  body .btp-app .btp-lead-mode-summary .btp-qualified-table th,
  body .btp-app .btp-lead-mode-summary .btp-qualified-table td{padding:16px 15px!important}
}
@media (max-width:980px){
  body .btp-app .btp-lead-mode-summary .btp-qualified-table{min-width:860px!important}
}
@media (max-width:720px){
  body .btp-app .btp-lead-mode-summary .btp-table-wrap{overflow:visible!important}
  body .btp-app .btp-lead-mode-summary .btp-qualified-table{min-width:0!important;table-layout:auto!important}
  body .btp-app .btp-lead-mode-summary .btp-summary-rating{white-space:normal!important}
  body .btp-app .btp-lead-mode-summary .btp-table-actions{justify-content:flex-start!important;flex-wrap:wrap!important}
}

/* ==========================================================
   v0.41.0 · STRIPE BILLING / PLAN CENTER
========================================================== */
body .btp-app .btp-plan-status.is-warning{
  background:#fff4dd!important;
  color:#8b5f0b!important;
  border-color:#ead7aa!important;
}
body .btp-app .btp-payment-return{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  margin:0 0 16px!important;
  padding:14px 16px!important;
  border:1px solid #e4dfd4!important;
  border-radius:16px!important;
  background:#fff!important;
  color:#566372!important;
  box-shadow:0 8px 24px rgba(18,28,42,.035)!important;
}
body .btp-app .btp-payment-return .dashicons{flex:0 0 20px!important;width:20px!important;height:20px!important;font-size:20px!important;line-height:20px!important;margin-top:1px!important}
body .btp-app .btp-payment-return p{margin:0!important;font-size:13px!important;line-height:1.55!important}
body .btp-app .btp-payment-return.is-success{background:#f1faf5!important;border-color:#d5eadf!important;color:#2c654b!important}
body .btp-app .btp-payment-return.is-success .dashicons{color:#2b8b61!important}
body .btp-app .btp-payment-return.is-warning{background:#fff8e9!important;border-color:#ead6aa!important;color:#745416!important}
body .btp-app .btp-payment-return.is-neutral{background:#f8f7f4!important;color:#687584!important}
body .btp-app .btp-payment-feedback{display:none!important;margin:0 0 14px!important;padding:11px 14px!important;border-radius:13px!important;background:#fff8e8!important;border:1px solid #ead7aa!important;color:#795813!important;font-size:12px!important;font-weight:700!important;line-height:1.45!important}
body .btp-app .btp-payment-feedback.is-visible{display:block!important}
body .btp-app .btp-payment-feedback.is-error{background:#fff3f0!important;border-color:#efd2ca!important;color:#9a483c!important}
body .btp-app .btp-subscription-meta{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:18px 0 4px!important;
}
body .btp-app .btp-subscription-meta>div{
  min-width:0!important;
  padding:11px 12px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.065)!important;
  border:1px solid rgba(255,255,255,.09)!important;
}
body .btp-app .btp-subscription-meta small{display:block!important;margin-bottom:4px!important;color:#9eabba!important;font-size:12px!important;font-weight:850!important;letter-spacing:.08em!important}
body .btp-app .btp-subscription-meta strong{display:block!important;color:#fff!important;font-size:12px!important;line-height:1.35!important;white-space:normal!important}
body .btp-app .btp-plan-payment-actions{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;margin-top:14px!important}
body .btp-app [data-btp-stripe-checkout],
body .btp-app [data-btp-stripe-portal]{
  border-radius:999px!important;
  min-height:48px!important;
  padding:0 20px!important;
  background:linear-gradient(180deg,#f1cc77 0%,#dda943 100%)!important;
  border:1px solid #c79531!important;
  color:#111b28!important;
  box-shadow:0 10px 24px rgba(196,144,43,.16)!important;
  font-weight:850!important;
  line-height:1.2!important;
  text-align:center!important;
  text-decoration:none!important;
}
body .btp-app [data-btp-stripe-checkout]:hover,
body .btp-app [data-btp-stripe-portal]:hover,
body .btp-app [data-btp-stripe-checkout]:focus,
body .btp-app [data-btp-stripe-portal]:focus{
  background:linear-gradient(180deg,#f6d991 0%,#e4b34f 100%)!important;
  border-color:#b98524!important;
  color:#0e1722!important;
}
body .btp-app [data-btp-stripe-checkout].is-loading,
body .btp-app [data-btp-stripe-portal].is-loading{opacity:.72!important;cursor:wait!important}

@media(max-width:980px){
  body .btp-app .btp-subscription-meta{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-subscription-meta>div:last-child:nth-child(odd){grid-column:1/-1!important}
}
@media(max-width:640px){
  body .btp-app .btp-payment-return{padding:12px 13px!important;border-radius:14px!important}
  body .btp-app .btp-subscription-meta{grid-template-columns:1fr!important;gap:7px!important}
  body .btp-app .btp-subscription-meta>div:last-child:nth-child(odd){grid-column:auto!important}
  body .btp-app .btp-plan-payment-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  body .btp-app .btp-plan-payment-actions .btp-primary,
  body .btp-app .btp-plan-payment-actions [data-btp-stripe-checkout],
  body .btp-app .btp-plan-payment-actions [data-btp-stripe-portal]{width:100%!important;max-width:100%!important;justify-content:center!important;padding-left:14px!important;padding-right:14px!important;white-space:normal!important}
}

/* ==========================================================
   v0.42.0 · BILLING MANAGER IN-APP + PLAN MOBILE POLISH
   ByThomas Prospect identity: navy / gold / warm white only.
========================================================== */
body .btp-app [data-btp-billing-manage]{
  border-radius:999px!important;
  min-height:48px!important;
  padding:0 20px!important;
  background:linear-gradient(180deg,#f1cc77 0%,#dda943 100%)!important;
  border:1px solid #c79531!important;
  color:#111b28!important;
  box-shadow:0 10px 24px rgba(196,144,43,.16)!important;
  font-weight:850!important;
  line-height:1.2!important;
  text-align:center!important;
  text-decoration:none!important;
}
body .btp-app [data-btp-billing-manage]:hover,
body .btp-app [data-btp-billing-manage]:focus{
  background:linear-gradient(180deg,#f6d991 0%,#e4b34f 100%)!important;
  border-color:#b98524!important;
  color:#0e1722!important;
}
body .btp-app [data-btp-billing-manage].is-loading{opacity:.72!important;cursor:wait!important}
body .btp-app .btp-payment-feedback.is-success{
  background:#f2faf6!important;
  border-color:#d3e9dd!important;
  color:#2b684d!important;
}

body .btp-app .btp-modal.is-billing-modal{
  align-items:center!important;
  justify-content:center!important;
  padding:20px!important;
  background:rgba(7,12,18,.62)!important;
  backdrop-filter:blur(8px)!important;
}
body .btp-app .btp-modal.is-billing-modal .btp-modal-card{
  width:min(880px,96vw)!important;
  max-width:880px!important;
  max-height:92dvh!important;
  padding:0!important;
  overflow:auto!important;
  overflow-x:hidden!important;
  border-radius:30px!important;
  background:linear-gradient(180deg,#fffdfa 0%,#fff 100%)!important;
  border:1px solid rgba(206,157,57,.22)!important;
  box-shadow:0 34px 100px rgba(4,9,15,.32)!important;
  scrollbar-gutter:stable;
}
body .btp-app .btp-modal.is-billing-modal .btp-modal-close{
  position:sticky!important;
  float:right!important;
  top:16px!important;
  right:16px!important;
  z-index:30!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  margin:16px 16px -58px 0!important;
  border-radius:999px!important;
  background:#122133!important;
  border:1px solid rgba(229,183,79,.35)!important;
  color:#efca75!important;
  box-shadow:0 10px 24px rgba(7,12,18,.18)!important;
}
body .btp-app .btp-modal.is-billing-modal .btp-modal-content{min-width:0!important}
body .btp-app .btp-billing-manager{padding:30px!important;min-width:0!important;color:#172536!important}
body .btp-app .btp-billing-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding-right:50px!important;
  margin-bottom:20px!important;
}
body .btp-app .btp-billing-head>div{min-width:0!important;max-width:650px!important}
body .btp-app .btp-billing-head>div>span,
body .btp-app .btp-billing-box-copy>small,
body .btp-app .btp-billing-summary small,
body .btp-app .btp-billing-section-title small{
  display:block!important;
  color:#a56b00!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:900!important;
  letter-spacing:.15em!important;
}
body .btp-app .btp-billing-head h2{
  margin:7px 0 7px!important;
  color:#132131!important;
  font-size:clamp(27px,3vw,36px)!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
  text-wrap:balance!important;
}
body .btp-app .btp-billing-head p{
  margin:0!important;
  color:#788594!important;
  font-size:14px!important;
  line-height:1.55!important;
  text-wrap:pretty!important;
}
body .btp-app .btp-billing-head>em{
  flex:0 0 auto!important;
  margin-top:4px!important;
  padding:8px 11px!important;
  border-radius:999px!important;
  background:#fff5dc!important;
  border:1px solid #ead39c!important;
  color:#8b5d06!important;
  font-size:12px!important;
  font-style:normal!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  white-space:nowrap!important;
}
body .btp-app .btp-billing-notice{
  display:flex!important;
  align-items:flex-start!important;
  gap:10px!important;
  margin:0 0 16px!important;
  padding:12px 14px!important;
  border:1px solid #d4e8dc!important;
  border-radius:15px!important;
  background:#f2faf6!important;
  color:#2b684d!important;
}
body .btp-app .btp-billing-notice .dashicons{flex:0 0 20px!important;color:#2b8b61!important;margin-top:1px!important}
body .btp-app .btp-billing-notice p{margin:0!important;font-size:12.5px!important;line-height:1.5!important}
body .btp-app .btp-billing-summary{
  display:grid!important;
  grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)!important;
  gap:1px!important;
  overflow:hidden!important;
  margin-bottom:14px!important;
  border:1px solid #d9c18b!important;
  border-radius:22px!important;
  background:#d9c18b!important;
}
body .btp-app .btp-billing-summary>div{min-width:0!important;padding:20px 22px!important}
body .btp-app .btp-billing-summary-main{background:linear-gradient(145deg,#122133,#1b3047)!important;color:#fff!important}
body .btp-app .btp-billing-summary-main small{color:#efcb78!important}
body .btp-app .btp-billing-summary-main strong{display:block!important;margin:6px 0 5px!important;font-size:25px!important;line-height:1.12!important;color:#fff!important}
body .btp-app .btp-billing-summary-main span{display:block!important;color:#d5dde6!important;font-size:13px!important;font-weight:700!important}
body .btp-app .btp-billing-summary-status{background:#fffdfa!important}
body .btp-app .btp-billing-summary-status strong{display:block!important;margin:7px 0 8px!important;font-size:20px!important;color:#172536!important}
body .btp-app .btp-billing-summary-status>span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:27px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  background:#eef8f2!important;
  border:1px solid #d2e9dc!important;
  color:#2d7657!important;
  font-size:12px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
body .btp-app .btp-billing-summary-status>span.is-warning{background:#fff5de!important;border-color:#ead39d!important;color:#875d0b!important}
body .btp-app .btp-billing-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
body .btp-app .btp-billing-box{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  grid-template-areas:"icon copy" "action action"!important;
  gap:10px 12px!important;
  min-width:0!important;
  padding:17px!important;
  border:1px solid #ece6da!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 10px 26px rgba(18,28,42,.035)!important;
}
body .btp-app .btp-billing-box-icon{
  grid-area:icon!important;
  width:44px!important;
  height:44px!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  background:#fff5dc!important;
  border:1px solid #efddb2!important;
  color:#a97512!important;
}
body .btp-app .btp-billing-box-icon .dashicons{width:20px!important;height:20px!important;font-size:20px!important;line-height:20px!important}
body .btp-app .btp-billing-box-copy{grid-area:copy!important;min-width:0!important;padding-top:1px!important}
body .btp-app .btp-billing-box-copy h3{margin:5px 0 3px!important;font-size:17px!important;line-height:1.25!important;color:#172536!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;text-wrap:pretty!important}
body .btp-app .btp-billing-box-copy p{margin:0!important;color:#84909d!important;font-size:12px!important;line-height:1.45!important;text-wrap:pretty!important}
body .btp-app .btp-billing-inline-action{grid-area:action!important;width:100%!important;min-height:42px!important;margin-top:2px!important;justify-content:center!important;border-radius:999px!important;white-space:normal!important;line-height:1.25!important}
body .btp-app .btp-billing-invoices{
  padding:18px!important;
  border:1px solid #ece6da!important;
  border-radius:20px!important;
  background:#fff!important;
}
body .btp-app .btp-billing-section-title{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:14px!important;margin-bottom:12px!important}
body .btp-app .btp-billing-section-title h3{margin:4px 0 0!important;color:#172536!important;font-size:19px!important;line-height:1.2!important}
body .btp-app .btp-billing-section-title>span{color:#8d98a4!important;font-size:12px!important;font-weight:750!important;white-space:nowrap!important}
body .btp-app .btp-billing-invoice-list{display:grid!important;gap:7px!important}
body .btp-app .btp-billing-invoice-row{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) auto auto!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  padding:10px 11px!important;
  border-radius:15px!important;
  border:1px solid #efebe3!important;
  background:#fffdfa!important;
}
body .btp-app .btp-billing-invoice-icon{width:36px!important;height:36px!important;display:grid!important;place-items:center!important;border-radius:12px!important;background:#f7f2e8!important;color:#9b6b12!important}
body .btp-app .btp-billing-invoice-icon .dashicons{width:18px!important;height:18px!important;font-size:18px!important;line-height:18px!important}
body .btp-app .btp-billing-invoice-copy{min-width:0!important}
body .btp-app .btp-billing-invoice-copy strong{display:block!important;color:#172536!important;font-size:12.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body .btp-app .btp-billing-invoice-copy small{display:block!important;margin-top:2px!important;color:#8a95a2!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-billing-invoice-status{padding:6px 9px!important;border-radius:999px!important;background:#f5f3ee!important;border:1px solid #ebe5d9!important;color:#6d7782!important;font-size:12px!important;font-weight:850!important;white-space:nowrap!important}
body .btp-app .btp-billing-invoice-status.is-paid{background:#edf8f1!important;border-color:#d5e9dd!important;color:#2f7859!important}
body .btp-app .btp-billing-invoice-status.is-open{background:#fff5de!important;border-color:#ead39d!important;color:#8a600c!important}
body .btp-app .btp-billing-invoice-link{display:inline-flex!important;align-items:center!important;gap:5px!important;color:#825b0f!important;font-size:12px!important;font-weight:850!important;text-decoration:none!important;white-space:nowrap!important}
body .btp-app .btp-billing-invoice-link:hover{text-decoration:underline!important}
body .btp-app .btp-billing-empty{display:flex!important;align-items:center!important;gap:11px!important;padding:15px!important;border-radius:15px!important;background:#faf8f3!important;color:#7a8794!important}
body .btp-app .btp-billing-empty>.dashicons{color:#a87719!important}
body .btp-app .btp-billing-empty strong{display:block!important;color:#3e4b59!important;font-size:12px!important}
body .btp-app .btp-billing-empty small{display:block!important;margin-top:2px!important;font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-billing-cancel-confirm{
  margin-top:12px!important;
  padding:16px!important;
  border:1px solid #e5cf9a!important;
  border-radius:18px!important;
  background:#fff8e9!important;
}
body .btp-app .btp-billing-cancel-confirm[hidden]{display:none!important}
body .btp-app .btp-billing-cancel-confirm>div:first-child{display:flex!important;align-items:flex-start!important;gap:11px!important}
body .btp-app .btp-billing-cancel-confirm>div:first-child>.dashicons{flex:0 0 20px!important;color:#9a6a0d!important;margin-top:1px!important}
body .btp-app .btp-billing-cancel-confirm strong{display:block!important;color:#392d18!important;font-size:13px!important}
body .btp-app .btp-billing-cancel-confirm p{margin:4px 0 0!important;color:#796b51!important;font-size:12px!important;line-height:1.5!important;text-wrap:pretty!important}
body .btp-app .btp-billing-confirm-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin-top:13px!important}
body .btp-app .btp-billing-confirm-actions button{min-height:42px!important;border-radius:999px!important;padding:0 16px!important;font-weight:850!important}
body .btp-app .btp-billing-cancel-button{
  border:1px solid #b9821b!important;
  background:#172536!important;
  color:#f1cd78!important;
  box-shadow:none!important;
}
body .btp-app .btp-billing-cancel-button:hover{background:#20354e!important;color:#f6da99!important}
body .btp-app .btp-billing-footer{display:flex!important;align-items:flex-start!important;gap:9px!important;margin-top:12px!important;padding:0 4px!important;color:#8d98a4!important}
body .btp-app .btp-billing-footer>.dashicons{flex:0 0 17px!important;width:17px!important;height:17px!important;font-size:17px!important;line-height:17px!important;color:#a67719!important}
body .btp-app .btp-billing-footer p{margin:0!important;font-size:12px!important;line-height:1.45!important;text-wrap:pretty!important}
body .btp-app .btp-billing-action-feedback{display:none!important;margin-top:11px!important;padding:11px 13px!important;border-radius:13px!important;background:#fff8e8!important;border:1px solid #ead7aa!important;color:#795813!important;font-size:12px!important;font-weight:750!important;line-height:1.45!important}
body .btp-app .btp-billing-action-feedback.is-visible{display:block!important}
body .btp-app .btp-billing-action-feedback.is-error{background:#f8f3e9!important;border-color:#dfc78f!important;color:#6f5320!important}
body .btp-app .btp-billing-loading{
  min-height:360px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:60px 30px!important;
}
body .btp-app .btp-billing-loading strong{margin-top:15px!important;color:#172536!important;font-size:20px!important}
body .btp-app .btp-billing-loading p{max-width:460px!important;margin:6px auto 0!important;color:#7f8b98!important;font-size:12.5px!important;line-height:1.55!important}
body .btp-app .btp-billing-loading .btp-primary{margin-top:16px!important}
body .btp-app .btp-billing-loading.is-error>.dashicons{width:28px!important;height:28px!important;font-size:28px!important;line-height:28px!important;color:#a67719!important}
body .btp-app .btp-billing-spinner{
  width:38px!important;height:38px!important;border-radius:999px!important;
  border:3px solid #efe5cd!important;border-top-color:#b7811a!important;
  animation:btpBillingSpin .7s linear infinite!important;
}
@keyframes btpBillingSpin{to{transform:rotate(360deg)}}

/* Keep the featured badge fully inside the Pro card on narrow screens.
   Previous negative positioning could be clipped by the card overflow. */
@media(max-width:640px){
  body .btp-app .btp-plan-comparison-v2 .btp-plan-option.is-pro{
    padding-top:58px!important;
    overflow:hidden!important;
  }
  body .btp-app .btp-plan-comparison-v2 .btp-plan-featured{
    top:15px!important;
    right:16px!important;
    max-width:calc(100% - 32px)!important;
    padding:7px 11px!important;
    font-size:12px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  body .btp-app .btp-plan-comparison-v2 .btp-plan-option h3{
    font-size:25px!important;
    line-height:1.12!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body .btp-app .btp-plan-comparison-v2 .btp-plan-option p{
    font-size:14px!important;
    line-height:1.55!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    text-wrap:pretty!important;
  }
  body .btp-app .btp-plan-comparison-v2 .btp-plan-option li{
    font-size:13.5px!important;
    line-height:1.45!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body .btp-app .btp-plan-comparison-v2 [data-btp-billing-manage],
  body .btp-app .btp-plan-payment-actions [data-btp-billing-manage]{
    width:100%!important;
    max-width:100%!important;
    justify-content:center!important;
    padding-left:14px!important;
    width:calc(100% - 7px)!important;
    max-width:calc(100% - 7px)!important;
    margin-right:7px!important;
    padding-right:9px!important;
    white-space:normal!important;
  }
}

@media(max-width:720px){
  body .btp-app .btp-modal.is-billing-modal{padding:8px!important;align-items:flex-end!important}
  body .btp-app .btp-modal.is-billing-modal .btp-modal-card{
    width:100%!important;
    max-width:none!important;
    max-height:94dvh!important;
    border-radius:24px 24px 0 0!important;
    scrollbar-gutter:auto!important;
  }
  body .btp-app .btp-modal.is-billing-modal .btp-modal-close{
    top:10px!important;
    margin:10px 10px -52px 0!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }
  body .btp-app .btp-billing-manager{padding:22px 16px calc(22px + env(safe-area-inset-bottom))!important}
  body .btp-app .btp-billing-head{display:block!important;padding-right:46px!important;margin-bottom:16px!important}
  body .btp-app .btp-billing-head h2{font-size:27px!important;line-height:1.08!important}
  body .btp-app .btp-billing-head p{font-size:13px!important;line-height:1.5!important}
  body .btp-app .btp-billing-head>em{display:inline-flex!important;margin-top:10px!important}
  body .btp-app .btp-billing-summary{grid-template-columns:1fr!important;border-radius:19px!important}
  body .btp-app .btp-billing-summary>div{padding:17px!important}
  body .btp-app .btp-billing-summary-main strong{font-size:23px!important}
  body .btp-app .btp-billing-grid{grid-template-columns:1fr!important;gap:9px!important}
  body .btp-app .btp-billing-box{padding:14px!important;border-radius:18px!important}
  body .btp-app .btp-billing-box-copy h3{font-size:16px!important}
  body .btp-app .btp-billing-invoices{padding:14px!important;border-radius:18px!important}
  body .btp-app .btp-billing-invoice-row{
    grid-template-columns:34px minmax(0,1fr) auto!important;
    grid-template-areas:"icon copy status" "link link link"!important;
    gap:8px 9px!important;
    padding:10px!important;
  }
  body .btp-app .btp-billing-invoice-icon{grid-area:icon!important;width:34px!important;height:34px!important}
  body .btp-app .btp-billing-invoice-copy{grid-area:copy!important}
  body .btp-app .btp-billing-invoice-status{grid-area:status!important}
  body .btp-app .btp-billing-invoice-link{grid-area:link!important;justify-self:flex-end!important;padding:3px 2px 0!important}
  body .btp-app .btp-billing-confirm-actions{display:grid!important;grid-template-columns:1fr!important}
  body .btp-app .btp-billing-confirm-actions button{width:100%!important}
}

@media(max-width:380px){
  body .btp-app .btp-billing-manager{padding-left:13px!important;padding-right:13px!important}
  body .btp-app .btp-billing-head h2{font-size:25px!important}
  body .btp-app .btp-billing-summary>div{padding:15px!important}
  body .btp-app .btp-billing-invoice-row{grid-template-columns:32px minmax(0,1fr)!important;grid-template-areas:"icon copy" "status link"!important}
  body .btp-app .btp-billing-invoice-status{justify-self:start!important}
  body .btp-app .btp-billing-invoice-link{justify-self:end!important}
  body .btp-app .btp-plan-comparison-v2 .btp-plan-option{padding-left:16px!important;padding-right:16px!important}
  body .btp-app .btp-plan-comparison-v2 .btp-plan-option.is-pro{padding-top:56px!important}
}

/* ==========================================================
   v0.43.0 · CHECKOUT INCORPORADO + COBRANÇA COM IDENTIDADE
========================================================== */
body .btp-app .btp-modal.is-checkout-modal{
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  background:rgba(6,12,19,.68)!important;
  backdrop-filter:blur(9px)!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-modal-card{
  width:min(980px,97vw)!important;
  max-width:980px!important;
  max-height:94dvh!important;
  padding:0!important;
  overflow:auto!important;
  overflow-x:hidden!important;
  border-radius:30px!important;
  background:#fffdfa!important;
  border:1px solid rgba(205,157,59,.28)!important;
  box-shadow:0 34px 100px rgba(4,9,15,.34)!important;
  scrollbar-width:thin!important;
  scrollbar-color:#c8942f #eee9df!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-modal-card::-webkit-scrollbar{width:8px!important}
body .btp-app .btp-modal.is-checkout-modal .btp-modal-card::-webkit-scrollbar-thumb{background:#c8942f!important;border-radius:999px!important}
body .btp-app .btp-modal.is-checkout-modal .btp-modal-card::-webkit-scrollbar-track{background:#eee9df!important}
body .btp-app .btp-modal.is-checkout-modal .btp-modal-close{
  position:sticky!important;
  float:right!important;
  top:14px!important;
  right:14px!important;
  z-index:40!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  margin:14px 14px -56px 0!important;
  border-radius:999px!important;
  background:#122133!important;
  border:1px solid rgba(229,183,79,.38)!important;
  color:#efca75!important;
  box-shadow:0 10px 26px rgba(7,12,18,.18)!important;
}
body .btp-app .btp-embedded-checkout-shell{padding:28px!important;min-width:0!important;color:#172536!important}
body .btp-app .btp-embedded-checkout-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:2px 54px 20px 0!important;
  border-bottom:1px solid #eee7d9!important;
}
body .btp-app .btp-embedded-checkout-head>div{min-width:0!important;max-width:650px!important}
body .btp-app .btp-embedded-checkout-head span{display:block!important;margin-bottom:6px!important;color:#9a6810!important;font-size:12px!important;font-weight:900!important;letter-spacing:.15em!important}
body .btp-app .btp-embedded-checkout-head h2{margin:0!important;color:#111e2d!important;font-size:30px!important;line-height:1.08!important;letter-spacing:-.025em!important;overflow-wrap:normal!important;word-break:normal!important}
body .btp-app .btp-embedded-checkout-head p{margin:8px 0 0!important;color:#7f8a98!important;font-size:13px!important;line-height:1.55!important;max-width:64ch!important}
body .btp-app .btp-embedded-checkout-head em{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-height:31px!important;padding:0 12px!important;border-radius:999px!important;background:#fff7e5!important;border:1px solid #ecd7a5!important;color:#85600f!important;font-style:normal!important;font-size:12px!important;font-weight:900!important;letter-spacing:.06em!important;white-space:nowrap!important}
body .btp-app .btp-checkout-back{display:inline-flex!important;align-items:center!important;gap:7px!important;margin:16px 0 0!important;padding:0!important;border:0!important;background:transparent!important;color:#715216!important;font-weight:800!important;font-size:12px!important;cursor:pointer!important}
body .btp-app .btp-checkout-back:hover{color:#a06e0b!important}
body .btp-app .btp-embedded-checkout-frame{margin-top:18px!important;padding:18px!important;border:1px solid #e8e1d5!important;border-radius:22px!important;background:#fff!important;box-shadow:0 10px 28px rgba(17,28,43,.045)!important;min-width:0!important}
body .btp-app .btp-checkout-secure{display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 14px!important;padding:11px 13px!important;border-radius:13px!important;background:#f8f4ea!important;border:1px solid #eee1bf!important}
body .btp-app .btp-checkout-secure>.dashicons{flex:0 0 18px!important;width:18px!important;height:18px!important;font-size:18px!important;line-height:18px!important;color:#a57518!important}
body .btp-app .btp-checkout-secure div{min-width:0!important}
body .btp-app .btp-checkout-secure strong,body .btp-app .btp-checkout-secure small{display:block!important}
body .btp-app .btp-checkout-secure strong{color:#273548!important;font-size:12px!important}
body .btp-app .btp-checkout-secure small{margin-top:2px!important;color:#8b949f!important;font-size:12px!important;line-height:1.35!important}
body .btp-app #btp-stripe-embedded-checkout{min-height:430px!important;width:100%!important;min-width:0!important}
body .btp-app #btp-stripe-embedded-checkout iframe{max-width:100%!important}
body .btp-app .btp-checkout-loading,body .btp-app .btp-checkout-error{min-height:300px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:8px!important;padding:28px!important;color:#687585!important}
body .btp-app .btp-checkout-loading strong,body .btp-app .btp-checkout-error strong{color:#172536!important;font-size:15px!important}
body .btp-app .btp-checkout-loading small,body .btp-app .btp-checkout-error p{margin:0!important;color:#8a95a2!important;font-size:12px!important;line-height:1.5!important}
body .btp-app .btp-checkout-error>.dashicons{width:30px!important;height:30px!important;font-size:30px!important;line-height:30px!important;color:#b07c18!important}
body .btp-app .btp-checkout-error .btp-ghost{margin-top:8px!important;border-radius:999px!important}
body .btp-app .btp-embedded-checkout-note{display:flex!important;align-items:flex-start!important;gap:9px!important;margin-top:14px!important;padding:0 4px!important;color:#8a95a2!important}
body .btp-app .btp-embedded-checkout-note>.dashicons{flex:0 0 18px!important;width:18px!important;height:18px!important;font-size:18px!important;line-height:18px!important;color:#bd861d!important}
body .btp-app .btp-embedded-checkout-note p{margin:0!important;font-size:12px!important;line-height:1.5!important}

@media(max-width:720px){
  body .btp-app .btp-modal.is-checkout-modal{align-items:flex-end!important;padding:0!important}
  body .btp-app .btp-modal.is-checkout-modal .btp-modal-card{width:100%!important;max-width:none!important;max-height:96dvh!important;border-radius:24px 24px 0 0!important;border-bottom:0!important}
  body .btp-app .btp-modal.is-checkout-modal .btp-modal-close{top:11px!important;right:11px!important;width:40px!important;height:40px!important;min-width:40px!important;margin:11px 11px -51px 0!important}
  body .btp-app .btp-embedded-checkout-shell{padding:20px 14px calc(24px + env(safe-area-inset-bottom))!important}
  body .btp-app .btp-embedded-checkout-head{display:block!important;padding:3px 48px 16px 2px!important}
  body .btp-app .btp-embedded-checkout-head h2{font-size:24px!important;line-height:1.12!important;max-width:14ch!important}
  body .btp-app .btp-embedded-checkout-head p{font-size:12.5px!important;line-height:1.5!important;max-width:none!important}
  body .btp-app .btp-embedded-checkout-head em{margin-top:12px!important;min-height:28px!important;font-size:12px!important}
  body .btp-app .btp-embedded-checkout-frame{margin-top:14px!important;padding:10px!important;border-radius:18px!important}
  body .btp-app .btp-checkout-secure{padding:10px!important;margin-bottom:10px!important}
  body .btp-app #btp-stripe-embedded-checkout{min-height:490px!important}
}
@media(max-width:380px){
  body .btp-app .btp-embedded-checkout-shell{padding-left:10px!important;padding-right:10px!important}
  body .btp-app .btp-embedded-checkout-head{padding-left:4px!important;padding-right:44px!important}
  body .btp-app .btp-embedded-checkout-head h2{font-size:22px!important;max-width:13ch!important}
  body .btp-app .btp-embedded-checkout-frame{padding:7px!important;border-radius:16px!important}
  body .btp-app .btp-checkout-secure small{font-size:12px!important}
}


/* ==========================================================
   v0.43.1 · COBRANÇA/PLANOS — COMPATIBILIDADE + MICRO-UX
========================================================== */
@media(min-width:1280px){
  body .btp-app .btp-plan-choice-head p{
    max-width:none!important;
    width:100%!important;
    white-space:nowrap!important;
    overflow:visible!important;
  }
}
body .btp-app .btp-billing-resume-confirm{
  background:#fffaf0!important;
  border-color:#e6cf98!important;
}
body .btp-app .btp-billing-resume-confirm>div:first-child>.dashicons{color:#a57416!important}
body .btp-app .btp-billing-resume-confirm .btp-primary{
  background:linear-gradient(180deg,#f0cc7a 0%,#d8a343 100%)!important;
  border-color:#c99532!important;
  color:#17120b!important;
}
@media(max-width:1279px){
  body .btp-app .btp-plan-choice-head p{max-width:none!important;white-space:normal!important}
}

/* ==========================================================
   v0.43.3 · CHECKOUT — CLIP REAL + ROLAGEM SEM VAZAMENTO
========================================================== */
body .btp-app .btp-modal.is-checkout-modal{
  overflow:hidden!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-modal-card{
  position:relative!important;
  overflow:hidden!important;
  scrollbar-width:none!important;
  contain:paint!important;
  isolation:isolate!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-modal-card::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-modal-close{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  float:none!important;
  margin:0!important;
  z-index:80!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-modal-content{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  max-height:94dvh!important;
  overflow:hidden!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell{
  box-sizing:border-box!important;
  width:calc(100% - 10px)!important;
  min-width:0!important;
  max-width:calc(100% - 10px)!important;
  max-height:94dvh!important;
  margin-right:10px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:thin!important;
  scrollbar-color:#bf891f transparent!important;
  scrollbar-gutter:auto!important;
  padding-right:18px!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell::-webkit-scrollbar{
  width:6px!important;
  height:6px!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell::-webkit-scrollbar-track{
  background:transparent!important;
  margin:18px 0!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell::-webkit-scrollbar-thumb{
  background:#bf891f!important;
  border-radius:999px!important;
  border:1px solid transparent!important;
  background-clip:padding-box!important;
}
body .btp-app .btp-modal.is-checkout-modal #btp-stripe-embedded-checkout{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
body .btp-app .btp-modal.is-checkout-modal #btp-stripe-embedded-checkout iframe{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  border:0!important;
}
@media(max-width:720px){
  body .btp-app .btp-modal.is-checkout-modal .btp-modal-content,
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell{
    max-height:96dvh!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-modal-close{
    top:11px!important;
    right:11px!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell{
    width:calc(100% - 7px)!important;
    max-width:calc(100% - 7px)!important;
    margin-right:7px!important;
    padding-right:9px!important;
  }
}
@media(max-width:380px){
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell{
    width:calc(100% - 6px)!important;
    max-width:calc(100% - 6px)!important;
    margin-right:6px!important;
    padding-right:6px!important;
  }
}

/* ==========================================================
   v0.43.5 · PAYMENT ELEMENT — CARTÃO SEM IFRAME DE CHECKOUT
========================================================== */
body .btp-app .btp-modal.is-payment-element-modal{
  align-items:center!important;
  justify-content:center!important;
  padding:18px!important;
  overflow:hidden!important;
  background:rgba(6,12,19,.70)!important;
  backdrop-filter:blur(9px)!important;
}
body .btp-app .btp-modal.is-payment-element-modal .btp-modal-card{
  position:relative!important;
  width:min(760px,96vw)!important;
  max-width:760px!important;
  max-height:92dvh!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:30px!important;
  background:#fffdfa!important;
  border:1px solid rgba(205,157,59,.28)!important;
  box-shadow:0 34px 100px rgba(4,9,15,.36)!important;
  contain:paint!important;
}
body .btp-app .btp-modal.is-payment-element-modal .btp-modal-close{
  position:absolute!important;
  top:18px!important;
  right:18px!important;
  z-index:90!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  margin:0!important;
  float:none!important;
  border-radius:999px!important;
  background:#122133!important;
  border:1px solid rgba(229,183,79,.38)!important;
  color:#efca75!important;
  box-shadow:0 10px 26px rgba(7,12,18,.18)!important;
}
body .btp-app .btp-modal.is-payment-element-modal .btp-modal-content{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  max-height:92dvh!important;
  overflow:hidden!important;
}
body .btp-app .btp-payment-element-shell{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  max-height:92dvh!important;
  min-width:0!important;
  padding:26px 28px 24px!important;
  color:#172536!important;
}
body .btp-app .btp-payment-element-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:16px!important;
  flex:0 0 auto!important;
  padding:2px 62px 18px 0!important;
  border-bottom:1px solid #eee7d9!important;
}
body .btp-app .btp-payment-element-head>div{min-width:0!important;max-width:540px!important}
body .btp-app .btp-payment-element-head span{display:block!important;margin-bottom:6px!important;color:#9a6810!important;font-size:12px!important;font-weight:900!important;letter-spacing:.15em!important}
body .btp-app .btp-payment-element-head h2{margin:0!important;color:#111e2d!important;font-size:30px!important;line-height:1.08!important;letter-spacing:-.025em!important;word-break:normal!important;overflow-wrap:normal!important}
body .btp-app .btp-payment-element-head p{margin:8px 0 0!important;color:#7f8a98!important;font-size:13px!important;line-height:1.5!important;max-width:58ch!important;word-break:normal!important;overflow-wrap:normal!important}
body .btp-app .btp-payment-element-head em{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-height:31px!important;padding:0 12px!important;border-radius:999px!important;background:#fff7e5!important;border:1px solid #ecd7a5!important;color:#85600f!important;font-style:normal!important;font-size:12px!important;font-weight:900!important;letter-spacing:.06em!important;white-space:nowrap!important}
body .btp-app .btp-modal.is-payment-element-modal .btp-checkout-back{
  flex:0 0 auto!important;
  margin:14px 0 10px!important;
}
body .btp-app .btp-payment-element-scroll{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:none!important;
  padding:0 2px 2px!important;
}
body .btp-app .btp-payment-element-scroll::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
body .btp-app .btp-payment-element-card{
  padding:18px!important;
  border:1px solid #e8e1d5!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(17,28,43,.045)!important;
  min-width:0!important;
}
body .btp-app #btp-stripe-payment-element{
  width:100%!important;
  min-width:0!important;
  min-height:120px!important;
}
body .btp-app .btp-payment-element-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin-top:16px!important;
  padding-top:15px!important;
  border-top:1px solid #eee7dd!important;
}
body .btp-app .btp-payment-element-actions button{
  min-height:46px!important;
  border-radius:999px!important;
  padding:0 20px!important;
  white-space:nowrap!important;
}
body .btp-app .btp-payment-element-actions .btp-primary{
  min-width:190px!important;
  background:linear-gradient(180deg,#f0cc7a 0%,#dca846 100%)!important;
  border-color:#c99532!important;
  color:#17120b!important;
}
body .btp-app .btp-payment-element-feedback{
  display:none!important;
  margin-top:12px!important;
  padding:10px 12px!important;
  border-radius:12px!important;
  background:#fff8e8!important;
  border:1px solid #ead7aa!important;
  color:#765515!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.45!important;
}
body .btp-app .btp-payment-element-feedback.is-visible{display:block!important}
body .btp-app .btp-payment-element-feedback.is-success{background:#edf8f2!important;border-color:#cde8d8!important;color:#2f7454!important}
body .btp-app .btp-payment-element-feedback.is-error{background:#fff6ee!important;border-color:#e8cfb5!important;color:#7d4d2f!important}
body .btp-app .btp-modal.is-payment-element-modal .btp-embedded-checkout-note{
  margin:13px 2px 0!important;
  padding-bottom:1px!important;
}
body .btp-app .btp-modal.is-payment-element-modal .btp-checkout-loading,
body .btp-app .btp-modal.is-payment-element-modal .btp-checkout-error{
  min-height:210px!important;
  padding:24px!important;
}

@media(max-width:720px){
  body .btp-app .btp-modal.is-payment-element-modal{
    align-items:flex-end!important;
    padding:0!important;
  }
  body .btp-app .btp-modal.is-payment-element-modal .btp-modal-card{
    width:100%!important;
    max-width:none!important;
    max-height:96dvh!important;
    border-radius:24px 24px 0 0!important;
    border-bottom:0!important;
  }
  body .btp-app .btp-modal.is-payment-element-modal .btp-modal-content,
  body .btp-app .btp-payment-element-shell{max-height:96dvh!important}
  body .btp-app .btp-modal.is-payment-element-modal .btp-modal-close{
    top:12px!important;
    right:12px!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }
  body .btp-app .btp-payment-element-shell{
    padding:18px 14px calc(18px + env(safe-area-inset-bottom))!important;
  }
  body .btp-app .btp-payment-element-head{
    display:block!important;
    padding:3px 50px 14px 2px!important;
  }
  body .btp-app .btp-payment-element-head h2{
    font-size:25px!important;
    line-height:1.1!important;
    max-width:none!important;
  }
  body .btp-app .btp-payment-element-head p{
    font-size:12.5px!important;
    line-height:1.5!important;
    max-width:none!important;
  }
  body .btp-app .btp-payment-element-head em{
    margin-top:10px!important;
    min-height:28px!important;
    font-size:12px!important;
  }
  body .btp-app .btp-payment-element-card{
    padding:13px!important;
    border-radius:18px!important;
  }
  body .btp-app .btp-payment-element-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  body .btp-app .btp-payment-element-actions button{
    width:100%!important;
    min-width:0!important;
  }
}

@media(max-width:380px){
  body .btp-app .btp-payment-element-shell{padding-left:10px!important;padding-right:10px!important}
  body .btp-app .btp-payment-element-head{padding-left:2px!important;padding-right:46px!important}
  body .btp-app .btp-payment-element-head h2{font-size:23px!important}
  body .btp-app .btp-payment-element-card{padding:10px!important;border-radius:16px!important}
}


/* ==========================================================
   v0.43.8 · CHECKOUT DAHLIA — ESTABILIDADE + RESPONSIVO
========================================================== */
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell{
  width:100%!important;
  max-width:100%!important;
  margin-right:0!important;
  padding:clamp(22px,3vw,32px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-head{
  padding-right:68px!important;
  gap:20px!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-head>div{
  max-width:680px!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-head h2{
  max-width:none!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-wrap:balance!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-head p{
  max-width:68ch!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-frame{
  padding:clamp(10px,1.8vw,18px)!important;
}
body .btp-app .btp-checkout-rescue{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin-top:14px!important;
  padding:13px 15px!important;
  border:1px solid #eadfc8!important;
  border-radius:16px!important;
  background:#fffaf0!important;
}
body .btp-app .btp-checkout-rescue>div{min-width:0!important}
body .btp-app .btp-checkout-rescue strong,
body .btp-app .btp-checkout-rescue span{display:block!important}
body .btp-app .btp-checkout-rescue strong{
  color:#29384b!important;
  font-size:12px!important;
  line-height:1.35!important;
}
body .btp-app .btp-checkout-rescue span{
  margin-top:3px!important;
  color:#8993a0!important;
  font-size:12px!important;
  line-height:1.45!important;
}
body .btp-app .btp-checkout-rescue .btp-ghost{
  flex:0 0 auto!important;
  min-height:38px!important;
  padding:0 16px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
}
@media(max-width:720px){
  body .btp-app .btp-modal.is-checkout-modal .btp-modal-card{
    max-height:96dvh!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell{
    width:100%!important;
    max-width:100%!important;
    margin-right:0!important;
    padding:18px 13px calc(22px + env(safe-area-inset-bottom))!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-head{
    display:block!important;
    padding:2px 48px 15px 1px!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-head h2{
    max-width:none!important;
    font-size:clamp(23px,7vw,28px)!important;
    line-height:1.12!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-head p{
    max-width:none!important;
    font-size:12.5px!important;
    line-height:1.55!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-head em{
    margin-top:11px!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-frame{
    margin-top:13px!important;
    padding:9px!important;
    border-radius:18px!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-checkout-secure{
    align-items:flex-start!important;
  }
  body .btp-app .btp-checkout-rescue{
    align-items:stretch!important;
    flex-direction:column!important;
    gap:10px!important;
    padding:12px!important;
  }
  body .btp-app .btp-checkout-rescue .btp-ghost{
    width:100%!important;
    white-space:normal!important;
  }
  body .btp-app .btp-modal.is-checkout-modal #btp-stripe-embedded-checkout{
    min-height:520px!important;
  }
}
@media(max-width:380px){
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-shell{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-head{
    padding-right:44px!important;
  }
  body .btp-app .btp-modal.is-checkout-modal .btp-embedded-checkout-frame{
    padding:7px!important;
  }
}


/* ==========================================================
   v0.43.9 · CHECKOUT CUSTOM ELEMENTS — ASSINATURA PRO
========================================================== */
body .btp-app .btp-modal.is-subscription-element-modal{
  align-items:center!important;justify-content:center!important;padding:18px!important;overflow:hidden!important;
  background:rgba(6,12,19,.72)!important;backdrop-filter:blur(10px)!important;
}
body .btp-app .btp-modal.is-subscription-element-modal .btp-modal-card{
  position:relative!important;width:min(1080px,97vw)!important;max-width:1080px!important;max-height:94dvh!important;
  padding:0!important;overflow:hidden!important;border-radius:30px!important;background:#fffdfa!important;
  border:1px solid rgba(205,157,59,.30)!important;box-shadow:0 34px 100px rgba(4,9,15,.38)!important;contain:paint!important;
}
body .btp-app .btp-modal.is-subscription-element-modal .btp-modal-close{
  position:absolute!important;top:16px!important;right:16px!important;z-index:90!important;width:44px!important;height:44px!important;min-width:44px!important;
  margin:0!important;float:none!important;border-radius:999px!important;background:#122133!important;border:1px solid rgba(229,183,79,.38)!important;
  color:#efca75!important;box-shadow:0 10px 26px rgba(7,12,18,.18)!important;
}
body .btp-app .btp-modal.is-subscription-element-modal .btp-modal-content{width:100%!important;min-width:0!important;max-width:100%!important;max-height:94dvh!important;overflow:hidden!important}
body .btp-app .btp-subscription-element-shell{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;width:100%!important;max-height:94dvh!important;padding:28px 30px 24px!important;color:#172536!important}
body .btp-app .btp-subscription-element-head{padding-right:70px!important}
body .btp-app .btp-modal.is-subscription-element-modal .btp-checkout-back{flex:0 0 auto!important;margin:14px 0 12px!important}
body .btp-app .btp-subscription-element-scroll{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;padding:2px!important}
body .btp-app .btp-subscription-element-scroll::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
body .btp-app .btp-subscription-element-grid{display:grid!important;grid-template-columns:minmax(0,.82fr) minmax(0,1.35fr)!important;gap:18px!important;align-items:start!important;min-width:0!important}
body .btp-app .btp-subscription-summary,body .btp-app .btp-subscription-payment-card{min-width:0!important;border-radius:22px!important}
body .btp-app .btp-subscription-summary{position:sticky!important;top:0!important;padding:24px!important;background:linear-gradient(155deg,#132438 0%,#1d3550 100%)!important;border:1px solid rgba(226,182,78,.24)!important;box-shadow:0 16px 34px rgba(10,22,35,.12)!important;color:#fff!important}
body .btp-app .btp-subscription-summary-kicker{display:block!important;margin-bottom:8px!important;color:#efc96f!important;font-size:12px!important;font-weight:900!important;letter-spacing:.14em!important}
body .btp-app .btp-subscription-summary h3{margin:0!important;color:#fff!important;font-size:27px!important;line-height:1.1!important;letter-spacing:-.02em!important}
body .btp-app .btp-subscription-price{display:flex!important;align-items:flex-end!important;gap:7px!important;margin:16px 0 15px!important}
body .btp-app .btp-subscription-price strong{font-size:31px!important;line-height:1!important;color:#f1c86c!important;letter-spacing:-.035em!important;white-space:nowrap!important}
body .btp-app .btp-subscription-price span{padding-bottom:3px!important;color:#cbd4de!important;font-size:12px!important}
body .btp-app .btp-subscription-summary>p{margin:0!important;color:#c2ccd7!important;font-size:12px!important;line-height:1.55!important}
body .btp-app .btp-subscription-summary ul{display:grid!important;gap:9px!important;margin:19px 0 0!important;padding:17px 0 0!important;border-top:1px solid rgba(255,255,255,.10)!important;list-style:none!important}
body .btp-app .btp-subscription-summary li{display:flex!important;align-items:flex-start!important;gap:8px!important;color:#e3e9ef!important;font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-subscription-summary li .dashicons{flex:0 0 16px!important;width:16px!important;height:16px!important;font-size:16px!important;line-height:16px!important;color:#efc96f!important}
body .btp-app .btp-subscription-account{margin-top:18px!important;padding:12px 13px!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:14px!important;background:rgba(255,255,255,.055)!important;min-width:0!important}
body .btp-app .btp-subscription-account small,body .btp-app .btp-subscription-account strong{display:block!important}
body .btp-app .btp-subscription-account small{margin-bottom:4px!important;color:#aeb9c5!important;font-size:12px!important;font-weight:900!important;letter-spacing:.09em!important}
body .btp-app .btp-subscription-account strong{overflow-wrap:anywhere!important;color:#fff!important;font-size:12px!important;font-weight:700!important}
body .btp-app .btp-subscription-payment-card{padding:18px!important;border:1px solid #e8e1d5!important;background:#fff!important;box-shadow:0 10px 28px rgba(17,28,43,.05)!important}
body .btp-app .btp-subscription-payment-card .btp-checkout-secure{margin-bottom:16px!important}
body .btp-app .btp-subscription-field-block{min-width:0!important;padding:15px 0!important;border-top:1px solid #f0eade!important}
body .btp-app .btp-subscription-field-block:first-of-type{border-top:0!important;padding-top:2px!important}
body .btp-app .btp-subscription-field-title{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:12px!important;margin-bottom:10px!important;min-width:0!important}
body .btp-app .btp-subscription-field-title span{color:#263649!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-subscription-field-title small{color:#929ba6!important;font-size:12px!important;text-align:right!important;line-height:1.3!important}
body .btp-app #btp-subscription-payment-element,body .btp-app #btp-subscription-address-element{width:100%!important;min-width:0!important}
body .btp-app #btp-subscription-payment-element .btp-checkout-loading{min-height:190px!important;padding:20px!important}
body .btp-app .btp-subscription-inline-note{margin:0!important;padding:12px!important;border-radius:12px!important;background:#f8f4ea!important;color:#7d8793!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-subscription-promo{padding:15px 0 3px!important;border-top:1px solid #f0eade!important}
body .btp-app .btp-subscription-promo label{display:flex!important;align-items:center!important;gap:6px!important;margin-bottom:8px!important;color:#263649!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-subscription-promo label span{color:#9aa2ab!important;font-size:12px!important;font-weight:600!important}
body .btp-app .btp-subscription-promo>div{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;min-width:0!important}
body .btp-app .btp-subscription-promo input{width:100%!important;min-width:0!important;height:44px!important;padding:0 13px!important;border:1px solid #e3dac9!important;border-radius:13px!important;background:#fffdfa!important;color:#172536!important;font-size:12px!important;outline:none!important;box-shadow:none!important}
body .btp-app .btp-subscription-promo input:focus{border-color:#c8942f!important;box-shadow:0 0 0 2px rgba(200,148,47,.12)!important}
body .btp-app .btp-subscription-promo button{min-height:44px!important;padding:0 16px!important;border-radius:13px!important;white-space:nowrap!important}
body .btp-app .btp-subscription-promo>small{display:block!important;min-height:16px!important;margin-top:6px!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-subscription-promo>small.is-error{color:#8b4b3d!important}body .btp-app .btp-subscription-promo>small.is-success{color:#2d7452!important}
body .btp-app .btp-subscription-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;margin-top:15px!important;padding-top:15px!important;border-top:1px solid #eee7dd!important}
body .btp-app .btp-subscription-actions button{min-height:48px!important;padding:0 20px!important;border-radius:999px!important;white-space:nowrap!important}
body .btp-app .btp-subscription-actions .btp-primary{min-width:210px!important;background:linear-gradient(180deg,#f0cc7a 0%,#dca846 100%)!important;border-color:#c99532!important;color:#17120b!important}
body .btp-app .btp-subscription-actions .btp-primary:disabled{opacity:.55!important;cursor:not-allowed!important;filter:saturate(.7)!important}
body .btp-app .btp-modal.is-subscription-element-modal .btp-embedded-checkout-note{margin:13px 3px 0!important;padding:0!important}

@media(max-width:860px){
  body .btp-app .btp-subscription-element-grid{grid-template-columns:1fr!important}
  body .btp-app .btp-subscription-summary{position:relative!important;top:auto!important;padding:19px!important}
  body .btp-app .btp-subscription-summary ul{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
}
@media(max-width:720px){
  body .btp-app .btp-modal.is-subscription-element-modal{align-items:flex-end!important;padding:0!important}
  body .btp-app .btp-modal.is-subscription-element-modal .btp-modal-card{width:100%!important;max-width:none!important;max-height:96dvh!important;border-radius:24px 24px 0 0!important;border-bottom:0!important}
  body .btp-app .btp-modal.is-subscription-element-modal .btp-modal-content,body .btp-app .btp-subscription-element-shell{max-height:96dvh!important}
  body .btp-app .btp-modal.is-subscription-element-modal .btp-modal-close{top:12px!important;right:12px!important;width:40px!important;height:40px!important;min-width:40px!important}
  body .btp-app .btp-subscription-element-shell{padding:18px 14px calc(18px + env(safe-area-inset-bottom))!important}
  body .btp-app .btp-subscription-element-head{display:block!important;padding:3px 48px 14px 2px!important}
  body .btp-app .btp-subscription-element-head h2{font-size:25px!important;line-height:1.1!important;max-width:none!important}
  body .btp-app .btp-subscription-element-head p{font-size:12.3px!important;line-height:1.5!important;max-width:none!important}
  body .btp-app .btp-subscription-element-head em{margin-top:10px!important;min-height:28px!important;font-size:12px!important}
  body .btp-app .btp-subscription-summary{padding:17px!important;border-radius:18px!important}
  body .btp-app .btp-subscription-summary h3{font-size:23px!important}
  body .btp-app .btp-subscription-price{margin:12px 0!important}
  body .btp-app .btp-subscription-price strong{font-size:27px!important}
  body .btp-app .btp-subscription-summary ul{grid-template-columns:1fr!important;padding-top:13px!important;margin-top:14px!important}
  body .btp-app .btp-subscription-payment-card{padding:12px!important;border-radius:18px!important}
  body .btp-app .btp-subscription-field-title{display:block!important;margin-bottom:9px!important}
  body .btp-app .btp-subscription-field-title small{display:block!important;margin-top:3px!important;text-align:left!important}
  body .btp-app .btp-subscription-promo>div{grid-template-columns:1fr!important}
  body .btp-app .btp-subscription-promo button{width:100%!important}
  body .btp-app .btp-subscription-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body .btp-app .btp-subscription-actions button{width:100%!important;min-width:0!important}
}
@media(max-width:380px){
  body .btp-app .btp-subscription-element-shell{padding-left:10px!important;padding-right:10px!important}
  body .btp-app .btp-subscription-element-head{padding-right:44px!important}
  body .btp-app .btp-subscription-element-head h2{font-size:23px!important}
  body .btp-app .btp-subscription-payment-card{padding:10px!important;border-radius:16px!important}
}

/* ==========================================================
   v0.44.0 · CHECKOUT FISCAL + CANCELAMENTO COERENTE
========================================================== */
body .btp-app #btp-subscription-tax-id-element,
body .btp-app .btp-tax-id-fallback{
  width:100%!important;
  min-width:0!important;
}
body .btp-app .btp-tax-id-fallback[hidden]{display:none!important}
body .btp-app .btp-tax-id-fallback-grid{
  display:grid!important;
  grid-template-columns:minmax(120px,.42fr) minmax(0,1fr)!important;
  gap:10px!important;
  min-width:0!important;
}
body .btp-app .btp-tax-id-fallback label{
  display:grid!important;
  gap:7px!important;
  min-width:0!important;
  color:#263649!important;
  font-size:12px!important;
  font-weight:800!important;
}
body .btp-app .btp-tax-id-fallback input,
body .btp-app .btp-tax-id-fallback select{
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  padding:0 13px!important;
  border:1px solid #e3dac9!important;
  border-radius:13px!important;
  background:#fffdfa!important;
  color:#172536!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:500!important;
  outline:none!important;
  box-shadow:none!important;
}
body .btp-app .btp-tax-id-fallback input:focus,
body .btp-app .btp-tax-id-fallback select:focus{
  border-color:#c8942f!important;
  box-shadow:0 0 0 2px rgba(200,148,47,.12)!important;
}
body .btp-app .btp-tax-business-name{margin-top:10px!important}
body .btp-app .btp-tax-id-fallback>small{
  display:block!important;
  min-height:15px!important;
  margin-top:7px!important;
  color:#7f8995!important;
  font-size:12px!important;
  line-height:1.4!important;
}
body .btp-app .btp-tax-id-fallback>small.is-error{color:#8b4b3d!important}
body .btp-app .btp-tax-id-fallback>small.is-success{color:#2d7452!important}

body .btp-app .btp-billing-ended-card{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  margin:14px 0!important;
  padding:16px 18px!important;
  border:1px solid #eadfc8!important;
  border-radius:18px!important;
  background:#fffaf0!important;
}
body .btp-app .btp-billing-ended-card>.dashicons{
  width:24px!important;height:24px!important;font-size:24px!important;line-height:24px!important;color:#b67e17!important;
}
body .btp-app .btp-billing-ended-card>div{min-width:0!important}
body .btp-app .btp-billing-ended-card strong{display:block!important;color:#243347!important;font-size:13px!important;line-height:1.35!important}
body .btp-app .btp-billing-ended-card p{margin:4px 0 0!important;color:#7f8995!important;font-size:12px!important;line-height:1.5!important}
body .btp-app .btp-billing-ended-card .btp-primary{min-height:42px!important;padding:0 17px!important;border-radius:999px!important;white-space:nowrap!important}

@media(max-width:720px){
  body .btp-app .btp-subscription-summary>p{display:none!important}
  body .btp-app .btp-subscription-summary ul{gap:7px!important;margin-top:10px!important;padding-top:11px!important}
  body .btp-app .btp-subscription-account{margin-top:10px!important;padding:10px 11px!important}
  body .btp-app .btp-tax-id-fallback-grid{grid-template-columns:1fr!important;gap:9px!important}
  body .btp-app .btp-billing-ended-card{grid-template-columns:auto minmax(0,1fr)!important;align-items:start!important;padding:14px!important}
  body .btp-app .btp-billing-ended-card .btp-primary{grid-column:1 / -1!important;width:100%!important;white-space:normal!important}
}


/* v0.44.1 — checkout custom estável: CPF/CNPJ próprio + responsividade */
body .btp-app .btp-subscription-tax-block .btp-tax-id-fallback{display:block!important;}
body .btp-app .btp-tax-id-help{display:block!important;margin-top:8px!important;color:#8a95a2!important;font-size:12px!important;line-height:1.45!important;}
body .btp-app .btp-tax-id-fallback [data-btp-tax-feedback]{display:block!important;margin-top:7px!important;font-size:12px!important;line-height:1.4!important;min-height:15px!important;}
body .btp-app .btp-tax-id-fallback [data-btp-tax-feedback].is-error{color:#9a463c!important;}
body .btp-app .btp-tax-id-fallback [data-btp-tax-feedback].is-success{color:#317354!important;}
body .btp-app .btp-tax-id-fallback-grid{display:grid!important;grid-template-columns:minmax(120px,.42fr) minmax(0,1fr)!important;gap:12px!important;align-items:end!important;}
body .btp-app .btp-tax-id-fallback label{display:grid!important;gap:7px!important;color:#273548!important;font-size:12px!important;font-weight:750!important;min-width:0!important;}
body .btp-app .btp-tax-id-fallback input,body .btp-app .btp-tax-id-fallback select{width:100%!important;min-width:0!important;height:48px!important;padding:0 14px!important;border:1px solid #e4dccd!important;border-radius:14px!important;background:#fffdfa!important;color:#172536!important;font:inherit!important;outline:none!important;box-shadow:none!important;}
body .btp-app .btp-tax-id-fallback input:focus,body .btp-app .btp-tax-id-fallback select:focus{border-color:#c8942f!important;box-shadow:0 0 0 2px rgba(200,148,47,.12)!important;}
body .btp-app .btp-tax-business-name{margin-top:12px!important;}
@media (max-width:640px){
  body .btp-app .btp-tax-id-fallback-grid{grid-template-columns:1fr!important;gap:10px!important;}
  body .btp-app .btp-tax-id-fallback input,body .btp-app .btp-tax-id-fallback select{height:50px!important;font-size:16px!important;}
}


/* ==========================================================
   v0.44.2 · DADOS FISCAIS + MOBILE MAIS BEM APROVEITADO
========================================================== */
body .btp-app .btp-tax-business-name[hidden]{display:none!important;}
body .btp-app .btp-tax-business-name:not([hidden]){display:grid!important;}

@media(max-width:720px){
  /* Reserva o canto do fechar só na linha superior; título e descrição usam a largura do modal. */
  body .btp-app .btp-subscription-element-head,
  body .btp-app .btp-payment-element-head{padding-left:0!important;padding-right:0!important;}
  body .btp-app .btp-subscription-element-head>div,
  body .btp-app .btp-payment-element-head>div{width:100%!important;max-width:none!important;}
  body .btp-app .btp-subscription-element-head>div>span,
  body .btp-app .btp-payment-element-head>div>span{display:flex!important;align-items:center!important;min-height:40px!important;padding-right:54px!important;margin-bottom:6px!important;}
  body .btp-app .btp-subscription-element-head h2,
  body .btp-app .btp-payment-element-head h2{width:100%!important;max-width:none!important;padding-right:0!important;text-wrap:pretty!important;}
  body .btp-app .btp-subscription-element-head p,
  body .btp-app .btp-payment-element-head p{width:100%!important;max-width:none!important;padding-right:0!important;text-wrap:pretty!important;}

  body .btp-app .btp-billing-head{padding-right:0!important;}
  body .btp-app .btp-billing-head>div{width:100%!important;max-width:none!important;}
  body .btp-app .btp-billing-head>div>span{display:flex!important;align-items:center!important;min-height:40px!important;padding-right:54px!important;}
  body .btp-app .btp-billing-head h2,body .btp-app .btp-billing-head p{width:100%!important;max-width:none!important;text-wrap:pretty!important;}

  body .btp-app .btp-subscription-element-shell{padding-left:12px!important;padding-right:12px!important;}
  body .btp-app .btp-subscription-element-scroll{padding-left:0!important;padding-right:0!important;}
  body .btp-app .btp-subscription-summary,body .btp-app .btp-subscription-payment-card{width:100%!important;max-width:none!important;}
}

@media(max-width:380px){
  body .btp-app .btp-subscription-element-shell,body .btp-app .btp-payment-element-shell{padding-left:9px!important;padding-right:9px!important;}
  body .btp-app .btp-subscription-element-head h2,body .btp-app .btp-payment-element-head h2{font-size:22px!important;line-height:1.12!important;}
  body .btp-app .btp-subscription-element-head p,body .btp-app .btp-payment-element-head p{font-size:12px!important;line-height:1.48!important;}
  body .btp-app .btp-billing-manager{padding-left:10px!important;padding-right:10px!important;}
  body .btp-app .btp-billing-head h2{font-size:23px!important;line-height:1.1!important;}
  body .btp-app .btp-billing-head p{font-size:12.5px!important;}
}


/* v0.44.3 — comprovante dentro da identidade visual */
body .btp-app .btp-billing-invoice-link{
  background:none!important;border:none!important;padding:0!important;cursor:pointer!important
}
body .btp-app .btp-billing-invoice-link.is-loading{opacity:.7!important;pointer-events:none!important}
body .btp-app .btp-invoice-receipt-shell{padding:30px!important;color:#172536!important}
body .btp-app .btp-invoice-receipt-top{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr)!important;gap:16px!important;margin:18px 0 16px!important}
body .btp-app .btp-invoice-receipt-highlight,
body .btp-app .btp-invoice-receipt-total{border:1px solid #e5d6af!important;border-radius:28px!important;padding:22px 24px!important;background:#fffdfa!important;min-width:0!important}
body .btp-app .btp-invoice-receipt-highlight{background:linear-gradient(145deg,#122133,#1b3047)!important;color:#fff!important;border-color:#1d3046!important}
body .btp-app .btp-invoice-receipt-highlight small{display:block!important;color:#efcb78!important;font-size:12px!important;font-weight:850!important;letter-spacing:.14em!important}
body .btp-app .btp-invoice-receipt-highlight strong{display:block!important;margin-top:8px!important;font-size:32px!important;line-height:1.08!important;color:#fff!important;text-wrap:pretty!important}
body .btp-app .btp-invoice-receipt-highlight span{display:block!important;margin-top:10px!important;color:#d8e0e8!important;font-size:14px!important}
body .btp-app .btp-invoice-receipt-total small{display:block!important;color:#9b6b12!important;font-size:12px!important;font-weight:850!important;letter-spacing:.14em!important}
body .btp-app .btp-invoice-receipt-total strong{display:block!important;margin:8px 0 10px!important;font-size:30px!important;line-height:1.08!important;color:#172536!important}
body .btp-app .btp-invoice-receipt-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin-bottom:16px!important}
body .btp-app .btp-invoice-receipt-box{min-height:auto!important}
body .btp-app .btp-invoice-receipt-card{margin-top:0!important}
body .btp-app .btp-invoice-receipt-items{display:grid!important;gap:10px!important}
body .btp-app .btp-invoice-receipt-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;padding:14px 16px!important;border:1px solid #efe7d6!important;border-radius:18px!important;background:#fffcf7!important}
body .btp-app .btp-invoice-receipt-item strong{display:block!important;color:#172536!important;font-size:14px!important;line-height:1.35!important;text-wrap:pretty!important}
body .btp-app .btp-invoice-receipt-item small{display:block!important;margin-top:4px!important;color:#83909c!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-invoice-receipt-item span{display:block!important;color:#8a95a2!important;font-size:12px!important;text-align:right!important}
body .btp-app .btp-invoice-receipt-item>div:last-child strong{font-size:15px!important;text-align:right!important}
body .btp-app .btp-invoice-receipt-summary{display:grid!important;gap:10px!important;margin-top:14px!important;padding-top:14px!important;border-top:1px solid #eee4cf!important}
body .btp-app .btp-invoice-receipt-summary>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
body .btp-app .btp-invoice-receipt-summary span{color:#7f8a96!important;font-size:13px!important}
body .btp-app .btp-invoice-receipt-summary strong{color:#172536!important;font-size:17px!important}
body .btp-app .btp-invoice-receipt-actions{display:flex!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important;margin-top:16px!important}
body .btp-app .btp-invoice-receipt-actions .btp-primary,
body .btp-app .btp-invoice-receipt-actions .btp-ghost{min-height:46px!important;padding:0 18px!important;border-radius:999px!important;text-decoration:none!important}
@media (max-width: 920px){
  body .btp-app .btp-invoice-receipt-top,
  body .btp-app .btp-invoice-receipt-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media (max-width: 640px){
  body .btp-app .btp-invoice-receipt-shell{padding:20px!important}
  body .btp-app .btp-invoice-receipt-highlight,
  body .btp-app .btp-invoice-receipt-total{padding:18px 18px!important;border-radius:22px!important}
  body .btp-app .btp-invoice-receipt-highlight strong,
  body .btp-app .btp-invoice-receipt-total strong{font-size:26px!important}
  body .btp-app .btp-invoice-receipt-item{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-invoice-receipt-item span,
  body .btp-app .btp-invoice-receipt-item>div:last-child strong{text-align:left!important}
  body .btp-app .btp-invoice-receipt-actions{justify-content:stretch!important}
  body .btp-app .btp-invoice-receipt-actions .btp-primary,
  body .btp-app .btp-invoice-receipt-actions .btp-ghost{width:100%!important;justify-content:center!important}
}


/* v0.44.4 — recibo premium e linguagem mais comercial */
body .btp-app .btp-invoice-receipt-statusline{display:inline-flex!important;align-items:center!important;gap:7px!important;margin-bottom:16px!important;padding:7px 10px!important;border-radius:999px!important;background:rgba(239,203,120,.12)!important;border:1px solid rgba(239,203,120,.28)!important;color:#f3d58d!important}
body .btp-app .btp-invoice-receipt-statusline .dashicons{width:16px!important;height:16px!important;font-size:16px!important;line-height:16px!important}
body .btp-app .btp-invoice-receipt-statusline b{font-size:12px!important;line-height:1!important;letter-spacing:.04em!important}
body .btp-app .btp-invoice-receipt-total-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important;margin-top:4px!important}
body .btp-app .btp-invoice-receipt-total-meta>span:first-child{color:#7f8a96!important;font-size:12px!important;font-weight:700!important}
body .btp-app .btp-invoice-receipt-card{box-shadow:0 18px 42px rgba(18,33,51,.055)!important}
body .btp-app .btp-invoice-receipt-actions .btp-primary{box-shadow:0 10px 24px rgba(198,145,36,.18)!important}
@media (max-width:640px){
  body .btp-app .btp-invoice-receipt-statusline{margin-bottom:13px!important}
  body .btp-app .btp-invoice-receipt-total-meta{align-items:flex-start!important;flex-direction:column!important}
}

/* ==========================================================
   v0.44.6 · RECIBO ALINHADO + MOBILE + SCROLL LIMPO
========================================================== */
body .btp-app .btp-modal.is-billing-modal.is-invoice-receipt .btp-modal-card{
  overflow:hidden!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
body .btp-app .btp-modal.is-billing-modal.is-invoice-receipt .btp-modal-card::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
body .btp-app .btp-modal.is-billing-modal.is-invoice-receipt .btp-modal-content{
  max-height:92dvh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
body .btp-app .btp-modal.is-billing-modal.is-invoice-receipt .btp-modal-content::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
body .btp-app .btp-modal.is-billing-modal.is-invoice-receipt .btp-modal-close{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  float:none!important;
  margin:0!important;
}
body .btp-app .btp-invoice-receipt-shell{padding:30px 30px 28px!important}
body .btp-app .btp-invoice-receipt-head{padding-right:62px!important;margin-bottom:14px!important}
body .btp-app .btp-invoice-receipt-head>div{max-width:680px!important}
body .btp-app .btp-invoice-receipt-head h2{max-width:none!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
body .btp-app .btp-invoice-receipt-head p{max-width:58ch!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
body .btp-app .btp-invoice-receipt-back{margin:4px 0 14px!important}
body .btp-app .btp-invoice-receipt-top{align-items:stretch!important}
body .btp-app .btp-invoice-receipt-highlight,
body .btp-app .btp-invoice-receipt-total{display:flex!important;flex-direction:column!important;justify-content:center!important;min-height:190px!important}
body .btp-app .btp-invoice-receipt-statusline{align-self:flex-start!important;min-height:34px!important}
body .btp-app .btp-invoice-receipt-statusline .dashicons{display:grid!important;place-items:center!important;margin:0!important;vertical-align:middle!important}
body .btp-app .btp-invoice-receipt-statusline b{display:block!important;line-height:1.15!important}
body .btp-app .btp-invoice-receipt-box{grid-template-columns:54px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;padding:18px 20px!important}
body .btp-app .btp-invoice-receipt-box .btp-billing-box-icon{width:54px!important;height:54px!important;border-radius:16px!important;align-self:center!important}
body .btp-app .btp-invoice-receipt-box .btp-billing-box-icon .dashicons{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;font-size:22px!important;line-height:24px!important;margin:0!important;padding:0!important}
body .btp-app .btp-invoice-receipt-box .btp-billing-box-copy{padding:0!important;align-self:center!important}
body .btp-app .btp-invoice-receipt-box .btp-billing-box-copy small{margin:0 0 4px!important}
body .btp-app .btp-invoice-receipt-box .btp-billing-box-copy h3{margin:0 0 3px!important;line-height:1.25!important}
body .btp-app .btp-invoice-receipt-box .btp-billing-box-copy p{margin:0!important;line-height:1.35!important;overflow-wrap:anywhere!important}
body .btp-app .btp-invoice-receipt-item{min-height:76px!important}
body .btp-app .btp-invoice-receipt-item-copy{min-width:0!important}
body .btp-app .btp-invoice-receipt-item-copy strong{white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;text-wrap:pretty!important}
body .btp-app .btp-invoice-receipt-item-value{min-width:128px!important;text-align:right!important}
body .btp-app .btp-invoice-receipt-item-value span,
body .btp-app .btp-invoice-receipt-item-value strong{text-align:right!important}
body .btp-app .btp-invoice-pdf-link{background:#fffaf0!important;border-color:#ead8b0!important;color:#243347!important;box-shadow:none!important}
body .btp-app .btp-invoice-pdf-link:hover{background:#f8f1e4!important;color:#172536!important}
body .btp-app .btp-invoice-receipt-footer{align-items:center!important;padding:4px 2px 0!important}
body .btp-app .btp-invoice-receipt-footer>.dashicons{display:grid!important;place-items:center!important;margin-top:0!important}

@media(max-width:720px){
  body .btp-app .btp-modal.is-billing-modal.is-invoice-receipt{padding:10px!important;align-items:center!important}
  body .btp-app .btp-modal.is-billing-modal.is-invoice-receipt .btp-modal-card{width:min(100%,520px)!important;max-height:96dvh!important;border-radius:24px!important}
  body .btp-app .btp-modal.is-billing-modal.is-invoice-receipt .btp-modal-content{max-height:96dvh!important}
  body .btp-app .btp-modal.is-billing-modal.is-invoice-receipt .btp-modal-close{top:12px!important;right:12px!important;width:42px!important;height:42px!important;min-width:42px!important}
  body .btp-app .btp-invoice-receipt-shell{padding:18px 14px 22px!important}
  body .btp-app .btp-invoice-receipt-head{padding-right:50px!important;margin-bottom:12px!important}
  body .btp-app .btp-invoice-receipt-head>div>span{min-height:auto!important;padding-right:0!important;margin-bottom:8px!important}
  body .btp-app .btp-invoice-receipt-head h2{font-size:27px!important;line-height:1.1!important;width:100%!important;max-width:none!important;margin:0 0 8px!important}
  body .btp-app .btp-invoice-receipt-head p{font-size:13px!important;line-height:1.48!important;max-width:none!important;margin:0!important;padding-right:0!important}
  body .btp-app .btp-invoice-receipt-head>em{margin-top:12px!important;align-self:flex-start!important}
  body .btp-app .btp-invoice-receipt-back{margin:8px 0 14px!important;font-size:12.5px!important}
  body .btp-app .btp-invoice-receipt-top{gap:12px!important;margin:0 0 12px!important}
  body .btp-app .btp-invoice-receipt-highlight,
  body .btp-app .btp-invoice-receipt-total{min-height:0!important;padding:18px!important;border-radius:22px!important}
  body .btp-app .btp-invoice-receipt-highlight strong{font-size:25px!important;line-height:1.12!important;letter-spacing:-.02em!important;overflow-wrap:anywhere!important}
  body .btp-app .btp-invoice-receipt-total strong{font-size:29px!important;line-height:1.08!important}
  body .btp-app .btp-invoice-receipt-grid{gap:10px!important;margin-bottom:12px!important}
  body .btp-app .btp-invoice-receipt-box{grid-template-columns:48px minmax(0,1fr)!important;padding:15px 16px!important;gap:11px!important;border-radius:19px!important}
  body .btp-app .btp-invoice-receipt-box .btp-billing-box-icon{width:48px!important;height:48px!important;border-radius:15px!important}
  body .btp-app .btp-invoice-receipt-box .btp-billing-box-copy h3{font-size:17px!important}
  body .btp-app .btp-invoice-receipt-card{padding:16px!important;border-radius:20px!important}
  body .btp-app .btp-invoice-receipt-card .btp-billing-section-title{align-items:flex-start!important;gap:8px!important}
  body .btp-app .btp-invoice-receipt-card .btp-billing-section-title h3{font-size:21px!important;line-height:1.15!important;margin-top:4px!important}
  body .btp-app .btp-invoice-receipt-card .btp-billing-section-title>span{padding-top:18px!important}
  body .btp-app .btp-invoice-receipt-item{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;min-height:0!important;padding:13px 14px!important}
  body .btp-app .btp-invoice-receipt-item-copy strong{font-size:14px!important;line-height:1.32!important}
  body .btp-app .btp-invoice-receipt-item-value{min-width:92px!important}
  body .btp-app .btp-invoice-receipt-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;margin-top:14px!important}
  body .btp-app .btp-invoice-receipt-actions .btp-primary,
  body .btp-app .btp-invoice-receipt-actions .btp-ghost{width:100%!important;min-height:48px!important;justify-content:center!important}
  body .btp-app .btp-invoice-receipt-footer{gap:9px!important;margin-top:14px!important}
  body .btp-app .btp-invoice-receipt-footer p{font-size:12px!important;line-height:1.42!important}
}
@media(max-width:390px){
  body .btp-app .btp-modal.is-billing-modal.is-invoice-receipt{padding:6px!important}
  body .btp-app .btp-invoice-receipt-shell{padding-left:11px!important;padding-right:11px!important}
  body .btp-app .btp-invoice-receipt-head h2{font-size:24px!important}
  body .btp-app .btp-invoice-receipt-highlight strong{font-size:23px!important}
  body .btp-app .btp-invoice-receipt-card .btp-billing-section-title h3{font-size:19px!important}
  body .btp-app .btp-invoice-receipt-item{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-invoice-receipt-item-value{min-width:0!important;text-align:left!important}
  body .btp-app .btp-invoice-receipt-item-value span,
  body .btp-app .btp-invoice-receipt-item-value strong{text-align:left!important}
  body .btp-app .btp-invoice-receipt-summary>div{gap:8px!important}
  body .btp-app .btp-invoice-receipt-summary span{font-size:12px!important}
  body .btp-app .btp-invoice-receipt-summary strong{font-size:16px!important;white-space:nowrap!important}
}


/* v0.44.7 — Free como demonstração e recursos Pro sinalizados */
body .btp-app .btp-nav-pro-badge{
  margin-left:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:32px!important;height:20px!important;padding:0 7px!important;border:1px solid rgba(232,184,77,.35)!important;
  border-radius:999px!important;background:rgba(232,184,77,.10)!important;color:#e8bc58!important;font-size:12px!important;
  font-weight:900!important;letter-spacing:.08em!important;line-height:1!important;gap:3px!important
}
body .btp-app .btp-nav-pro-badge .dashicons{width:10px!important;height:10px!important;font-size:12px!important;line-height:10px!important}
body .btp-app .btp-nav button.is-pro-preview:not(.is-active) .btp-nav-pro-badge{opacity:.82!important}
body .btp-app .btp-usage-meter.is-pro-locked strong{color:#9b6b12!important;font-size:12px!important;letter-spacing:.08em!important}
body .btp-app .btp-usage-meter.is-pro-locked i{background:#f4eee1!important}
body .btp-app .btp-usage-meter.is-pro-locked i b{background:linear-gradient(90deg,#d8a331,#f0ca72)!important;opacity:.34!important}
body .btp-app .btp-pro-preview-notice{
  display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:15px!important;
  margin:0 0 18px!important;padding:16px 18px!important;border:1px solid #ead9b0!important;border-radius:22px!important;
  background:linear-gradient(135deg,#fffaf0,#fff)!important;box-shadow:0 12px 34px rgba(18,33,51,.055)!important;min-width:0!important
}
body .btp-app .btp-pro-preview-lock{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border-radius:14px!important;background:#fff4d8!important;border:1px solid #ead39a!important;color:#a66f08!important}
body .btp-app .btp-pro-preview-lock .dashicons{width:20px!important;height:20px!important;font-size:20px!important;line-height:20px!important}
body .btp-app .btp-pro-preview-notice>div{min-width:0!important}
body .btp-app .btp-pro-preview-notice small{display:block!important;color:#9b6b12!important;font-size:12px!important;font-weight:900!important;letter-spacing:.14em!important}
body .btp-app .btp-pro-preview-notice strong{display:block!important;margin-top:3px!important;color:#172536!important;font-size:15px!important;line-height:1.25!important}
body .btp-app .btp-pro-preview-notice p{margin:3px 0 0!important;color:#7e8a97!important;font-size:12px!important;line-height:1.45!important;text-wrap:pretty!important}
body .btp-app .btp-pro-preview-notice .btp-primary{min-height:40px!important;padding:0 16px!important;border-radius:999px!important;white-space:nowrap!important}
.btp-pro-gate-toast{position:fixed;right:24px;bottom:24px;z-index:999999;display:flex;align-items:flex-start;gap:11px;max-width:min(430px,calc(100vw - 32px));padding:15px 17px;border:1px solid #dfc17b;border-radius:18px;background:#14253a;color:#fff;box-shadow:0 18px 55px rgba(8,18,31,.28);opacity:0;transform:translateY(10px);transition:opacity .2s ease,transform .2s ease}
.btp-pro-gate-toast.is-visible{opacity:1;transform:translateY(0)}
.btp-pro-gate-toast>.dashicons{flex:0 0 20px;width:20px;height:20px;font-size:20px;line-height:20px;color:#edc461}
.btp-pro-gate-toast strong,.btp-pro-gate-toast small{display:block}.btp-pro-gate-toast strong{font-size:13px;line-height:1.25}.btp-pro-gate-toast small{margin-top:4px;color:#ced8e2;font-size:12px;line-height:1.45}
@media (max-width: 760px){
  body .btp-app .btp-nav-pro-badge{min-width:20px!important;width:20px!important;height:20px!important;padding:0!important;font-size:0!important}
  body .btp-app .btp-nav-pro-badge .dashicons{width:10px!important;height:10px!important;font-size:12px!important;line-height:10px!important}
  body .btp-app .btp-pro-preview-notice{grid-template-columns:auto minmax(0,1fr)!important;padding:14px!important;border-radius:18px!important;gap:12px!important}
  body .btp-app .btp-pro-preview-notice .btp-primary{grid-column:1/-1!important;width:100%!important;justify-content:center!important}
  .btp-pro-gate-toast{left:16px;right:16px;bottom:82px;max-width:none}
}


/* v0.44.9 — slogan oficial alinhado ao lockup da marca */
body .btp-app .btp-sidebar .btp-brand-wrap{
  width:min(194px,100%)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
}
body .btp-app .btp-sidebar .btp-brand--sidebar{
  width:100%!important;
  margin:0 auto!important;
}
body .btp-app .btp-sidebar .btp-brand-tag{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:10px auto 0!important;
  padding:0!important;
  color:#d7dde5!important;
  font-size:12.5px!important;
  font-weight:600!important;
  line-height:1.2!important;
  letter-spacing:.11em!important;
  text-align:center!important;
  white-space:nowrap!important;
  text-transform:lowercase!important;
}
@media (max-width:1180px) and (min-width:821px){
  body .btp-app .btp-sidebar .btp-brand-wrap{width:64px!important}
  body .btp-app .btp-sidebar .btp-brand-tag{display:none!important}
}
@media (max-width:820px){
  body .btp-app .btp-sidebar .btp-brand-wrap{display:none!important}
}


/* v0.45.0 — bloqueio Pro consistente + melhor uso da largura no desktop */
@media (min-width: 1100px){
  body .btp-app .btp-view .btp-section-head>div,
  body .btp-app .btp-view .btp-workspace-head>div{flex:1 1 auto!important;width:auto!important;max-width:none!important}
  body .btp-app .btp-view .btp-section-head h2,
  body .btp-app .btp-view .btp-workspace-head h2{max-width:none!important;width:auto!important;text-wrap:wrap!important}
  body .btp-app .btp-view .btp-section-head p,
  body .btp-app .btp-view .btp-workspace-head p{max-width:min(94ch,100%)!important;width:auto!important;text-wrap:wrap!important;overflow-wrap:normal!important}
  body .btp-app .btp-view[data-view="historico"] .btp-section-head p,
  body .btp-app .btp-view[data-view="mensagens"] .btp-section-head p,
  body .btp-app .btp-view[data-view="prompts"] .btp-section-head p,
  body .btp-app .btp-view[data-view="pipeline"] .btp-section-head p,
  body .btp-app .btp-view[data-view="fechamentos"] .btp-section-head p,
  body .btp-app .btp-view[data-view="resultados"] .btp-section-head p{max-width:min(104ch,100%)!important}
  body .btp-app .btp-pro-preview-notice>div{width:100%!important;max-width:none!important}
  body .btp-app .btp-pro-preview-notice p{max-width:none!important;text-wrap:wrap!important;white-space:normal!important}
}

/* Paid action controls still look like the same design system; the lock state is
   communicated by the page badge + modal instead of introducing foreign colors. */
body .btp-app .is-pro-locked-action{cursor:pointer!important}

/* Pro gate — same cream / navy / gold visual language as billing and checkout. */
body .btp-app .btp-modal.is-plan-gate-modal{padding:20px!important}
body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-card{
  width:min(640px,calc(100vw - 40px))!important;max-width:640px!important;max-height:calc(100dvh - 40px)!important;
  border-radius:30px!important;overflow:hidden!important;background:#fffdf9!important;border:1px solid #e7d5aa!important;
  box-shadow:0 28px 90px rgba(8,18,31,.28)!important
}
body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-content{overflow:auto!important;scrollbar-width:none!important}
body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-content::-webkit-scrollbar{width:0!important;height:0!important}
body .btp-app .btp-plan-gate-dialog{padding:42px 42px 34px!important;text-align:center!important;color:#172536!important}
body .btp-app .btp-plan-gate-icon{width:66px!important;height:66px!important;margin:0 auto 18px!important;display:grid!important;place-items:center!important;border-radius:22px!important;background:#fff3d5!important;border:1px solid #e8cc88!important;color:#a8730d!important}
body .btp-app .btp-plan-gate-icon .dashicons{width:28px!important;height:28px!important;font-size:28px!important;line-height:28px!important}
body .btp-app .btp-plan-gate-kicker{display:block!important;color:#9b6b12!important;font-size:12px!important;font-weight:900!important;letter-spacing:.18em!important}
body .btp-app .btp-plan-gate-dialog h2{margin:8px auto 10px!important;max-width:18ch!important;color:#172536!important;font-size:30px!important;line-height:1.08!important;letter-spacing:-.025em!important;text-wrap:pretty!important}
body .btp-app .btp-plan-gate-dialog>p{margin:0 auto!important;max-width:52ch!important;color:#7d8997!important;font-size:14px!important;line-height:1.6!important;text-wrap:pretty!important}
body .btp-app .btp-plan-gate-benefit{display:flex!important;align-items:flex-start!important;gap:12px!important;margin:24px 0 0!important;padding:16px 18px!important;text-align:left!important;border:1px solid #eadcb9!important;border-radius:18px!important;background:#fbf7ee!important}
body .btp-app .btp-plan-gate-benefit>.dashicons{flex:0 0 20px!important;width:20px!important;height:20px!important;font-size:20px!important;line-height:20px!important;color:#af7a12!important;margin-top:1px!important}
body .btp-app .btp-plan-gate-benefit strong{display:block!important;color:#172536!important;font-size:13px!important;line-height:1.3!important}
body .btp-app .btp-plan-gate-benefit small{display:block!important;margin-top:3px!important;color:#7c8996!important;font-size:12px!important;line-height:1.5!important}
body .btp-app .btp-plan-gate-actions{display:flex!important;justify-content:center!important;gap:10px!important;margin-top:22px!important}
body .btp-app .btp-plan-gate-actions button{min-height:48px!important;padding:0 20px!important;border-radius:999px!important;justify-content:center!important}

/* Internal work-area scrollbars stay discreet and inset from the card edge. */
@media (min-width:721px){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-grid,
  body .btp-app .btp-view[data-view="prompts"] .btp-prompt-grid{padding-right:10px!important;scrollbar-width:thin!important;scrollbar-color:rgba(166,111,8,.38) transparent!important}
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-grid::-webkit-scrollbar,
  body .btp-app .btp-view[data-view="prompts"] .btp-prompt-grid::-webkit-scrollbar{width:6px!important}
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-grid::-webkit-scrollbar-track,
  body .btp-app .btp-view[data-view="prompts"] .btp-prompt-grid::-webkit-scrollbar-track{background:transparent!important}
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-grid::-webkit-scrollbar-thumb,
  body .btp-app .btp-view[data-view="prompts"] .btp-prompt-grid::-webkit-scrollbar-thumb{background:rgba(166,111,8,.38)!important;border-radius:999px!important}
}
@media (max-width:760px){
  body .btp-app .btp-modal.is-plan-gate-modal{padding:12px!important;align-items:center!important}
  body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-card{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;border-radius:26px!important}
  body .btp-app .btp-plan-gate-dialog{padding:34px 18px 22px!important}
  body .btp-app .btp-plan-gate-icon{width:58px!important;height:58px!important;border-radius:19px!important;margin-bottom:15px!important}
  body .btp-app .btp-plan-gate-dialog h2{font-size:25px!important;max-width:15ch!important}
  body .btp-app .btp-plan-gate-dialog>p{font-size:13px!important;line-height:1.55!important;max-width:none!important}
  body .btp-app .btp-plan-gate-benefit{padding:14px!important;margin-top:18px!important;border-radius:16px!important}
  body .btp-app .btp-plan-gate-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;margin-top:18px!important}
  body .btp-app .btp-plan-gate-actions button{width:100%!important;min-height:48px!important}
}


/* v0.45.1 — navegação Pro limpa em tablet e mobile */
@media (max-width:1180px){
  body .btp-app .btp-nav-pro-badge{display:none!important}
  body .btp-app .btp-sidebar nav.btp-nav button.is-pro-preview{padding-right:inherit!important}
}


/* v0.45.2 — Turnstile integrado ao login premium */
.btp-login-form .btp-turnstile-wrap{
  width:100%;min-width:0;margin:-2px 0 0;display:grid;gap:7px
}
.btp-login-form .btp-turnstile{width:100%;min-width:0}
.btp-login-form .btp-turnstile-status{
  margin:0!important;min-height:18px;color:#8b98a7!important;font-size:12px!important;line-height:1.45!important;text-align:left
}
.btp-login-form .btp-turnstile-status.is-ready{color:#567867!important}
.btp-login-form .btp-turnstile-status.is-error{color:#9c5d4f!important}
.btp-login-form [data-btp-turnstile-submit].is-security-wait,
.btp-login-form [data-btp-turnstile-submit]:disabled{
  cursor:wait!important;opacity:.72!important;filter:saturate(.82)!important;transform:none!important
}
@media (max-width:640px){
  .btp-login-form .btp-turnstile-wrap{margin-top:0;gap:6px}
  .btp-login-form .btp-turnstile-status{font-size:12px!important;line-height:1.4!important}
}


/* =========================================================
   v0.45.3 — rolagem natural da navegação + modal Pro compacto
   ========================================================= */
/* Em desktop/tablet, quando a lateral chega ao limite, a roda volta a
   encadear naturalmente para a página principal em vez de “travar”. */
@media (min-width:721px){
  body .btp-app .btp-sidebar{
    overscroll-behavior-y:auto!important;
    overscroll-behavior-x:none!important;
  }
}

/* O gate Pro compartilha o mesmo modal em Mensagens, Prompts, Pipeline,
   Fechamentos, Resultados etc. Ele deve abraçar o conteúdo — nunca ocupar
   100dvh por herança dos drawers mobile. */
body .btp-app .btp-modal.is-plan-gate-modal{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-card{
  height:auto!important;
  min-height:0!important;
  max-height:min(720px,calc(100dvh - 40px))!important;
  overflow:hidden!important;
  scrollbar-width:none!important;
}
body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-card::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-content{
  width:100%!important;
  min-width:0!important;
  max-height:calc(100dvh - 40px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
}
body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-content::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-close{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  z-index:4!important;
}

@media (max-width:760px){
  body .btp-app .btp-modal.is-plan-gate-modal{
    padding:10px!important;
    align-items:center!important;
    justify-content:center!important;
  }
  body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-card{
    width:calc(100vw - 20px)!important;
    max-width:520px!important;
    height:auto!important;
    min-height:0!important;
    max-height:calc(100dvh - 20px)!important;
    border-radius:24px!important;
  }
  body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-content{
    max-height:calc(100dvh - 20px)!important;
  }
  body .btp-app .btp-plan-gate-dialog{
    padding:30px 18px 22px!important;
  }
  body .btp-app .btp-plan-gate-icon{
    width:54px!important;
    height:54px!important;
    border-radius:18px!important;
    margin:0 auto 14px!important;
  }
  body .btp-app .btp-plan-gate-icon .dashicons{
    width:24px!important;
    height:24px!important;
    font-size:24px!important;
    line-height:24px!important;
  }
  body .btp-app .btp-plan-gate-dialog h2{
    margin:7px auto 9px!important;
    max-width:20ch!important;
    font-size:clamp(23px,7vw,27px)!important;
    line-height:1.12!important;
  }
  body .btp-app .btp-plan-gate-dialog>p{
    max-width:34ch!important;
    font-size:12.5px!important;
    line-height:1.5!important;
  }
  body .btp-app .btp-plan-gate-benefit{
    margin-top:16px!important;
    padding:13px 14px!important;
    gap:10px!important;
    border-radius:16px!important;
  }
  body .btp-app .btp-plan-gate-benefit strong{
    font-size:12.5px!important;
  }
  body .btp-app .btp-plan-gate-benefit small{
    font-size:12px!important;
    line-height:1.45!important;
  }
  body .btp-app .btp-plan-gate-actions{
    margin-top:16px!important;
    gap:8px!important;
  }
  body .btp-app .btp-plan-gate-actions button{
    min-height:46px!important;
    padding:0 14px!important;
    font-size:14px!important;
  }
}

@media (max-width:390px){
  body .btp-app .btp-modal.is-plan-gate-modal{
    padding:8px!important;
  }
  body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-card{
    width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
    border-radius:22px!important;
  }
  body .btp-app .btp-modal.is-plan-gate-modal .btp-modal-content{
    max-height:calc(100dvh - 16px)!important;
  }
  body .btp-app .btp-plan-gate-dialog{
    padding:26px 14px 18px!important;
  }
  body .btp-app .btp-plan-gate-dialog h2{
    max-width:19ch!important;
    font-size:23px!important;
  }
  body .btp-app .btp-plan-gate-dialog>p{
    max-width:30ch!important;
  }
  body .btp-app .btp-plan-gate-benefit{
    padding:12px!important;
  }
  body .btp-app .btp-plan-gate-actions button{
    min-height:44px!important;
  }
}


/* v0.45.4 — scroll nativo no menu + badges Pro limpos no responsivo */
/* Desktop: a barra lateral não cria um segundo scroll. A roda do mouse passa
   naturalmente para a página, sem JS e sem sensação de travamento. */
@media (min-width:1181px){
  body .btp-app .btp-sidebar{
    overflow:visible!important;
    overscroll-behavior:auto!important;
  }
}

/* Tablet compacto: mantém todos os atalhos acessíveis, mas sem transformar a
   sidebar em uma área de rolagem concorrente com a página. */
@media (min-width:721px) and (max-width:1180px){
  body .btp-app .btp-sidebar{
    overflow-y:hidden!important;
    overflow-x:hidden!important;
    overscroll-behavior:auto!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav{
    align-content:start!important;
  }
}

/* Em alturas menores, comprime somente a navegação lateral para que todos os
   botões continuem visíveis sem precisar de scroll interno. */
@media (min-width:721px) and (max-height:760px){
  body .btp-app .btp-sidebar{padding-top:12px!important;padding-bottom:10px!important}
  body .btp-app .btp-sidebar .btp-brand-wrap{margin-bottom:8px!important}
  body .btp-app .btp-sidebar nav.btp-nav{gap:2px!important}
  body .btp-app .btp-sidebar nav.btp-nav button{min-height:38px!important;padding-top:6px!important;padding-bottom:6px!important}
  body .btp-app .btp-sidebar-foot{padding-top:6px!important;padding-bottom:2px!important}
}

/* Celular/tablet: os cadeados/selos PRO do menu somem por completo. O gate Pro
   continua funcionando ao tocar/interagir; só removemos o ruído visual. */
@media (max-width:1180px){
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-pro-badge,
  body .btp-app .btp-sidebar nav.btp-nav button>.btp-nav-pro-badge,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>.btp-nav-pro-badge,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more button>.btp-nav-pro-badge{
    display:none!important;
    width:0!important;
    min-width:0!important;
    height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }
}

/* Mobile: usa explicitamente o span que contém data-mobile como rótulo. Isso
   evita que um badge extra seja interpretado como o texto do botão. */
@media (max-width:720px){
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span[data-mobile],
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span[data-mobile]{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    font-size:0!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-align:center!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span[data-mobile]::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span[data-mobile]::after{
    content:attr(data-mobile)!important;
    display:block!important;
    font-size:12px!important;
    line-height:1.1!important;
    color:inherit!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more button>span:not(.btp-nav-icon):not(.btp-nav-pro-badge){
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    font-size:12px!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow:visible!important;
    color:#e5ebf2!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more{
    scrollbar-width:none!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more::-webkit-scrollbar{
    width:0!important;
    height:0!important;
  }
}


/* =========================================================
   v0.45.5 — selo Pro somente em desktop amplo
   =========================================================
   Os badges PRO foram removidos do HTML da navegação. Isso evita que regras
   antigas de tipografia mobile interpretem o badge como rótulo do botão e
   impede qualquer cadeado/PRO residual em celular e tablet. No desktop amplo,
   a sinalização é recriada apenas por CSS, sem alterar a estrutura do menu. */
body .btp-app .btp-sidebar nav.btp-nav .btp-nav-pro-badge{
  display:none!important;
}
@media (min-width:1181px){
  body .btp-app .btp-sidebar nav.btp-nav button.is-pro-preview::before{
    content:'PRO';
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    margin-left:auto!important;
    min-width:34px!important;
    height:20px!important;
    padding:0 7px!important;
    border:1px solid rgba(232,184,77,.34)!important;
    border-radius:999px!important;
    background:rgba(232,184,77,.09)!important;
    color:#e8bc58!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1!important;
    letter-spacing:.08em!important;
    order:3!important;
    pointer-events:none!important;
  }
}
@media (max-width:1180px){
  body .btp-app .btp-sidebar nav.btp-nav button.is-pro-preview::before{
    content:none!important;
    display:none!important;
  }
  /* Proteção extra contra qualquer badge legado ainda presente em HTML
     cacheado por navegador/plugin durante a troca de versão. */
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-pro-badge,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-pro-badge *,
  body .btp-app .btp-sidebar nav.btp-nav button.is-pro-preview>.dashicons-lock{
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
    position:absolute!important;
    pointer-events:none!important;
  }
}



/* =========================================================
   v0.45.6 — rolagem vertical única + acessibilidade do modal
   =========================================================
   Fechamentos ainda tinha um container vertical próprio (max-height +
   overflow:auto + overscroll contain). Isso capturava a roda quando o cursor
   passava sobre a tabela e fazia a página parecer travada. A rolagem vertical
   volta a pertencer exclusivamente ao documento; mantemos somente overflow
   horizontal em telas que realmente precisem dele. */
body .btp-app .btp-closing-scroll{
  height:auto!important;
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  overscroll-behavior-x:contain!important;
  overscroll-behavior-y:auto!important;
  scrollbar-gutter:auto!important;
  touch-action:pan-x pan-y!important;
  -webkit-overflow-scrolling:touch!important;
  padding:0!important;
}
body .btp-app .btp-closing-scroll::-webkit-scrollbar{
  width:0!important;
  height:7px!important;
}
body .btp-app .btp-closing-scroll::-webkit-scrollbar-track{
  background:transparent!important;
  margin-inline:14px!important;
}
body .btp-app .btp-closing-scroll::-webkit-scrollbar-thumb{
  min-width:30px!important;
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(157,111,30,.40)!important;
  background-clip:padding-box!important;
}
@media (max-width:760px){
  body .btp-app .btp-closing-scroll{
    overflow:visible!important;
    padding:0!important;
    scrollbar-width:none!important;
  }
  body .btp-app .btp-closing-scroll::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
  }
}


/* ================================================================
   v0.45.15 — login premium compacto + responsividade de autenticação
   ================================================================ */
body:has(.btp-login-shell){
  background:#090e15!important;
}
body .btp-login-shell{
  min-height:100svh!important;
  padding:24px clamp(22px,3vw,48px)!important;
  align-items:center!important;
  overflow-x:hidden!important;
  background:
    radial-gradient(circle at 10% 14%,rgba(214,163,75,.15),transparent 18%),
    radial-gradient(circle at 88% 10%,rgba(66,91,126,.13),transparent 26%),
    linear-gradient(132deg,#080d14 0%,#0e1621 50%,#152234 100%)!important;
}
body .btp-login-shell::before{
  background-size:86px 86px!important;
  opacity:.16!important;
}
body .btp-login-shell::after{
  opacity:.48!important;
  filter:blur(64px)!important;
}
body .btp-login-stage{
  width:min(1280px,100%)!important;
  grid-template-columns:minmax(0,1.15fr) minmax(390px,430px)!important;
  grid-template-areas:"scene login"!important;
  gap:clamp(28px,4vw,56px)!important;
  align-items:center!important;
}
body .btp-login-scene{
  min-height:560px!important;
  padding:36px 38px!important;
  border-radius:32px!important;
  gap:20px!important;
  grid-template-rows:auto auto minmax(138px,1fr)!important;
  background:
    radial-gradient(circle at 96% 4%,rgba(214,163,75,.18),transparent 34%),
    linear-gradient(145deg,rgba(9,14,21,.96),rgba(16,25,37,.95) 60%,rgba(24,36,52,.96))!important;
  border:1px solid rgba(214,163,75,.14)!important;
  box-shadow:0 28px 74px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
body .btp-login-scene-copy span{
  margin-bottom:12px!important;
  font-size:12px!important;
}
body .btp-login-scene-copy h3{
  max-width:13.5ch!important;
  margin-bottom:14px!important;
  font-size:clamp(36px,3.35vw,50px)!important;
  line-height:1.01!important;
  letter-spacing:-.045em!important;
}
body .btp-login-scene-copy p{
  max-width:46ch!important;
  font-size:14.5px!important;
  line-height:1.62!important;
}
body .btp-login-scene-metrics{gap:10px!important}
body .btp-login-scene-metrics article{
  padding:14px 15px!important;
  border-radius:17px!important;
}
body .btp-login-scene-metrics strong{font-size:16px!important}
body .btp-login-scene-metrics span{font-size:12px!important}
body .btp-login-trajectory{
  min-height:142px!important;
  padding:15px 18px 10px!important;
  border-radius:20px!important;
}
body .btp-login-trajectory svg{height:100px!important}

body .btp-login-card{
  width:100%!important;
  max-width:430px!important;
  padding:26px 28px 24px!important;
  border-radius:28px!important;
  align-self:center!important;
  justify-self:end!important;
  background:linear-gradient(180deg,rgba(255,255,255,.985),rgba(249,248,245,.97))!important;
  border:1px solid rgba(255,255,255,.82)!important;
  box-shadow:0 28px 72px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.92),inset 0 -16px 30px rgba(214,163,75,.035)!important;
}
body .btp-login-card::before{
  width:180px!important;
  height:180px!important;
  right:-86px!important;
  top:-92px!important;
  background:rgba(214,163,75,.09)!important;
}
body .btp-login-card>.btp-brand{margin:0 0 16px!important}
body .btp-brand--login{
  width:min(238px,68%)!important;
  margin:0 0 16px!important;
}
body .btp-login-shell .btp-auth-switch{
  margin:0 0 16px!important;
  padding:4px!important;
  gap:4px!important;
}
body .btp-login-shell .btp-auth-switch a{
  min-height:38px!important;
  padding:8px 12px!important;
  font-size:12px!important;
}
body .btp-login-kicker{
  margin:0 0 8px!important;
  font-size:12px!important;
  letter-spacing:.19em!important;
}
body .btp-login-card h2{
  margin:0 0 9px!important;
  max-width:12.5ch!important;
  font-size:clamp(30px,2.45vw,38px)!important;
  line-height:1.035!important;
  letter-spacing:-.04em!important;
}
body .btp-login-card>p{
  margin:0 0 16px!important;
  max-width:38ch!important;
  font-size:13px!important;
  line-height:1.55!important;
  color:#74808d!important;
}
body .btp-login-notice{
  margin:0 0 12px!important;
  padding:10px 12px!important;
  border-radius:14px!important;
  font-size:12.5px!important;
  line-height:1.45!important;
}
body .btp-login-form{gap:11px!important}
body .btp-login-form label{
  gap:6px!important;
  font-size:12px!important;
  line-height:1.3!important;
}
body .btp-login-form input[type="text"],
body .btp-login-form input[type="email"],
body .btp-login-form input[type="password"]{
  height:50px!important;
  padding:0 14px!important;
  border-radius:14px!important;
  background:#fffdf9!important;
}
body .btp-login-form .btp-check{
  min-height:22px!important;
  gap:8px!important;
  font-size:12px!important;
}
body .btp-login-form .btp-check input{
  width:17px!important;
  height:17px!important;
}
body .btp-login-form .btp-primary{
  min-height:48px!important;
  margin-top:0!important;
  border-radius:15px!important;
  padding:12px 16px!important;
  background:linear-gradient(180deg,#f2d487 0%,#d8a33e 100%)!important;
  color:#14181d!important;
  box-shadow:0 12px 28px rgba(177,122,24,.20),inset 0 1px 0 rgba(255,255,255,.52)!important;
}
body .btp-login-form .btp-primary:hover{
  background:linear-gradient(180deg,#f5dc9c 0%,#dfa943 100%)!important;
}
body .btp-login-links{
  margin-top:12px!important;
  font-size:12.5px!important;
}
body .btp-login-links a{color:#1a2635!important}

/* Cadastros precisam de um pouco mais de área, sem transformar o card em um painel gigante. */
body .btp-register-card{max-width:500px!important}
body .btp-register-card h2{max-width:14ch!important}
body .btp-register-form{gap:11px!important}

@media (min-width:941px) and (max-height:780px){
  body .btp-login-shell{padding-top:16px!important;padding-bottom:16px!important}
  body .btp-login-scene{min-height:510px!important;padding:30px 32px!important}
  body .btp-login-scene-copy h3{font-size:40px!important}
  body .btp-login-trajectory{min-height:126px!important}
  body .btp-login-trajectory svg{height:84px!important}
  body .btp-login-card{padding:22px 25px 20px!important}
  body .btp-brand--login{width:min(214px,62%)!important;margin-bottom:12px!important}
  body .btp-login-shell .btp-auth-switch{margin-bottom:12px!important}
  body .btp-login-card h2{font-size:31px!important}
  body .btp-login-card>p{margin-bottom:12px!important;font-size:12.5px!important}
  body .btp-login-form{gap:9px!important}
  body .btp-login-form input[type="text"],
  body .btp-login-form input[type="email"],
  body .btp-login-form input[type="password"]{height:46px!important}
}

@media (max-width:940px){
  body .btp-login-shell{
    padding:24px 18px 32px!important;
    align-items:flex-start!important;
  }
  body .btp-login-stage{
    width:min(520px,100%)!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"login"!important;
    gap:0!important;
    justify-content:center!important;
  }
  body .btp-login-scene{display:none!important}
  body .btp-login-card,
  body .btp-register-card{
    grid-area:login!important;
    max-width:500px!important;
    justify-self:center!important;
  }
}

@media (max-width:720px){
  body .btp-login-shell{padding:14px 12px 24px!important}
  body .btp-login-stage{width:100%!important}
  body .btp-login-card,
  body .btp-register-card{
    width:100%!important;
    max-width:520px!important;
    padding:23px 20px 22px!important;
    border-radius:25px!important;
  }
  body .btp-brand--login{width:min(224px,72%)!important;margin-bottom:14px!important}
  body .btp-login-card h2{
    max-width:13ch!important;
    font-size:clamp(28px,8.8vw,35px)!important;
    line-height:1.04!important;
  }
  body .btp-login-card>p{font-size:12.5px!important}
  body .btp-login-form input[type="text"],
  body .btp-login-form input[type="email"],
  body .btp-login-form input[type="password"]{height:49px!important}
}

@media (max-width:430px){
  body .btp-login-shell{padding:10px 9px 18px!important}
  body .btp-login-card,
  body .btp-register-card{
    padding:20px 16px 19px!important;
    border-radius:22px!important;
  }
  body .btp-brand--login{width:min(205px,70%)!important;margin-bottom:12px!important}
  body .btp-login-shell .btp-auth-switch{margin-bottom:14px!important}
  body .btp-login-shell .btp-auth-switch a{min-height:36px!important;font-size:12px!important}
  body .btp-login-kicker{font-size:12px!important}
  body .btp-login-card h2{font-size:29px!important;max-width:12ch!important}
  body .btp-login-card>p{font-size:12px!important;line-height:1.5!important}
  body .btp-login-notice{font-size:12px!important}
  body .btp-login-form{gap:10px!important}
}


/* ===== Login redesign v0.45.15 ===== */
body .btp-login-shell{
  min-height:100vh!important;
  padding:28px!important;
  background:linear-gradient(135deg,#070b11 0%,#0c1320 38%,#151e2b 100%)!important;
}
body .btp-login-shell::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 12% 10%, rgba(226,183,76,.15), transparent 16%),radial-gradient(circle at 92% 12%, rgba(226,183,76,.08), transparent 18%);
  opacity:1!important;
}
body .btp-login-stage{
  width:min(1320px,100%)!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(420px,480px)!important;
  gap:34px!important;
  align-items:stretch!important;
}
body .btp-login-scene{
  min-height:760px!important;
  padding:42px 44px!important;
  border-radius:34px!important;
  border:1px solid rgba(214,163,75,.15)!important;
  background:
    linear-gradient(180deg, rgba(5,10,17,.26), rgba(6,10,17,.70)),
    radial-gradient(circle at 14% 8%, rgba(214,163,75,.18), transparent 18%),
    url('../img/login-premium-bg.png') center center / cover no-repeat!important;
  box-shadow:0 34px 90px rgba(0,0,0,.32)!important;
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
body .btp-login-scene::before{content:none!important}
body .btp-login-scene__backdrop{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(6,10,18,.88) 0%, rgba(6,10,18,.68) 36%, rgba(6,10,18,.30) 100%);
  z-index:0;
}
body .btp-login-scene__content{
  position:relative;
  z-index:1;
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  max-width:540px;
}
body .btp-brand--login-stage{display:block!important;max-width:260px!important;margin:0 0 38px!important}
body .btp-brand--login-stage .btp-brand-image{width:100%!important;height:auto!important;display:block!important}
body .btp-login-scene-copy{max-width:500px!important}
body .btp-login-scene-copy span{
  display:inline-block!important;
  margin-bottom:18px!important;
  color:#efc56e!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.24em!important;
}
body .btp-login-scene-copy h3{
  margin:0 0 18px!important;
  color:#f8f4ec!important;
  font-size:clamp(54px,4.1vw,82px)!important;
  line-height:.96!important;
  letter-spacing:-.06em!important;
  text-wrap:balance!important;
  max-width:10.5ch!important;
}
body .btp-login-scene-copy h3 em{
  display:block;
  font-style:normal;
  color:#efc56e;
}
body .btp-login-scene-copy p{
  margin:0!important;
  color:#d5dce5!important;
  font-size:18px!important;
  line-height:1.72!important;
  max-width:22ch!important;
}
body .btp-login-feature-list{
  margin-top:36px;
  display:grid;
  gap:18px;
}
body .btp-login-feature{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  gap:18px;
  align-items:flex-start;
}
body .btp-login-feature-icon{
  width:72px;
  height:72px;
  border-radius:20px;
  display:grid;
  place-items:center;
  background:linear-gradient(180deg, rgba(17,24,35,.84), rgba(14,21,31,.72));
  border:1px solid rgba(214,163,75,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  color:#efc56e;
}
body .btp-login-feature-icon svg{
  width:28px;
  height:28px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body .btp-login-feature-copy strong{
  display:block;
  margin:4px 0 8px;
  color:#f4efe7;
  font-size:20px;
  line-height:1.15;
  letter-spacing:-.02em;
}
body .btp-login-feature-copy span{
  display:block;
  color:#c2ccd8;
  font-size:15px;
  line-height:1.55;
  max-width:28ch;
}
body .btp-login-scene-footer{
  margin-top:34px;
  display:flex;
  align-items:flex-end;
  gap:16px;
  color:#e6e0d6;
}
body .btp-login-scene-footer__line{
  width:36px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,#efc56e,#c38a22);
  flex:0 0 auto;
  margin-bottom:12px;
}
body .btp-login-scene-footer strong{
  display:block;
  color:#d8c6a0;
  font-size:12px;
  letter-spacing:.22em;
  margin-bottom:6px;
}
body .btp-login-scene-footer span{
  display:block;
  color:#aeb8c5;
  font-size:12px;
  letter-spacing:.18em;
}
body .btp-login-card{
  align-self:center!important;
  justify-self:end!important;
  width:min(470px,100%)!important;
  min-height:auto!important;
  padding:34px 34px 38px!important;
  border-radius:34px!important;
  background:linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%)!important;
  border:1px solid rgba(214,163,75,.12)!important;
  box-shadow:0 34px 90px rgba(10,17,26,.24)!important;
  overflow:hidden!important;
}
body .btp-login-card::before{background:rgba(214,163,75,.10)!important;right:-80px!important;top:-100px!important}
body .btp-login-card::after{background:rgba(14,19,27,.03)!important;left:auto!important;right:-40px!important;bottom:-75px!important}
body .btp-login-card > .btp-brand--login{display:none!important}
body .btp-auth-switch{margin:0 0 22px!important;padding:5px!important;border-radius:999px!important;background:#f2f1ee!important;border:1px solid #e2e0d8!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
body .btp-auth-switch a{display:flex!important;align-items:center!important;justify-content:center!important;height:48px!important;border-radius:999px!important;font-size:15px!important;font-weight:700!important;color:#657285!important;text-decoration:none!important;transition:.22s ease}
body .btp-auth-switch a.is-active{background:linear-gradient(180deg,#f0cf82,#dcb04c)!important;color:#1a2430!important;box-shadow:0 8px 20px rgba(214,163,75,.22)!important}
body .btp-login-kicker{display:block!important;margin:0 0 14px!important;color:#b58322!important;font-size:12px!important;letter-spacing:.24em!important;font-weight:800!important}
body .btp-login-card h2{margin:0 0 16px!important;color:#111a29!important;font-size:clamp(38px,3.15vw,58px)!important;line-height:1.02!important;letter-spacing:-.05em!important;max-width:10.5ch!important}
body .btp-login-card > p{margin:0 0 20px!important;color:#717c89!important;font-size:16px!important;line-height:1.62!important;max-width:30ch!important}
body .btp-login-notice{margin:0 0 18px!important;border-radius:18px!important;padding:16px 18px!important;font-size:15px!important;line-height:1.45!important}
body .btp-login-form{gap:16px!important}
body .btp-login-form label{display:grid!important;gap:8px!important;font-size:13px!important;font-weight:800!important;color:#5d6877!important;letter-spacing:-.01em!important}
body .btp-login-form input[type="text"],
body .btp-login-form input[type="password"],
body .btp-login-form input[type="email"]{
  height:56px!important;
  border-radius:16px!important;
  border:1px solid #d9dde4!important;
  background:#fff!important;
  padding:0 16px!important;
  color:#16202d!important;
  box-shadow:none!important;
}
body .btp-login-form input[type="text"]:focus,
body .btp-login-form input[type="password"]:focus,
body .btp-login-form input[type="email"]:focus{
  border-color:rgba(214,163,75,.8)!important;
  box-shadow:0 0 0 4px rgba(214,163,75,.14)!important;
}
body .btp-check{display:flex!important;align-items:center!important;gap:10px!important;font-size:13px!important;font-weight:700!important;color:#617080!important}
body .btp-check input{width:18px!important;height:18px!important;accent-color:#d7a64a!important}
body .btp-login-form .cf-turnstile,
body .btp-login-form .cf-turnstile > div{width:100%!important;max-width:100%!important}
body .btp-login-shell .btp-primary{
  width:100%!important;
  min-height:56px!important;
  border-radius:999px!important;
  padding:16px 20px!important;
  font-size:17px!important;
  font-weight:800!important;
}
body .btp-login-links{margin-top:16px!important;display:flex!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:10px 16px!important;font-size:14px!important;color:#6f7a88!important}
body .btp-login-links a{color:#92671b!important;text-decoration:none!important;font-weight:700!important}
body .btp-login-links--center{justify-content:center!important}
@media (max-width: 1180px){
  body .btp-login-stage{grid-template-columns:minmax(0,1fr) minmax(390px,450px)!important;gap:24px!important}
  body .btp-login-scene{padding:36px 34px!important;min-height:720px!important}
  body .btp-login-scene-copy h3{font-size:clamp(46px,4vw,64px)!important}
  body .btp-login-card{width:min(450px,100%)!important;padding:30px 28px 34px!important}
}
@media (max-width: 1024px){
  body .btp-login-shell{padding:18px!important}
  body .btp-login-stage{grid-template-columns:1fr!important;gap:16px!important;max-width:720px!important}
  body .btp-login-scene{display:none!important}
  body .btp-login-card{justify-self:center!important;width:min(560px,100%)!important;padding:28px 24px 30px!important;border-radius:30px!important}
  body .btp-login-card > .btp-brand--login{display:block!important;max-width:230px!important;margin:0 auto 20px!important}
  body .btp-login-card > .btp-brand--login .btp-brand-image{width:100%!important;height:auto!important;display:block!important}
  body .btp-login-card h2{font-size:clamp(34px,8vw,48px)!important;max-width:11ch!important}
  body .btp-login-card > p{max-width:36ch!important}
}
@media (max-width: 640px){
  body .btp-login-shell{padding:14px!important}
  body .btp-login-card{padding:24px 18px 24px!important;border-radius:26px!important}
  body .btp-auth-switch a{height:46px!important;font-size:14px!important}
  body .btp-login-kicker{font-size:12px!important;letter-spacing:.18em!important}
  body .btp-login-card h2{font-size:clamp(30px,10vw,40px)!important;line-height:1.04!important;max-width:12ch!important}
  body .btp-login-card > p{font-size:15px!important;line-height:1.58!important}
  body .btp-login-form input[type="text"],
  body .btp-login-form input[type="password"],
  body .btp-login-form input[type="email"]{height:54px!important;border-radius:15px!important}
  body .btp-login-links{font-size:13px!important;justify-content:flex-start!important}
}

/* ========================================================================
 * v0.45.20 — unified platform scrollbar
 * Ensures the browser/root scrollbar matches the same premium scrollbars
 * already used by internal tables, modals and panels.
 * ====================================================================== */
html:has(.btp-app),
body.btp-shell-body:has(.btp-app),
body:has(.btp-app),
.btp-shell-main:has(.btp-app),
.btp-app,
.btp-main,
.btp-view{
  scrollbar-width:thin!important;
  scrollbar-color:#d6a34b #111722!important;
}
html:has(.btp-app)::-webkit-scrollbar,
body.btp-shell-body:has(.btp-app)::-webkit-scrollbar,
body:has(.btp-app)::-webkit-scrollbar,
.btp-shell-main:has(.btp-app)::-webkit-scrollbar,
.btp-app::-webkit-scrollbar,
.btp-main::-webkit-scrollbar,
.btp-view::-webkit-scrollbar{
  width:10px!important;
  height:10px!important;
}
html:has(.btp-app)::-webkit-scrollbar-track,
body.btp-shell-body:has(.btp-app)::-webkit-scrollbar-track,
body:has(.btp-app)::-webkit-scrollbar-track,
.btp-shell-main:has(.btp-app)::-webkit-scrollbar-track,
.btp-app::-webkit-scrollbar-track,
.btp-main::-webkit-scrollbar-track,
.btp-view::-webkit-scrollbar-track{
  background:#111722!important;
  border-radius:999px!important;
}
html:has(.btp-app)::-webkit-scrollbar-thumb,
body.btp-shell-body:has(.btp-app)::-webkit-scrollbar-thumb,
body:has(.btp-app)::-webkit-scrollbar-thumb,
.btp-shell-main:has(.btp-app)::-webkit-scrollbar-thumb,
.btp-app::-webkit-scrollbar-thumb,
.btp-main::-webkit-scrollbar-thumb,
.btp-view::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#f0d088,#a87515)!important;
  border:2px solid #111722!important;
  border-radius:999px!important;
}
html:has(.btp-app)::-webkit-scrollbar-thumb:hover,
body.btp-shell-body:has(.btp-app)::-webkit-scrollbar-thumb:hover,
body:has(.btp-app)::-webkit-scrollbar-thumb:hover,
.btp-shell-main:has(.btp-app)::-webkit-scrollbar-thumb:hover,
.btp-app::-webkit-scrollbar-thumb:hover,
.btp-main::-webkit-scrollbar-thumb:hover,
.btp-view::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#f6dda0,#bd8620)!important;
}

/* ========================================================================
 * v0.45.23 — persistent themed root scrollbar (no post-transition flash)
 * The previous fix hid the root scrollbar while the route overlay was open.
 * Chromium then had to destroy and recreate the native scrollbar when the
 * animation ended; on long views this could paint one default white frame.
 * Keep the root scroller alive for the whole authenticated session instead.
 * ====================================================================== */
html.btp-platform-shell{
  overflow-x:hidden!important;
  overflow-y:scroll!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;
  scrollbar-color:#d6a34b #111722!important;
  background:#111722!important;
}
html.btp-platform-shell body.btp-shell-body{
  min-height:100dvh!important;
  overflow-x:hidden!important;
  scrollbar-width:thin!important;
  scrollbar-color:#d6a34b #111722!important;
}
html.btp-platform-shell::-webkit-scrollbar,
html.btp-platform-shell body.btp-shell-body::-webkit-scrollbar{
  width:10px!important;
  height:10px!important;
  background:#111722!important;
}
html.btp-platform-shell::-webkit-scrollbar-track,
html.btp-platform-shell body.btp-shell-body::-webkit-scrollbar-track{
  background:#111722!important;
  border-radius:999px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.015)!important;
}
html.btp-platform-shell::-webkit-scrollbar-thumb,
html.btp-platform-shell body.btp-shell-body::-webkit-scrollbar-thumb{
  min-height:34px!important;
  background:linear-gradient(180deg,#f0d088,#a87515)!important;
  border:2px solid #111722!important;
  border-radius:999px!important;
  background-clip:padding-box!important;
}
html.btp-platform-shell::-webkit-scrollbar-thumb:hover,
html.btp-platform-shell body.btp-shell-body::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,#f6dda0,#bd8620)!important;
}
html.btp-platform-shell::-webkit-scrollbar-corner,
html.btp-platform-shell body.btp-shell-body::-webkit-scrollbar-corner{
  background:#111722!important;
}

/* Do not toggle overflow during an internal route transition. Keeping the
   scrollbar mounted is what removes the one-frame white repaint. Input is
   blocked in JS while the overlay is active, so the page cannot move behind
   the loader even though the root scroller remains present. */
html.btp-platform-shell.btp-route-transition-open,
html.btp-platform-shell.btp-route-transition-open body.btp-shell-body{
  overscroll-behavior:none!important;
}

/* Keep the full-screen overlay flush with every viewport edge while leaving
   the permanent themed scrollbar outside the content layer. */
html.btp-platform-shell .btp-route-transition{
  right:0!important;
  bottom:0!important;
  max-width:none!important;
  max-height:none!important;
}



/* =========================================================
   v0.45.30 · Cabeçalho interno sem marca duplicada
   No desktop/notebook, a identidade permanece somente na
   sidebar. O topo reserva apenas as ações da conta, liberando
   espaço visual para o conteúdo. No mobile, o logo oficial
   continua disponível no cabeçalho porque a sidebar vira menu
   inferior e deixa de exibir a marca.
========================================================= */
@media (min-width:721px){
  body .btp-app .btp-topbar{
    justify-content:flex-end!important;
    margin-bottom:18px!important;
  }
  body .btp-app .btp-topbar-copy{
    display:none!important;
  }
}

/* v0.45.36 — feedback seguro/visível ao salvar Preferências comerciais */
body .btp-app [data-btp-settings-submit].is-loading{
  opacity:.74!important;
  cursor:wait!important;
  pointer-events:none!important;
  transform:none!important;
}
body .btp-app #btp-settings .is-invalid{
  border-color:#bf5757!important;
  box-shadow:0 0 0 3px rgba(191,87,87,.10)!important;
}
body .btp-app #btp-settings-feedback:not(:empty){
  min-height:20px;
}

/* ========================================================================
 * v0.45.37 — lotes de busca + área de Desqualificados no Pipeline
 * Mantém o funil limpo sem apagar histórico e destaca somente as empresas
 * realmente novas da busca selecionada.
 * ====================================================================== */
body .btp-app .btp-pipeline-search-context{
  display:grid!important;
  grid-template-columns:minmax(0,1.4fr) auto auto!important;
  align-items:center!important;
  gap:18px!important;
  margin:0 0 16px!important;
  padding:16px 18px!important;
  border-radius:22px!important;
  border:1px solid rgba(167,118,29,.18)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(250,245,234,.92))!important;
  box-shadow:0 12px 28px rgba(20,31,48,.05)!important;
}
body .btp-app .btp-pipeline-search-context-main{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}
body .btp-app .btp-pipeline-search-icon{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  border-radius:14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#8c6413!important;
  background:linear-gradient(180deg,#fff8e9,#f5e7c4)!important;
  border:1px solid rgba(167,118,29,.16)!important;
}
body .btp-app .btp-pipeline-search-icon .dashicons{font-size:19px!important;width:19px!important;height:19px!important}
body .btp-app .btp-pipeline-search-context-main>div{min-width:0!important;display:grid!important;gap:3px!important}
body .btp-app .btp-pipeline-search-context-main>div>span{
  color:#a06d08!important;
  font-size:12px!important;
  line-height:1!important;
  letter-spacing:.16em!important;
  font-weight:900!important;
}
body .btp-app .btp-pipeline-search-context-main strong{
  color:#1e2b3a!important;
  font-size:14px!important;
  line-height:1.3!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body .btp-app .btp-pipeline-search-context-main small{color:#8c96a1!important;font-size:12px!important}
body .btp-app .btp-pipeline-search-metrics{
  display:flex!important;
  align-items:stretch!important;
  gap:8px!important;
}
body .btp-app .btp-pipeline-search-metrics>div{
  min-width:78px!important;
  padding:8px 10px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.76)!important;
  border:1px solid rgba(223,218,207,.72)!important;
  text-align:center!important;
}
body .btp-app .btp-pipeline-search-metrics span{display:block!important;color:#8b95a0!important;font-size:12px!important;line-height:1.1!important}
body .btp-app .btp-pipeline-search-metrics strong{display:block!important;margin-top:4px!important;color:#1f2c3a!important;font-size:17px!important;line-height:1!important}
body .btp-app .btp-pipeline-search-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important}
body .btp-app .btp-pipeline-search-actions .btp-primary{min-height:42px!important;padding:0 15px!important;gap:7px!important;border-radius:14px!important;white-space:nowrap!important}
body .btp-app .btp-pipeline-search-actions .dashicons{font-size:16px!important;width:16px!important;height:16px!important}
body .btp-app .btp-pipeline-no-new{display:inline-flex!important;align-items:center!important;min-height:40px!important;padding:0 12px!important;border-radius:13px!important;background:#f5f2eb!important;color:#7c8490!important;font-size:12px!important;font-weight:700!important}

body .btp-app .btp-pipeline-filter-state{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin:0 0 14px!important;
  padding:12px 14px!important;
  border-radius:17px!important;
  background:#172333!important;
  color:#fff!important;
  border:1px solid rgba(240,203,120,.14)!important;
  box-shadow:0 10px 24px rgba(17,27,40,.10)!important;
}
body .btp-app .btp-pipeline-filter-state[hidden]{display:none!important}
body .btp-app .btp-pipeline-filter-state>div{display:grid!important;grid-template-columns:auto 1fr!important;column-gap:9px!important;row-gap:2px!important;align-items:center!important;min-width:0!important}
body .btp-app .btp-pipeline-filter-state .dashicons{grid-row:1 / span 2;color:#e6bd62!important;font-size:17px!important;width:17px!important;height:17px!important}
body .btp-app .btp-pipeline-filter-state strong{color:#fff!important;font-size:12px!important;line-height:1.25!important}
body .btp-app .btp-pipeline-filter-state small{color:#aeb8c4!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-pipeline-filter-state .btp-ghost{flex:0 0 auto!important;background:rgba(255,255,255,.07)!important;color:#f4e3b8!important;border:1px solid rgba(240,203,120,.22)!important;min-height:38px!important;padding:0 13px!important}

body .btp-app .btp-pipeline-shell{display:grid!important;gap:16px!important;min-width:0!important}
body .btp-app .btp-pipe-card[hidden]{display:none!important}
body .btp-app .btp-pipe-card-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important}
body .btp-app .btp-pipe-card.is-latest-search{
  border-color:rgba(199,145,36,.30)!important;
  box-shadow:0 12px 25px rgba(125,91,22,.075),inset 3px 0 0 rgba(215,163,50,.75)!important;
  background:linear-gradient(180deg,#fff,#fffdf8)!important;
}
body .btp-app .btp-pipe-new-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  min-height:25px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  background:#fbf1d8!important;
  border:1px solid rgba(184,129,24,.16)!important;
  color:#986809!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.04em!important;
  white-space:nowrap!important;
}
body .btp-app .btp-pipe-new-badge .dashicons{font-size:12px!important;width:12px!important;height:12px!important}

body .btp-app .btp-pipe-col--disqualified{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  align-self:start!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  padding:16px!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,rgba(31,43,58,.97),rgba(23,34,49,.985))!important;
  border:1px solid rgba(240,203,120,.12)!important;
  box-shadow:0 14px 34px rgba(20,31,48,.10)!important;
}
body .btp-app .btp-pipe-disqualified-head{
  display:grid!important;
  grid-template-columns:minmax(210px,260px) minmax(0,1fr)!important;
  align-items:center!important;
  gap:18px!important;
  width:100%!important;
  min-width:0!important;
  margin-bottom:12px!important;
}
body .btp-app .btp-pipe-col--disqualified h3{
  width:100%!important;
  min-width:0!important;
  max-width:260px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  color:#fff!important;
}
body .btp-app .btp-pipe-col--disqualified h3 small{color:#d9ae51!important}
body .btp-app .btp-pipe-col--disqualified .btp-pipe-stage-name{color:#fff!important}
body .btp-app .btp-pipe-col--disqualified h3 em{color:#f1d28c!important;border-color:rgba(240,203,120,.18)!important;background:rgba(240,203,120,.08)!important}
body .btp-app .btp-pipe-disqualified-head>p{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  color:#adb7c2!important;
  font-size:12px!important;
  line-height:1.55!important;
}
body .btp-app .btp-pipe-list--disqualified{
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  max-height:300px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:2px 5px 2px 0!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(215,163,50,.55) transparent!important;
}
body .btp-app .btp-pipe-list--disqualified::-webkit-scrollbar{width:7px!important}
body .btp-app .btp-pipe-list--disqualified::-webkit-scrollbar-track{background:transparent!important}
body .btp-app .btp-pipe-list--disqualified::-webkit-scrollbar-thumb{background:rgba(215,163,50,.48)!important;border-radius:999px!important}
body .btp-app .btp-pipe-list--disqualified .btp-pipe-empty{
  grid-column:1/-1!important;
  min-height:76px!important;
  color:#aeb8c4!important;
  border-color:rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.035)!important;
}
body .btp-app .btp-pipe-card.is-disqualified{
  margin:0!important;
  border-color:rgba(255,255,255,.09)!important;
  background:linear-gradient(180deg,#fff,#faf9f6)!important;
}
body .btp-app .btp-pipe-disqualified-note{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  margin-top:8px!important;
  color:#7c6b47!important;
  font-size:12px!important;
  line-height:1.3!important;
  font-weight:700!important;
}
body .btp-app .btp-pipe-disqualified-note .dashicons{font-size:13px!important;width:13px!important;height:13px!important;color:#aa7a20!important}

@media (max-width:1180px){
  body .btp-app .btp-pipeline-search-context{grid-template-columns:minmax(0,1fr) auto!important}
  body .btp-app .btp-pipeline-search-actions{grid-column:1/-1!important;justify-content:flex-start!important}
  body .btp-app .btp-pipe-list--disqualified{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:900px){
  body .btp-app .btp-pipe-disqualified-head{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;align-items:start!important}
  body .btp-app .btp-pipe-col--disqualified h3{max-width:none!important}
}
@media (max-width:720px){
  body .btp-app .btp-pipeline-search-context{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    padding:14px!important;
    border-radius:19px!important;
  }
  body .btp-app .btp-pipeline-search-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;gap:6px!important}
  body .btp-app .btp-pipeline-search-metrics>div{min-width:0!important;padding:8px 5px!important}
  body .btp-app .btp-pipeline-search-actions{grid-column:auto!important;width:100%!important}
  body .btp-app .btp-pipeline-search-actions .btp-primary{width:100%!important}
  body .btp-app .btp-pipeline-filter-state{align-items:stretch!important;flex-direction:column!important;padding:12px!important}
  body .btp-app .btp-pipeline-filter-state .btp-ghost{width:100%!important}
  body .btp-app .btp-pipe-disqualified-head{display:grid!important;gap:8px!important;align-items:start!important}
  body .btp-app .btp-pipe-col--disqualified h3{min-width:0!important;width:100%!important}
  body .btp-app .btp-pipe-list--disqualified{grid-template-columns:minmax(0,1fr)!important;max-height:380px!important}
  body .btp-app .btp-pipe-new-badge{font-size:12px!important;padding:0 7px!important}
}

/* Histórico de buscas: comporta os novos indicadores e a ação "Ver novos" sem quebrar. */
@media (min-width:1281px){
  body .btp-app .btp-history-list article{
    grid-template-columns:minmax(230px,1fr) 82px 92px 82px 150px auto auto!important;
    gap:12px!important;
  }
}
@media (min-width:721px) and (max-width:1280px){
  body .btp-app .btp-history-list article{
    grid-template-columns:minmax(220px,1fr) repeat(3,82px) auto!important;
    gap:10px!important;
  }
  body .btp-app .btp-history-list time{grid-column:1/4!important;margin-left:52px!important}
  body .btp-app .btp-history-list .btp-ghost{grid-column:auto!important;grid-row:auto!important}
}
@media (max-width:720px){
  body .btp-app .btp-history-list article{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
  body .btp-app .btp-history-main{grid-column:1/-1!important}
  body .btp-app .btp-history-metric{padding-left:0!important;text-align:center!important;background:#faf9f6!important;border:1px solid #eee9df!important;border-radius:12px!important;padding:8px 5px!important}
  body .btp-app .btp-history-list time{grid-column:1/-1!important;margin-left:0!important}
  body .btp-app .btp-history-list .btp-ghost{grid-column:1/-1!important;width:100%!important}
}

/* Alinhamento dos marcadores dentro do grid compacto dos cards do funil. */
body .btp-app .btp-pipe-new-badge{
  grid-column:2!important;
  justify-self:start!important;
  align-self:start!important;
  margin:0 0 3px!important;
}
body .btp-app .btp-pipe-disqualified-note{grid-column:1/-1!important}
body .btp-app .btp-status-readonly.is-desqualificado{background:#f4f1e9!important;border-color:#dfd5c1!important;color:#6f6249!important}
body .btp-app .btp-company-cell>strong{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important}
body .btp-app .btp-lead-new-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-height:20px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  background:#fbf1d8!important;
  border:1px solid rgba(184,129,24,.16)!important;
  color:#986809!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
body .btp-app .btp-lead-row.is-latest-search>td:first-of-type,
body .btp-app .btp-lead-row.is-latest-search>td:nth-of-type(2){background:rgba(251,242,223,.14)!important}


/* ========================================================================
 * v0.45.38 — Desqualificados em formato de lista compacta
 * O arquivo comercial deixa de usar cards em grade: cada lead ocupa uma
 * única linha, mantendo drag/drop no desktop e seletor de etapa no touch.
 * ====================================================================== */
body .btp-app .btp-pipe-list--disqualified{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:start!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  max-height:360px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:1px 5px 1px 0!important;
}
body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) auto!important;
  grid-template-rows:auto auto auto!important;
  align-items:center!important;
  align-content:center!important;
  column-gap:11px!important;
  row-gap:2px!important;
  width:100%!important;
  min-width:0!important;
  min-height:68px!important;
  height:auto!important;
  margin:0!important;
  padding:10px 12px!important;
  border-radius:15px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  background:linear-gradient(180deg,#fff,#fbfaf7)!important;
  box-shadow:0 5px 14px rgba(7,13,22,.09)!important;
}
body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>.btp-score{
  grid-column:1!important;
  grid-row:1 / span 3!important;
  align-self:center!important;
  width:36px!important;
  height:36px!important;
  margin:0!important;
}
body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>strong{
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  min-width:0!important;
  margin:0!important;
  color:#263241!important;
  font-size:12.5px!important;
  line-height:1.3!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>small{
  grid-column:2!important;
  grid-row:2!important;
  align-self:start!important;
  min-width:0!important;
  margin:1px 0 0!important;
  color:#909aa5!important;
  font-size:12px!important;
  line-height:1.3!important;
}
body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>.btp-pipe-new-badge{
  grid-column:2!important;
  grid-row:3!important;
  justify-self:start!important;
  align-self:start!important;
  margin:4px 0 0!important;
}
body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>.btp-pipe-disqualified-note{
  display:none!important;
}
body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>.btp-pipe-drag-hint{
  grid-column:3!important;
  grid-row:1 / span 3!important;
  align-self:center!important;
  justify-self:end!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  color:#9c7120!important;
  white-space:nowrap!important;
}
body .btp-app .btp-pipe-col--disqualified .btp-pipe-disqualified-head>p{
  color:#c0c8d1!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:650!important;
}
body .btp-app .btp-pipe-list--disqualified .btp-pipe-empty{
  min-height:68px!important;
}

@media (max-width:760px){
  body .btp-app .btp-pipe-col--disqualified{
    padding:14px!important;
    border-radius:20px!important;
  }
  body .btp-app .btp-pipe-list--disqualified{
    max-height:420px!important;
    gap:7px!important;
    padding-right:3px!important;
  }
  body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified{
    grid-template-columns:36px minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    min-height:66px!important;
    padding:10px!important;
    column-gap:10px!important;
  }
  body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>.btp-score{
    grid-column:1!important;
    grid-row:1 / span 2!important;
    width:34px!important;
    height:34px!important;
  }
  body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>strong,
  body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>small,
  body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>.btp-pipe-new-badge{
    grid-column:2!important;
  }
  body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>.btp-pipe-drag-hint{
    display:none!important;
  }
  body .btp-app .btp-pipe-list--disqualified .btp-pipe-card.is-disqualified>.btp-pipe-mobile-move{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    margin-top:8px!important;
  }
}


/*
 * v0.45.39 — seleção de leads mais intuitiva + consolidação do arquivo
 * A barra de ações só aparece após uma seleção real. Linhas podem ser
 * selecionadas pela área livre e recebem feedback visual imediato.
 */
body .btp-app .btp-bulkbar[hidden]{display:none!important}
body .btp-app .btp-selection-help{
  margin:0 14px 12px!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:9px 12px!important;
  border:1px solid #eadfc8!important;
  border-radius:14px!important;
  background:#fffaf0!important;
  color:#697483!important;
  font-size:12px!important;
  line-height:1.45!important;
}
body .btp-app .btp-selection-help[hidden]{display:none!important}
body .btp-app .btp-selection-help .dashicons{color:#b78221!important;font-size:17px!important;width:17px!important;height:17px!important;flex:0 0 17px!important}
body .btp-app .btp-selection-help strong{color:#253044!important;font-weight:800!important}
body .btp-app .btp-lead-row{cursor:pointer}
body .btp-app .btp-lead-row.is-selected>td{background:#fff8e8!important}
body .btp-app .btp-lead-row.is-selected>td:first-child{box-shadow:inset 3px 0 0 #d8a33f!important}
body .btp-app .btp-lead-row a,
body .btp-app .btp-lead-row button,
body .btp-app .btp-lead-row input,
body .btp-app .btp-lead-row select,
body .btp-app .btp-lead-row label{cursor:auto}
body .btp-app .btp-lead-row input[type=checkbox],
body .btp-app .btp-lead-row button,
body .btp-app .btp-lead-row a,
body .btp-app .btp-lead-row select{cursor:pointer}
@media (max-width:760px){
  body .btp-app .btp-selection-help{margin:0 10px 10px!important;padding:9px 10px!important;font-size:12px!important;border-radius:12px!important}
  body .btp-app .btp-lead-row.is-selected{border-color:#d8a33f!important;box-shadow:0 0 0 2px rgba(216,163,63,.12),0 10px 26px rgba(17,25,36,.05)!important}
  body .btp-app .btp-lead-row.is-selected>td:first-child{box-shadow:none!important}
}

/* KPIs usam a largura disponível sem criar uma aba órfã em telas largas. */
@media (min-width:1181px){
  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important}
}

body .btp-app .btp-status-readonly.is-archived{background:#f4f1e9!important;border-color:#dfd5c1!important;color:#6f6249!important}


/*
 * v0.45.40 — seleção total do filtro
 * O controle do cabeçalho tem alvo maior e seleciona exatamente o conjunto
 * visível pelo filtro + busca atual. No mobile, o mesmo fluxo fica explícito.
 */
body .btp-app .btp-select-all-control{
  width:30px!important;
  height:30px!important;
  margin:0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:10px!important;
  cursor:pointer!important;
  transition:background .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
body .btp-app .btp-select-all-control:hover{
  background:#fff5dd!important;
  box-shadow:0 0 0 1px rgba(216,163,63,.22)!important;
}
body .btp-app .btp-select-all-control:active{transform:scale(.96)!important}
body .btp-app .btp-select-all-control input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
  width:1px!important;
  height:1px!important;
}
body .btp-app .btp-select-all-visual{
  width:18px!important;
  height:18px!important;
  border:1.5px solid #9aa3ae!important;
  border-radius:4px!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  transition:all .18s ease!important;
}
body .btp-app .btp-select-all-control input:focus-visible + .btp-select-all-visual{
  outline:3px solid rgba(216,163,63,.2)!important;
  outline-offset:2px!important;
}
body .btp-app .btp-select-all-control input:checked + .btp-select-all-visual{
  border-color:#c89432!important;
  background:linear-gradient(145deg,#f2ca69,#d8a33f)!important;
  box-shadow:0 4px 10px rgba(185,132,32,.18)!important;
}
body .btp-app .btp-select-all-control input:checked + .btp-select-all-visual::after{
  content:'✓'!important;
  color:#152033!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
}
body .btp-app .btp-select-all-control input:indeterminate + .btp-select-all-visual{
  border-color:#c89432!important;
  background:#fff5dd!important;
}
body .btp-app .btp-select-all-control input:indeterminate + .btp-select-all-visual::after{
  content:'−'!important;
  color:#a66f08!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:900!important;
}
body .btp-app .btp-select-all-control input:disabled + .btp-select-all-visual{opacity:.42!important}
body .btp-app .btp-select-filter-mobile{display:none!important}
@media (max-width:760px){
  body .btp-app .btp-selection-help{flex-wrap:wrap!important}
  body .btp-app .btp-selection-help>span:nth-child(2){flex:1 1 calc(100% - 28px)!important}
  body .btp-app .btp-select-filter-mobile{
    display:inline-flex!important;
    width:100%!important;
    min-height:38px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    border:1px solid rgba(200,148,50,.3)!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#263043!important;
    font:inherit!important;
    font-weight:800!important;
    cursor:pointer!important;
  }
  body .btp-app .btp-select-filter-mobile .dashicons{color:#b78221!important}
  body .btp-app .btp-select-filter-mobile[aria-pressed="true"]{background:#fff5dd!important;border-color:#d8a33f!important}
  body .btp-app .btp-select-filter-mobile:disabled{opacity:.45!important;cursor:not-allowed!important}
}

/* ==========================================================
   v0.45.41 — seleção de leads blindada contra tema/Elementor
========================================================== */
body .btp-app .btp-lead-select{
  -webkit-appearance:auto!important;
  appearance:auto!important;
  display:inline-block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:relative!important;
  z-index:12!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  margin:0!important;
  cursor:pointer!important;
  accent-color:#c89432!important;
}
body .btp-app .btp-select-col{
  position:relative!important;
  z-index:11!important;
  pointer-events:auto!important;
}
body .btp-app .btp-select-all-control{
  position:relative!important;
  z-index:12!important;
  pointer-events:auto!important;
  isolation:isolate!important;
}
body .btp-app .btp-select-all-control input[data-btp-select-all]{
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  width:100%!important;
  height:100%!important;
  min-width:30px!important;
  min-height:30px!important;
  margin:0!important;
  opacity:0!important;
  visibility:visible!important;
  pointer-events:auto!important;
  cursor:pointer!important;
}
body .btp-app .btp-select-all-visual{
  position:relative!important;
  z-index:1!important;
  pointer-events:none!important;
}
body .btp-app .btp-lead-row.is-selected>td{
  background:#fff8e8!important;
}
body .btp-app .btp-lead-row.is-selected>td:first-child{
  box-shadow:inset 3px 0 0 #d8a33f!important;
}

/* ==========================================================
   v0.45.42 — histórico de buscas reorganizado e responsivo
========================================================== */
body .btp-app .btp-history-section-head>div{max-width:880px!important}
body .btp-app .btp-history-section-head p{max-width:820px!important}
body .btp-app .btp-history-panel{
  padding:14px!important;
  border-radius:24px!important;
  overflow:hidden!important;
}
body .btp-app .btp-history-list{
  display:grid!important;
  gap:12px!important;
}
body .btp-app .btp-history-list article.btp-history-item{
  display:grid!important;
  grid-template-columns:minmax(280px,1.15fr) minmax(300px,.9fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  padding:16px 18px!important;
  margin:0!important;
  border:1px solid #ece8df!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fff,#fdfcf9)!important;
  box-shadow:0 8px 22px rgba(22,31,43,.035)!important;
}
body .btp-app .btp-history-list article.btp-history-item:last-child{border-bottom:1px solid #ece8df!important}
body .btp-app .btp-history-main{
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  min-width:0!important;
  grid-column:auto!important;
}
body .btp-app .btp-history-icon{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,#fff7e4,#f7e6bd)!important;
  border:1px solid #ead39a!important;
  color:#a46d00!important;
  box-shadow:none!important;
}
body .btp-app .btp-history-icon .dashicons{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  font-size:18px!important;
  line-height:1!important;
}
body .btp-app .btp-history-copy{min-width:0!important}
body .btp-app .btp-history-copy>strong{
  display:block!important;
  margin:0!important;
  color:var(--btp-ink)!important;
  font-size:15px!important;
  line-height:1.25!important;
  font-weight:800!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body .btp-app .btp-history-copy>small{
  display:block!important;
  margin-top:4px!important;
  color:#8995a2!important;
  font-size:12px!important;
  line-height:1.35!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body .btp-app .btp-history-copy>time,
body .btp-app .btp-history-list article.btp-history-item time{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  grid-column:auto!important;
  margin:7px 0 0!important;
  color:#9aa4ae!important;
  font-size:12px!important;
  line-height:1.3!important;
  white-space:nowrap!important;
}
body .btp-app .btp-history-copy>time .dashicons{
  width:13px!important;
  height:13px!important;
  font-size:13px!important;
  line-height:1!important;
  color:#b17a11!important;
}
body .btp-app .btp-history-metrics{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(82px,1fr))!important;
  gap:8px!important;
  min-width:0!important;
}
body .btp-app .btp-history-metric{
  min-width:0!important;
  min-height:62px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:9px 11px!important;
  margin:0!important;
  border:1px solid #eee8dc!important;
  border-radius:13px!important;
  background:#faf8f3!important;
  text-align:left!important;
}
body .btp-app .btp-history-metric span{
  display:block!important;
  margin:0!important;
  color:#8d98a4!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:800!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
body .btp-app .btp-history-metric strong{
  display:block!important;
  margin:5px 0 0!important;
  color:var(--btp-ink)!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:850!important;
}
body .btp-app .btp-history-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  min-width:0!important;
}
body .btp-app .btp-history-actions .btp-ghost{
  grid-column:auto!important;
  grid-row:auto!important;
  width:auto!important;
  min-height:38px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border-radius:12px!important;
  white-space:nowrap!important;
  font-size:12px!important;
  font-weight:800!important;
}
body .btp-app .btp-history-actions .btp-ghost .dashicons{
  width:15px!important;
  height:15px!important;
  font-size:15px!important;
  line-height:1!important;
}
body .btp-app .btp-history-actions .btp-history-view-new{
  border-color:rgba(211,158,50,.34)!important;
  background:linear-gradient(145deg,#f7d271,#dca73d)!important;
  color:#171d27!important;
  box-shadow:0 8px 18px rgba(184,129,27,.13)!important;
}
body .btp-app .btp-history-actions .btp-history-view-new:hover{filter:brightness(.985)!important}

@media (max-width:1180px){
  body .btp-app .btp-history-list article.btp-history-item{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:13px 16px!important;
    padding:16px!important;
  }
  body .btp-app .btp-history-main{grid-column:1/-1!important}
  body .btp-app .btp-history-metrics{grid-column:1!important;grid-row:2!important;max-width:390px!important}
  body .btp-app .btp-history-actions{grid-column:2!important;grid-row:2!important;align-self:stretch!important}
}

@media (max-width:820px){
  body .btp-app .btp-history-panel{padding:12px!important;border-radius:20px!important}
  body .btp-app .btp-history-list{gap:10px!important}
  body .btp-app .btp-history-list article.btp-history-item{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    padding:15px!important;
    border-radius:16px!important;
  }
  body .btp-app .btp-history-main,
  body .btp-app .btp-history-metrics,
  body .btp-app .btp-history-actions{grid-column:1!important;grid-row:auto!important;width:100%!important;max-width:none!important}
  body .btp-app .btp-history-actions{justify-content:flex-start!important}
  body .btp-app .btp-history-actions .btp-ghost{flex:1 1 0!important;min-width:0!important}
}

@media (max-width:560px){
  body .btp-app .btp-history-section-head p{font-size:13px!important;line-height:1.55!important}
  body .btp-app .btp-history-panel{padding:9px!important;border-radius:18px!important}
  body .btp-app .btp-history-list article.btp-history-item{padding:13px!important;gap:11px!important;border-radius:15px!important}
  body .btp-app .btp-history-icon{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important}
  body .btp-app .btp-history-copy>strong{font-size:14px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  body .btp-app .btp-history-copy>small{font-size:12px!important}
  body .btp-app .btp-history-copy>time,
  body .btp-app .btp-history-list article.btp-history-item time{font-size:12px!important;margin-top:6px!important}
  body .btp-app .btp-history-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body .btp-app .btp-history-metric{min-height:57px!important;padding:8px!important;align-items:center!important;text-align:center!important;border-radius:11px!important}
  body .btp-app .btp-history-metric span{font-size:12px!important;white-space:normal!important;text-align:center!important}
  body .btp-app .btp-history-metric strong{font-size:17px!important;margin-top:4px!important}
  body .btp-app .btp-history-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body .btp-app .btp-history-actions .btp-ghost{width:100%!important;min-height:40px!important;padding:0 9px!important;font-size:12px!important}
}

@media (max-width:420px){
  body .btp-app .btp-history-section-head h2{font-size:27px!important;line-height:1.05!important}
  body .btp-app .btp-history-section-head p{font-size:12px!important}
  body .btp-app .btp-history-panel{padding:8px!important}
  body .btp-app .btp-history-list article.btp-history-item{padding:12px!important}
  body .btp-app .btp-history-main{align-items:flex-start!important;gap:10px!important}
  body .btp-app .btp-history-copy>small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
  body .btp-app .btp-history-metric{padding:7px 5px!important}
  body .btp-app .btp-history-metric span{letter-spacing:.025em!important}
  body .btp-app .btp-history-actions{grid-template-columns:minmax(0,1fr)!important}
}
@media (max-width:560px){
  body .btp-app .btp-history-actions .btp-ghost:only-child{grid-column:1/-1!important}
}

/* ============================================================================
   v0.45.43 — Prompt library as a compact, filterable list
   ============================================================================ */
body .btp-app .btp-view[data-view="prompts"] .btp-prompts-head{
  align-items:flex-end!important;
  gap:24px!important;
  margin-bottom:20px!important;
}
body .btp-app .btp-view[data-view="prompts"] .btp-prompts-head>div{min-width:0!important}
body .btp-app .btp-view[data-view="prompts"] .btp-prompts-head .btp-primary{
  flex:0 0 auto!important;
  min-height:50px!important;
  padding:0 22px!important;
  border-radius:999px!important;
}
body .btp-app .btp-prompt-toolbar{
  display:grid!important;
  grid-template-columns:minmax(280px,1fr) minmax(210px,260px) auto!important;
  align-items:end!important;
  gap:12px!important;
  margin:0 0 14px!important;
  padding:12px!important;
  border:1px solid rgba(214,163,75,.14)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.86)!important;
  box-shadow:0 12px 30px rgba(12,16,24,.045)!important;
}
body .btp-app .btp-prompt-search{
  min-height:50px!important;
  padding:0 14px!important;
  border:1px solid #e3dfd6!important;
  border-radius:15px!important;
  background:#fff!important;
}
body .btp-app .btp-prompt-search:focus-within{
  border-color:rgba(214,163,75,.72)!important;
  box-shadow:0 0 0 4px rgba(214,163,75,.10)!important;
}
body .btp-app .btp-prompt-search input{
  min-width:0!important;
  font-size:14px!important;
}
body .btp-app .btp-prompt-filter{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
}
body .btp-app .btp-prompt-filter label{
  margin:0 0 0 3px!important;
  color:#8b96a4!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body .btp-app .btp-prompt-filter select{
  width:100%!important;
  min-width:0!important;
  height:50px!important;
  padding:0 42px 0 14px!important;
  border:1px solid #e3dfd6!important;
  border-radius:15px!important;
  background-color:#fff!important;
  color:var(--btp-ink)!important;
  font-size:13px!important;
  font-weight:750!important;
}
body .btp-app .btp-prompt-count{
  display:flex!important;
  align-items:baseline!important;
  justify-content:center!important;
  gap:5px!important;
  min-height:50px!important;
  padding:0 15px!important;
  border:1px solid rgba(214,163,75,.15)!important;
  border-radius:15px!important;
  background:#fbf7ed!important;
  color:#7d8997!important;
  white-space:nowrap!important;
}
body .btp-app .btp-prompt-count strong{
  color:#a86f08!important;
  font-size:18px!important;
  line-height:1!important;
}
body .btp-app .btp-prompt-count span{font-size:12px!important;font-weight:700!important}

body .btp-app .btp-prompt-list-shell{
  overflow:hidden!important;
  border:1px solid rgba(214,163,75,.13)!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 16px 38px rgba(12,16,24,.055)!important;
}
body .btp-app .btp-prompt-list-head{
  display:grid!important;
  grid-template-columns:minmax(320px,1.65fr) minmax(130px,.55fr) 100px minmax(300px,.9fr)!important;
  gap:18px!important;
  align-items:center!important;
  padding:13px 18px!important;
  border-bottom:1px solid #eee9df!important;
  background:#fbfaf7!important;
}
body .btp-app .btp-prompt-list-head span{
  color:#91a0ae!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.13em!important;
  text-transform:uppercase!important;
}
body .btp-app .btp-view[data-view="prompts"] .btp-prompt-grid,
body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list{
  display:block!important;
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
  gap:0!important;
}
body .btp-app .btp-prompt-list-row,
body .btp-app .btp-prompt-card.btp-prompt-list-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(320px,1.65fr) minmax(130px,.55fr) 100px minmax(300px,.9fr)!important;
  align-items:center!important;
  gap:18px!important;
  min-height:92px!important;
  margin:0!important;
  padding:14px 18px!important;
  border:0!important;
  border-bottom:1px solid #f0ece4!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:visible!important;
  transition:background .18s ease,box-shadow .18s ease!important;
}
body .btp-app .btp-prompt-list-row:last-child{border-bottom:0!important}
body .btp-app .btp-prompt-list-row::before{display:none!important}
body .btp-app .btp-prompt-list-row:hover{
  background:#fffdf8!important;
  box-shadow:inset 3px 0 0 rgba(214,163,75,.7)!important;
}
body .btp-app .btp-prompt-list-row[hidden]{display:none!important}
body .btp-app .btp-prompt-main{
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  min-width:0!important;
}
body .btp-app .btp-prompt-list-icon{
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #ead7aa!important;
  border-radius:14px!important;
  background:#fff6df!important;
  color:#a56f00!important;
}
body .btp-app .btp-prompt-list-icon .dashicons{
  width:19px!important;
  height:19px!important;
  font-size:19px!important;
  line-height:19px!important;
}
body .btp-app .btp-prompt-list-copy{min-width:0!important}
body .btp-app .btp-prompt-list-copy h3,
body .btp-app .btp-prompt-card.btp-prompt-list-row h3{
  margin:0 0 5px!important;
  color:var(--btp-ink)!important;
  font-size:15px!important;
  font-weight:850!important;
  line-height:1.25!important;
  text-wrap:pretty!important;
  overflow-wrap:anywhere!important;
}
body .btp-app .btp-prompt-list-copy p,
body .btp-app .btp-prompt-card.btp-prompt-list-row>p{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  margin:0!important;
  color:#8a96a4!important;
  font-size:12px!important;
  line-height:1.45!important;
}
body .btp-app .btp-prompt-list-copy p.is-muted{font-style:italic!important;color:#a0aab4!important}
body .btp-app .btp-prompt-category-cell{min-width:0!important}
body .btp-app .btp-prompt-category-badge{
  display:inline-flex!important;
  align-items:center!important;
  max-width:100%!important;
  min-height:29px!important;
  padding:0 10px!important;
  border:1px solid #eadab6!important;
  border-radius:999px!important;
  background:#fbf6eb!important;
  color:#9b6c13!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.2!important;
  white-space:normal!important;
  text-align:center!important;
}
body .btp-app .btp-prompt-date-cell{
  display:grid!important;
  gap:3px!important;
}
body .btp-app .btp-prompt-date-cell small{
  display:none!important;
  color:#98a3ae!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body .btp-app .btp-prompt-date-cell strong{
  color:#667381!important;
  font-size:12px!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
body .btp-app .btp-prompt-row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  min-width:0!important;
}
body .btp-app .btp-prompt-row-actions button{
  min-height:38px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
}
body .btp-app .btp-prompt-row-actions .btp-edit-prompt{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:0 13px!important;
}
body .btp-app .btp-prompt-row-actions .btp-copy-prompt{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  min-width:132px!important;
  padding:0 15px!important;
  margin:0!important;
}
body .btp-app .btp-prompt-row-actions .btp-delete-prompt{
  flex:0 0 38px!important;
  width:38px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0!important;
  border-radius:50%!important;
  font-size:18px!important;
  line-height:1!important;
}
body .btp-app .btp-prompt-row-actions .dashicons{
  width:16px!important;
  height:16px!important;
  font-size:16px!important;
  line-height:16px!important;
}
body .btp-app .btp-prompt-list-row .btp-prompt-body{display:none!important}
body .btp-app .btp-prompt-no-results{
  padding:42px 20px!important;
  text-align:center!important;
  color:#7e8996!important;
}
body .btp-app .btp-prompt-no-results[hidden]{display:none!important}
body .btp-app .btp-prompt-no-results .dashicons{
  display:block!important;
  width:28px!important;
  height:28px!important;
  margin:0 auto 10px!important;
  color:#b27a12!important;
  font-size:28px!important;
  line-height:28px!important;
}
body .btp-app .btp-prompt-no-results strong{display:block!important;color:var(--btp-ink)!important;font-size:15px!important}
body .btp-app .btp-prompt-no-results p{margin:5px 0 0!important;font-size:12px!important}
body .btp-app .btp-prompt-empty{border:0!important;border-radius:0!important;box-shadow:none!important}

@media (max-width:1180px){
  body .btp-app .btp-prompt-list-head{display:none!important}
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-areas:"main category date" "actions actions actions"!important;
    row-gap:12px!important;
    padding:16px 18px!important;
  }
  body .btp-app .btp-prompt-main{grid-area:main!important}
  body .btp-app .btp-prompt-category-cell{grid-area:category!important}
  body .btp-app .btp-prompt-date-cell{grid-area:date!important}
  body .btp-app .btp-prompt-row-actions{
    grid-area:actions!important;
    justify-content:flex-start!important;
    padding-top:11px!important;
    border-top:1px solid #f1ede5!important;
  }
}

@media (max-width:900px){
  body .btp-app .btp-prompt-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(190px,230px)!important;
  }
  body .btp-app .btp-prompt-count{
    grid-column:1/-1!important;
    justify-content:flex-start!important;
    min-height:38px!important;
  }
}

@media (max-width:720px){
  body .btp-app .btp-view[data-view="prompts"] .btp-prompts-head{
    align-items:stretch!important;
    gap:16px!important;
  }
  body .btp-app .btp-view[data-view="prompts"] .btp-prompts-head .btp-primary{width:100%!important}
  body .btp-app .btp-prompt-toolbar{
    display:grid!important;
    grid-template-columns:1fr!important;
    padding:10px!important;
    border-radius:18px!important;
  }
  body .btp-app .btp-prompt-count{grid-column:auto!important}
  body .btp-app .btp-prompt-list-shell{border-radius:20px!important}
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"main main" "category date" "actions actions"!important;
    gap:10px 12px!important;
    min-height:0!important;
    padding:15px!important;
  }
  body .btp-app .btp-prompt-list-icon{
    flex-basis:38px!important;
    width:38px!important;
    height:38px!important;
    border-radius:12px!important;
  }
  body .btp-app .btp-prompt-list-copy h3,
  body .btp-app .btp-prompt-card.btp-prompt-list-row h3{font-size:14px!important}
  body .btp-app .btp-prompt-category-cell{align-self:center!important}
  body .btp-app .btp-prompt-date-cell{
    justify-self:end!important;
    text-align:right!important;
  }
  body .btp-app .btp-prompt-date-cell small{display:block!important}
  body .btp-app .btp-prompt-row-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px!important;
    gap:7px!important;
    padding-top:11px!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-edit-prompt,
  body .btp-app .btp-prompt-row-actions .btp-copy-prompt{
    width:100%!important;
    min-width:0!important;
    padding:0 10px!important;
  }
}

@media (max-width:430px){
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{padding:14px 12px!important}
  body .btp-app .btp-prompt-main{gap:10px!important}
  body .btp-app .btp-prompt-list-copy p{-webkit-line-clamp:1!important}
  body .btp-app .btp-prompt-row-actions{
    grid-template-columns:1fr 38px!important;
    grid-template-areas:"copy delete" "open open"!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-copy-prompt{grid-area:copy!important}
  body .btp-app .btp-prompt-row-actions .btp-delete-prompt{grid-area:delete!important}
  body .btp-app .btp-prompt-row-actions .btp-edit-prompt{grid-area:open!important}
}

/* ============================================================================
   v0.45.44 — Prompt library viewport hardening + contained scroll areas
   Chrome/Edge/new browser chrome must only change the available viewport;
   the UI below adapts by width and never relies on browser-specific behavior.
   ============================================================================ */

/* Keep the prompt workspace compact even when browser UI steals horizontal room. */
body .btp-app .btp-view[data-view="prompts"]{
  min-width:0!important;
}
body .btp-app .btp-view[data-view="prompts"] .btp-prompts-head{
  align-items:flex-end!important;
  column-gap:20px!important;
  row-gap:14px!important;
}
body .btp-app .btp-view[data-view="prompts"] .btp-prompts-head h2{
  text-wrap:pretty!important;
}
body .btp-app .btp-view[data-view="prompts"] .btp-prompts-head p{
  max-width:78ch!important;
}

/* Filters: predictable sizing and no accidental overflow caused by native controls. */
body .btp-app .btp-prompt-toolbar,
body .btp-app .btp-prompt-toolbar *{
  box-sizing:border-box!important;
}
body .btp-app .btp-prompt-toolbar{
  grid-template-columns:minmax(240px,1fr) minmax(190px,240px) minmax(126px,auto)!important;
  gap:10px!important;
}
body .btp-app .btp-prompt-search,
body .btp-app .btp-prompt-filter,
body .btp-app .btp-prompt-count{
  min-width:0!important;
}

/* Desktop list: six compact rows fit before the inner list starts scrolling. */
body .btp-app .btp-prompt-list-shell{
  overflow:hidden!important;
  min-width:0!important;
  isolation:isolate!important;
}
body .btp-app .btp-prompt-list-head{
  grid-template-columns:minmax(280px,1.65fr) minmax(108px,.5fr) 88px minmax(292px,.9fr)!important;
  gap:14px!important;
  padding:12px 16px!important;
}
body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid,
body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list{
  max-height:540px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(166,116,27,.48) transparent!important;
  scrollbar-gutter:stable!important;
}
body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid::-webkit-scrollbar,
body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list::-webkit-scrollbar{
  width:8px!important;
}
body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid::-webkit-scrollbar-track,
body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list::-webkit-scrollbar-track{
  background:transparent!important;
  margin-block:10px!important;
}
body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid::-webkit-scrollbar-thumb,
body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list::-webkit-scrollbar-thumb{
  min-height:36px!important;
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(166,116,27,.48)!important;
  background-clip:padding-box!important;
}
body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid::-webkit-scrollbar-thumb:hover,
body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list::-webkit-scrollbar-thumb:hover{
  background:rgba(166,116,27,.66)!important;
  background-clip:padding-box!important;
}

body .btp-app .btp-prompt-list-row,
body .btp-app .btp-prompt-card.btp-prompt-list-row{
  grid-template-columns:minmax(280px,1.65fr) minmax(108px,.5fr) 88px minmax(292px,.9fr)!important;
  gap:14px!important;
  min-height:90px!important;
  height:90px!important;
  padding:12px 16px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body .btp-app .btp-prompt-main,
body .btp-app .btp-prompt-list-copy,
body .btp-app .btp-prompt-category-cell,
body .btp-app .btp-prompt-date-cell,
body .btp-app .btp-prompt-row-actions{
  min-width:0!important;
}
body .btp-app .btp-prompt-list-copy h3,
body .btp-app .btp-prompt-card.btp-prompt-list-row h3{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  margin-bottom:4px!important;
}
body .btp-app .btp-prompt-list-copy p,
body .btp-app .btp-prompt-card.btp-prompt-list-row>p{
  -webkit-line-clamp:1!important;
  white-space:normal!important;
}

/* Actions share the available width instead of pushing each other outside the cell. */
body .btp-app .btp-prompt-row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:6px!important;
  width:100%!important;
  overflow:hidden!important;
}
body .btp-app .btp-prompt-row-actions button{
  box-sizing:border-box!important;
  max-width:100%!important;
  min-height:36px!important;
  height:36px!important;
  margin:0!important;
  font-size:12px!important;
  line-height:1!important;
}
body .btp-app .btp-prompt-row-actions .btp-edit-prompt,
body .btp-app .btp-prompt-row-actions .btp-copy-prompt{
  flex:1 1 0!important;
  width:0!important;
  min-width:0!important;
  padding:0 9px!important;
  gap:5px!important;
  overflow:hidden!important;
}
body .btp-app .btp-prompt-row-actions .btp-edit-prompt>span:last-child,
body .btp-app .btp-prompt-row-actions .btp-copy-prompt>span:last-child{
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}
body .btp-app .btp-prompt-row-actions .btp-delete-prompt{
  flex:0 0 36px!important;
  width:36px!important;
  height:36px!important;
  min-height:36px!important;
}
body .btp-app .btp-prompt-row-actions .dashicons{
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
  font-size:15px!important;
  line-height:15px!important;
}

/* Prompt editor: the card itself clips; the scrollbar lives in an inset inner viewport. */
body .btp-app .btp-prompt-editor{
  padding:clamp(12px,2.2vw,26px)!important;
}
body .btp-app .btp-prompt-editor-card{
  display:flex!important;
  flex-direction:column!important;
  width:min(920px,100%)!important;
  max-height:min(90dvh,900px)!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:28px!important;
  box-sizing:border-box!important;
  scrollbar-width:none!important;
  scrollbar-gutter:auto!important;
}
body .btp-app .btp-prompt-editor-card::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
body .btp-app .btp-prompt-editor-scroll{
  min-height:0!important;
  max-height:min(90dvh,900px)!important;
  margin:8px 8px 8px 0!important;
  padding:20px 22px 22px 28px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  border-radius:24px!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(166,116,27,.52) transparent!important;
  scrollbar-gutter:stable!important;
  box-sizing:border-box!important;
}
body .btp-app .btp-prompt-editor-scroll::-webkit-scrollbar{
  width:8px!important;
}
body .btp-app .btp-prompt-editor-scroll::-webkit-scrollbar-track{
  background:transparent!important;
  margin-block:14px!important;
}
body .btp-app .btp-prompt-editor-scroll::-webkit-scrollbar-thumb{
  min-height:42px!important;
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(166,116,27,.52)!important;
  background-clip:padding-box!important;
}
body .btp-app .btp-prompt-editor-scroll::-webkit-scrollbar-thumb:hover{
  background:rgba(166,116,27,.70)!important;
  background-clip:padding-box!important;
}
body .btp-app .btp-prompt-editor-close{
  top:18px!important;
  right:20px!important;
  z-index:4!important;
}
body .btp-app .btp-prompt-editor .btp-message-editor-head{
  padding-right:64px!important;
}
body .btp-app .btp-prompt-form textarea{
  min-height:300px!important;
  max-height:48dvh!important;
  overflow:auto!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(166,116,27,.44) transparent!important;
  scrollbar-gutter:stable!important;
}
body .btp-app .btp-prompt-form textarea::-webkit-scrollbar{width:7px!important;height:7px!important}
body .btp-app .btp-prompt-form textarea::-webkit-scrollbar-track{background:transparent!important;margin-block:8px!important}
body .btp-app .btp-prompt-form textarea::-webkit-scrollbar-thumb{
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(166,116,27,.44)!important;
  background-clip:padding-box!important;
}
body .btp-app .btp-prompt-editor .btp-message-editor-actions{
  gap:10px!important;
  padding-top:4px!important;
}

/* Desktop compacto / notebook: keep table-like rows but reduce nonessential spacing. */
@media (max-width:1380px){
  body .btp-app .btp-prompt-list-head,
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{
    grid-template-columns:minmax(250px,1.55fr) minmax(102px,.48fr) 82px minmax(274px,.88fr)!important;
    gap:10px!important;
  }
  body .btp-app .btp-prompt-list-head{padding-inline:14px!important}
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{padding-inline:14px!important}
  body .btp-app .btp-prompt-row-actions button{font-size:12px!important}
  body .btp-app .btp-prompt-row-actions .btp-edit-prompt,
  body .btp-app .btp-prompt-row-actions .btp-copy-prompt{padding-inline:7px!important}
}

/* Existing 1180 breakpoint moves actions below; give this layout a bounded workspace too. */
@media (max-width:1180px){
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{
    height:auto!important;
    min-height:112px!important;
    overflow:visible!important;
  }
  body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid,
  body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list{
    max-height:min(62dvh,620px)!important;
  }
  body .btp-app .btp-prompt-row-actions{
    overflow:visible!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-edit-prompt,
  body .btp-app .btp-prompt-row-actions .btp-copy-prompt{
    flex:0 1 auto!important;
    width:auto!important;
    min-width:126px!important;
  }
}

/* Tablet: filters and list become easier to scan without making the page endless. */
@media (max-width:900px){
  body .btp-app .btp-prompt-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(180px,220px)!important;
  }
  body .btp-app .btp-prompt-count{
    grid-column:1/-1!important;
    justify-content:flex-start!important;
    min-height:40px!important;
  }
  body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid,
  body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list{
    max-height:min(60dvh,570px)!important;
  }
  body .btp-app .btp-prompt-editor-card{
    width:min(760px,100%)!important;
  }
}

/* Mobile: preserve the compact list and cap its height to avoid a very long page. */
@media (max-width:720px){
  body .btp-app .btp-view[data-view="prompts"] .btp-prompts-head{
    align-items:stretch!important;
    margin-bottom:14px!important;
  }
  body .btp-app .btp-prompt-toolbar{
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
  }
  body .btp-app .btp-prompt-count{
    grid-column:auto!important;
  }
  body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid,
  body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list{
    max-height:min(58dvh,520px)!important;
    scrollbar-gutter:auto!important;
  }
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{
    height:auto!important;
    min-height:0!important;
    padding:14px 13px!important;
    overflow:visible!important;
  }
  body .btp-app .btp-prompt-list-copy p,
  body .btp-app .btp-prompt-card.btp-prompt-list-row>p{
    -webkit-line-clamp:2!important;
  }
  body .btp-app .btp-prompt-row-actions{
    overflow:visible!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-edit-prompt,
  body .btp-app .btp-prompt-row-actions .btp-copy-prompt{
    flex:1 1 0!important;
    width:0!important;
    min-width:0!important;
    min-height:40px!important;
    height:40px!important;
    font-size:12px!important;
  }
  body .btp-app .btp-prompt-editor{
    align-items:flex-end!important;
    padding:8px!important;
  }
  body .btp-app .btp-prompt-editor-card{
    width:100%!important;
    max-height:94dvh!important;
    border-radius:24px 24px 16px 16px!important;
  }
  body .btp-app .btp-prompt-editor-scroll{
    max-height:94dvh!important;
    margin:6px 5px 6px 0!important;
    padding:18px 14px calc(18px + env(safe-area-inset-bottom)) 18px!important;
    border-radius:20px!important;
    scrollbar-width:none!important;
    scrollbar-gutter:auto!important;
  }
  body .btp-app .btp-prompt-editor-scroll::-webkit-scrollbar{display:none!important;width:0!important}
  body .btp-app .btp-prompt-editor-close{
    top:14px!important;
    right:14px!important;
  }
  body .btp-app .btp-prompt-editor .btp-message-editor-head{
    padding-right:50px!important;
  }
  body .btp-app .btp-prompt-form textarea{
    min-height:230px!important;
    max-height:42dvh!important;
    scrollbar-gutter:auto!important;
  }
}

@media (max-width:430px){
  body .btp-app .btp-prompt-row-actions{
    grid-template-columns:minmax(0,1fr) 38px!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-copy-prompt,
  body .btp-app .btp-prompt-row-actions .btp-edit-prompt{
    width:100%!important;
  }
  body .btp-app .btp-prompt-list-icon{
    flex-basis:36px!important;
    width:36px!important;
    height:36px!important;
  }
  body .btp-app .btp-prompt-category-badge{font-size:12px!important}
}

/* v0.45.44 mobile action correction: keep touch targets readable instead of
   squeezing three text actions into one narrow flex row. */
@media (max-width:720px){
  body .btp-app .btp-prompt-row-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px!important;
    grid-template-areas:"open copy delete"!important;
    gap:7px!important;
    width:100%!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-edit-prompt{
    grid-area:open!important;
    width:100%!important;
    min-width:0!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-copy-prompt{
    grid-area:copy!important;
    width:100%!important;
    min-width:0!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-delete-prompt{
    grid-area:delete!important;
  }
}
@media (max-width:430px){
  body .btp-app .btp-prompt-row-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 38px!important;
    grid-template-areas:"copy delete" "open open"!important;
  }
}

/* v0.45.44 tablet/mobile row geometry: override the desktop four-column template
   once the content column becomes narrow (sidebar + browser chrome included). */
@media (max-width:900px){
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"main main" "category date" "actions actions"!important;
    gap:10px 12px!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body .btp-app .btp-prompt-main{grid-area:main!important}
  body .btp-app .btp-prompt-category-cell{grid-area:category!important;min-width:0!important}
  body .btp-app .btp-prompt-date-cell{grid-area:date!important;justify-self:end!important;text-align:right!important}
  body .btp-app .btp-prompt-row-actions{grid-area:actions!important;min-width:0!important;max-width:100%!important}
}

/* Prompt editor uses its own contained scroll viewport, so the generic sticky
   message-editor footer must not float over prompt text on phones. */
body .btp-app .btp-prompt-editor .btp-message-editor-actions{
  position:static!important;
  bottom:auto!important;
  z-index:auto!important;
  background:transparent!important;
  box-shadow:none!important;
  padding-bottom:0!important;
}

/* ============================================================================
   v0.45.45 — bibliotecas compactas: contador alinhado + mensagens em lista
   A biblioteca comercial passa a seguir a mesma hierarquia visual dos prompts.
   ============================================================================ */

/* Contadores: número e legenda ficam visualmente centralizados no próprio card. */
body .btp-app .btp-prompt-count,
body .btp-app .btp-message-count{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-content:center!important;
  gap:6px!important;
  min-height:50px!important;
  height:50px!important;
  padding:0 14px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(214,163,75,.15)!important;
  border-radius:15px!important;
  background:#fbf7ed!important;
  color:#7d8997!important;
  white-space:nowrap!important;
  text-align:center!important;
  line-height:1!important;
}
body .btp-app .btp-prompt-count strong,
body .btp-app .btp-message-count strong{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  color:#a86f08!important;
  font-size:18px!important;
  font-weight:850!important;
  line-height:1!important;
}
body .btp-app .btp-prompt-count span,
body .btp-app .btp-message-count span{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
  padding:1px 0 0!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.15!important;
}

/* Message page header + controls */
body .btp-app .btp-view[data-view="mensagens"]{
  min-width:0!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-messages-head{
  margin-bottom:16px!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-messages-head p{
  max-width:82ch!important;
}
body .btp-app .btp-message-toolbar,
body .btp-app .btp-message-toolbar *{
  box-sizing:border-box!important;
}
body .btp-app .btp-message-toolbar{
  display:grid!important;
  grid-template-columns:minmax(240px,1fr) minmax(190px,240px) minmax(138px,auto)!important;
  align-items:end!important;
  gap:10px!important;
  margin:0 0 10px!important;
  padding:10px 12px!important;
  border:1px solid rgba(214,163,75,.12)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.82)!important;
  box-shadow:0 10px 26px rgba(12,16,24,.05)!important;
}
body .btp-app .btp-message-search{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  min-height:50px!important;
  padding:0 13px!important;
  border:1px solid #e3dfd6!important;
  border-radius:15px!important;
  background:#fff!important;
}
body .btp-app .btp-message-search .dashicons{
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  color:#b88628!important;
  font-size:18px!important;
  line-height:18px!important;
}
body .btp-app .btp-message-search input{
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:var(--btp-ink)!important;
  font-size:13px!important;
}
body .btp-app .btp-message-filter{
  display:grid!important;
  gap:6px!important;
  min-width:0!important;
}
body .btp-app .btp-message-filter label{
  margin:0 0 0 3px!important;
  color:#8b96a4!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body .btp-app .btp-message-filter select{
  width:100%!important;
  min-width:0!important;
  height:50px!important;
  margin:0!important;
  padding:0 42px 0 14px!important;
  border:1px solid #e3dfd6!important;
  border-radius:15px!important;
  background-color:#fff!important;
  color:var(--btp-ink)!important;
  font-size:13px!important;
  font-weight:750!important;
}
body .btp-app .btp-message-safe-note{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  margin:0 0 12px!important;
  padding:10px 13px!important;
  border:1px solid rgba(214,163,75,.16)!important;
  border-radius:14px!important;
  background:#fffaf0!important;
  color:#7d8997!important;
}
body .btp-app .btp-message-safe-note>.dashicons{
  flex:0 0 17px!important;
  width:17px!important;
  height:17px!important;
  color:#a56f00!important;
  font-size:17px!important;
  line-height:17px!important;
}
body .btp-app .btp-message-safe-note p{
  margin:0!important;
  color:#7d8997!important;
  font-size:12px!important;
  line-height:1.45!important;
}
body .btp-app .btp-message-safe-note strong{color:#314052!important}

/* Message list shell */
body .btp-app .btp-message-list-shell{
  min-width:0!important;
  overflow:hidden!important;
  border:1px solid rgba(214,163,75,.13)!important;
  border-radius:24px!important;
  background:#fff!important;
  box-shadow:0 16px 38px rgba(12,16,24,.055)!important;
  isolation:isolate!important;
}
body .btp-app .btp-message-list-head{
  display:grid!important;
  grid-template-columns:minmax(300px,1.65fr) minmax(118px,.5fr) 92px minmax(290px,.9fr)!important;
  gap:14px!important;
  align-items:center!important;
  padding:12px 16px!important;
  border-bottom:1px solid #eee9df!important;
  background:#fbfaf7!important;
}
body .btp-app .btp-message-list-head span{
  color:#91a0ae!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.13em!important;
  text-transform:uppercase!important;
}
body .btp-app .btp-view[data-view="mensagens"] #btp-message-grid,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-list{
  display:block!important;
  max-height:528px!important; /* seis linhas compactas */
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  padding:0 8px 0 0!important;
  margin:0!important;
  gap:0!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(166,116,27,.45) transparent!important;
  scrollbar-gutter:stable!important;
}
body .btp-app .btp-view[data-view="mensagens"] #btp-message-grid::-webkit-scrollbar,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-list::-webkit-scrollbar{width:8px!important}
body .btp-app .btp-view[data-view="mensagens"] #btp-message-grid::-webkit-scrollbar-track,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-list::-webkit-scrollbar-track{background:transparent!important;margin-block:10px!important}
body .btp-app .btp-view[data-view="mensagens"] #btp-message-grid::-webkit-scrollbar-thumb,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-list::-webkit-scrollbar-thumb{
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(166,116,27,.45)!important;
  background-clip:padding-box!important;
}

body .btp-app .btp-message-card.btp-message-list-row,
body .btp-app .btp-message-list-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(300px,1.65fr) minmax(118px,.5fr) 92px minmax(290px,.9fr)!important;
  align-items:center!important;
  gap:14px!important;
  width:100%!important;
  min-width:0!important;
  min-height:88px!important;
  height:88px!important;
  margin:0!important;
  padding:12px 16px!important;
  border:0!important;
  border-bottom:1px solid #f0ece4!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
  transform:none!important;
  box-sizing:border-box!important;
  transition:background .18s ease,box-shadow .18s ease!important;
}
body .btp-app .btp-message-list-row:last-child{border-bottom:0!important}
body .btp-app .btp-message-list-row:hover{
  background:#fffdf8!important;
  box-shadow:inset 3px 0 0 rgba(214,163,75,.7)!important;
  transform:none!important;
}
body .btp-app .btp-message-list-row[hidden]{display:none!important}
body .btp-app .btp-message-main{
  display:flex!important;
  align-items:center!important;
  gap:13px!important;
  min-width:0!important;
}
body .btp-app .btp-message-list-icon{
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #ead7aa!important;
  border-radius:14px!important;
  background:#fff6df!important;
  color:#a56f00!important;
}
body .btp-app .btp-message-list-icon .dashicons{
  width:19px!important;
  height:19px!important;
  font-size:19px!important;
  line-height:19px!important;
}
body .btp-app .btp-message-list-copy{
  min-width:0!important;
  overflow:hidden!important;
}
body .btp-app .btp-message-list-copy h3,
body .btp-app .btp-message-card.btp-message-list-row h3{
  display:block!important;
  margin:0 0 5px!important;
  color:var(--btp-ink)!important;
  font-size:15px!important;
  font-weight:850!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body .btp-app .btp-message-list-row .btp-message-preview{
  display:block!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#8a96a4!important;
  font-size:12px!important;
  line-height:1.4!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body .btp-app .btp-message-list-row .btp-message-preview br{display:none!important}
body .btp-app .btp-message-list-row .btp-message-preview strong{color:inherit!important;font-weight:700!important}
body .btp-app .btp-message-list-row .btp-message-vars{display:none!important}
body .btp-app .btp-message-category-cell,
body .btp-app .btp-message-channel-cell,
body .btp-app .btp-message-row-actions{min-width:0!important}
body .btp-app .btp-message-category-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:29px!important;
  max-width:100%!important;
  padding:0 10px!important;
  border:1px solid #eadab6!important;
  border-radius:999px!important;
  background:#fbf6eb!important;
  color:#9b6c13!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.2!important;
  text-align:center!important;
  white-space:normal!important;
}
body .btp-app .btp-message-list-row .btp-message-channel{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:29px!important;
  padding:0 9px!important;
  font-size:12px!important;
}
body .btp-app .btp-message-row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:6px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
body .btp-app .btp-message-row-actions button{
  box-sizing:border-box!important;
  flex:1 1 0!important;
  width:0!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:36px!important;
  height:36px!important;
  margin:0!important;
  padding:0 9px!important;
  border-radius:999px!important;
  gap:5px!important;
  font-size:12px!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
body .btp-app .btp-message-row-actions button>span:last-child{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body .btp-app .btp-message-row-actions .dashicons{
  flex:0 0 15px!important;
  width:15px!important;
  height:15px!important;
  font-size:15px!important;
  line-height:15px!important;
}
body .btp-app .btp-message-no-results{
  padding:42px 20px!important;
  text-align:center!important;
  color:#7e8996!important;
}
body .btp-app .btp-message-no-results[hidden]{display:none!important}
body .btp-app .btp-message-no-results .dashicons{
  display:block!important;
  width:28px!important;
  height:28px!important;
  margin:0 auto 10px!important;
  color:#b27a12!important;
  font-size:28px!important;
  line-height:28px!important;
}
body .btp-app .btp-message-no-results strong{display:block!important;color:var(--btp-ink)!important;font-size:15px!important}
body .btp-app .btp-message-no-results p{margin:5px 0 0!important;font-size:12px!important}

/* Notebook / tablet: actions gain their own second line before anything overflows. */
@media (max-width:1180px){
  body .btp-app .btp-message-list-head{display:none!important}
  body .btp-app .btp-message-card.btp-message-list-row,
  body .btp-app .btp-message-list-row{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-areas:"main category channel" "actions actions actions"!important;
    gap:10px 12px!important;
    height:auto!important;
    min-height:110px!important;
    padding:14px 16px!important;
    overflow:hidden!important;
  }
  body .btp-app .btp-message-main{grid-area:main!important}
  body .btp-app .btp-message-category-cell{grid-area:category!important}
  body .btp-app .btp-message-channel-cell{grid-area:channel!important}
  body .btp-app .btp-message-row-actions{
    grid-area:actions!important;
    justify-content:flex-start!important;
    padding-top:9px!important;
    border-top:1px solid #f1ede5!important;
    overflow:visible!important;
  }
  body .btp-app .btp-message-row-actions button{
    flex:0 1 auto!important;
    width:auto!important;
    min-width:150px!important;
  }
  body .btp-app .btp-view[data-view="mensagens"] #btp-message-grid,
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-list{
    max-height:min(62dvh,620px)!important;
  }
}

@media (max-width:900px){
  body .btp-app .btp-message-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(180px,220px)!important;
  }
  body .btp-app .btp-message-count{
    grid-column:1/-1!important;
    justify-content:center!important;
    min-height:42px!important;
    height:42px!important;
  }
  body .btp-app .btp-view[data-view="mensagens"] #btp-message-grid,
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-list{
    max-height:min(60dvh,570px)!important;
  }
}

@media (max-width:720px){
  body .btp-app .btp-message-toolbar{
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
    padding:10px!important;
    border-radius:18px!important;
  }
  body .btp-app .btp-message-count{grid-column:auto!important}
  body .btp-app .btp-message-safe-note{
    align-items:flex-start!important;
    padding:10px 11px!important;
  }
  body .btp-app .btp-message-list-shell{border-radius:20px!important}
  body .btp-app .btp-view[data-view="mensagens"] #btp-message-grid,
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-list{
    max-height:min(58dvh,520px)!important;
    padding-right:0!important;
    scrollbar-gutter:auto!important;
  }
  body .btp-app .btp-message-card.btp-message-list-row,
  body .btp-app .btp-message-list-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"main main" "category channel" "actions actions"!important;
    gap:10px 12px!important;
    min-height:0!important;
    padding:14px 13px!important;
  }
  body .btp-app .btp-message-list-icon{
    flex-basis:38px!important;
    width:38px!important;
    height:38px!important;
    border-radius:12px!important;
  }
  body .btp-app .btp-message-list-copy h3,
  body .btp-app .btp-message-card.btp-message-list-row h3{font-size:14px!important}
  body .btp-app .btp-message-category-cell{justify-self:start!important}
  body .btp-app .btp-message-channel-cell{justify-self:end!important}
  body .btp-app .btp-message-row-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:7px!important;
    width:100%!important;
  }
  body .btp-app .btp-message-row-actions button{
    width:100%!important;
    min-width:0!important;
    min-height:40px!important;
    height:40px!important;
    padding:0 9px!important;
  }
  body .btp-app .btp-message-row-actions .btp-copy-message:only-child{
    grid-column:1/-1!important;
  }
}

@media (max-width:430px){
  body .btp-app .btp-message-list-copy .btp-message-preview{
    font-size:12px!important;
  }
  body .btp-app .btp-message-category-badge{font-size:12px!important}
  body .btp-app .btp-message-row-actions{
    grid-template-columns:1fr!important;
  }
}

/* v0.45.46 — message action balance when copy is the only available action */
body .btp-app .btp-message-row-actions .btp-copy-message:only-child{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:158px!important;
  max-width:190px!important;
  padding-inline:16px!important;
}

@media (max-width:1180px) and (min-width:721px){
  body .btp-app .btp-message-row-actions .btp-copy-message:only-child{
    min-width:158px!important;
    width:auto!important;
  }
}

@media (max-width:720px){
  body .btp-app .btp-message-row-actions .btp-copy-message:only-child{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    flex:auto!important;
  }
}

/* ============================================================================
   v0.46.0 — Prospect para serviços digitais + Biblioteca Prospect
   Regras finais responsivas. Mantém o design system preto/dourado/creme e
   evita depender da largura nominal da janela: o layout se adapta à área útil.
   ============================================================================ */
body .btp-app [hidden]{display:none!important}

/* Perfil comercial e seleção de serviços */
body .btp-app .btp-settings-layout--user .btp-services-card,
body .btp-app .btp-settings-layout--user .btp-recurring-values-card{grid-column:1/-1!important}
body .btp-app .btp-service-picker{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:9px!important;
  margin-top:14px!important;
}
body .btp-app .btp-service-option{
  position:relative!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;
  min-width:0!important;min-height:58px!important;padding:10px 11px!important;border:1px solid #e7e1d6!important;border-radius:16px!important;background:#fff!important;
  color:#344252!important;cursor:pointer!important;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
body .btp-app .btp-service-option:hover{border-color:#d8b66d!important;background:#fffaf0!important;transform:translateY(-1px)!important}
body .btp-app .btp-service-option input{position:absolute!important;opacity:0!important;pointer-events:none!important}
body .btp-app .btp-service-option>.dashicons{display:flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;border-radius:11px!important;background:#fbf4e3!important;color:#a97516!important;font-size:17px!important}
body .btp-app .btp-service-option strong{min-width:0!important;font-size:12px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
body .btp-app .btp-service-option:has(input:checked){border-color:#d3a64c!important;background:linear-gradient(180deg,#fffaf0,#fff5dd)!important;box-shadow:0 8px 20px rgba(184,126,26,.09)!important}
body .btp-app .btp-service-option:has(input:checked)>.dashicons{background:#e6b853!important;color:#172434!important}
body .btp-app .btp-primary-service-field{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;margin-top:15px!important;max-width:560px!important}
body .btp-app .btp-primary-service-field small{color:#8994a0!important;font-size:12px!important}
body .btp-app .btp-commercial-profile-card .btp-field,
body .btp-app .btp-sales-identity-card .btp-field{display:grid!important;gap:7px!important}

/* Busca: quatro entradas principais sem apertar demais em notebooks. */
body .btp-app .btp-search-core{grid-template-columns:minmax(190px,1.2fr) minmax(180px,1fr) minmax(180px,1fr) minmax(130px,.55fr)!important}

/* Contexto do serviço no lead */
body .btp-app .btp-service-focus-tag{
  display:inline-flex!important;align-items:center!important;width:max-content!important;max-width:100%!important;margin:0 0 6px!important;padding:4px 7px!important;
  border:1px solid #ead9b5!important;border-radius:999px!important;background:#fff8e8!important;color:#9b6a11!important;font-size:12px!important;font-weight:900!important;line-height:1!important;letter-spacing:.03em!important;text-transform:uppercase!important;
}
body .btp-app .btp-history-service{display:inline-flex!important;width:max-content!important;max-width:100%!important;margin-top:5px!important;padding:4px 7px!important;border-radius:999px!important;background:#fbf4e3!important;color:#9b6d17!important;font-size:12px!important;font-weight:850!important;line-height:1!important}

/* Biblioteca Prospect */
body .btp-app .btp-view[data-view="biblioteca"]{min-width:0!important}
body .btp-app .btp-library-head{margin-bottom:14px!important}
body .btp-app .btp-library-head p{max-width:88ch!important}
body .btp-app .btp-library-toolbar,
body .btp-app .btp-library-toolbar *{box-sizing:border-box!important}
body .btp-app .btp-library-toolbar{
  display:grid!important;grid-template-columns:minmax(280px,1fr) minmax(170px,220px) minmax(150px,200px) minmax(118px,auto)!important;align-items:end!important;gap:10px!important;
  margin:0 0 10px!important;padding:11px 12px!important;border:1px solid rgba(214,163,75,.14)!important;border-radius:20px!important;background:rgba(255,255,255,.84)!important;box-shadow:0 10px 28px rgba(17,24,35,.045)!important;
}
body .btp-app .btp-library-search{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;height:50px!important;padding:0 13px!important;border:1px solid #e1e3e6!important;border-radius:15px!important;background:#fff!important}
body .btp-app .btp-library-search>.dashicons{flex:0 0 auto!important;color:#b77f19!important}
body .btp-app .btp-library-search input{min-width:0!important;width:100%!important;height:46px!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:#283443!important}
body .btp-app .btp-library-toolbar>label:not(.btp-library-search){display:grid!important;gap:5px!important;min-width:0!important;color:#8994a1!important;font-size:12px!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important}
body .btp-app .btp-library-toolbar select{width:100%!important;height:50px!important;min-width:0!important;padding:0 34px 0 13px!important;border:1px solid #e1e3e6!important;border-radius:15px!important;background:#fff!important;color:#24303e!important;font-size:12px!important;font-weight:800!important;box-shadow:none!important}
body .btp-app .btp-library-count{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;height:50px!important;padding:0 13px!important;border:1px solid rgba(214,163,75,.15)!important;border-radius:15px!important;background:#fbf7ed!important;white-space:nowrap!important}
body .btp-app .btp-library-count strong{color:#a86f08!important;font-size:18px!important;line-height:1!important}
body .btp-app .btp-library-count span{color:#7c8896!important;font-size:12px!important;font-weight:750!important;line-height:1.15!important}
body .btp-app .btp-library-shell{padding:0!important;overflow:hidden!important;border-radius:22px!important}
body .btp-app .btp-library-list{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;max-height:min(61vh,570px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;scrollbar-color:rgba(170,119,29,.45) transparent!important;
}
body .btp-app .btp-library-list::-webkit-scrollbar{width:8px!important}
body .btp-app .btp-library-list::-webkit-scrollbar-track{background:transparent!important}
body .btp-app .btp-library-list::-webkit-scrollbar-thumb{background:rgba(170,119,29,.42)!important;border:2px solid transparent!important;background-clip:padding-box!important;border-radius:999px!important}
body .btp-app .btp-library-item{
  display:grid!important;grid-template-columns:44px minmax(0,1fr) minmax(210px,auto)!important;align-items:center!important;gap:12px!important;min-width:0!important;min-height:96px!important;padding:13px 15px!important;border-bottom:1px solid #ece9e2!important;background:#fff!important;
}
body .btp-app .btp-library-item:last-child{border-bottom:0!important}
body .btp-app .btp-library-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:42px!important;border:1px solid #eadab8!important;border-radius:13px!important;background:#fff7e5!important;color:#a77214!important}
body .btp-app .btp-library-meta{min-width:0!important}
body .btp-app .btp-library-meta h3{margin:6px 0 3px!important;color:#14202e!important;font-size:14px!important;line-height:1.24!important}
body .btp-app .btp-library-meta p{display:-webkit-box!important;overflow:hidden!important;margin:0 0 4px!important;color:#8a96a4!important;font-size:12px!important;line-height:1.35!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}
body .btp-app .btp-library-meta small{color:#a0a9b3!important;font-size:12px!important}
body .btp-app .btp-library-badges{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px!important}
body .btp-app .btp-library-badges span,
body .btp-app .btp-library-badges em{display:inline-flex!important;align-items:center!important;min-height:22px!important;padding:0 7px!important;border:1px solid #eadfca!important;border-radius:999px!important;background:#fbf7ee!important;color:#8f671d!important;font-size:12px!important;font-weight:900!important;font-style:normal!important;line-height:1!important;text-transform:uppercase!important;letter-spacing:.035em!important}
body .btp-app .btp-library-badges em.is-pro{border-color:#cfaa5b!important;background:#19293b!important;color:#efca77!important}
body .btp-app .btp-library-badges em.is-free{background:#f6f7f4!important;color:#60705f!important}
body .btp-app .btp-library-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:7px!important;min-width:0!important;max-width:390px!important}
body .btp-app .btp-library-actions .btp-mini,
body .btp-app .btp-library-actions .btp-primary,
body .btp-app .btp-library-actions a{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:38px!important;height:38px!important;width:auto!important;min-width:0!important;padding:0 12px!important;border-radius:999px!important;font-size:12px!important;font-weight:850!important;white-space:nowrap!important;text-decoration:none!important}
body .btp-app .btp-library-actions .dashicons{width:14px!important;height:14px!important;font-size:14px!important;line-height:14px!important}
body .btp-app .btp-library-empty,
body .btp-app .btp-library-no-results{display:grid!important;place-items:center!important;gap:8px!important;min-height:270px!important;padding:30px!important;text-align:center!important;color:#82909f!important}
body .btp-app .btp-library-empty strong,
body .btp-app .btp-library-no-results strong{color:#1b2735!important;font-size:17px!important}
body .btp-app .btp-library-empty p,
body .btp-app .btp-library-no-results p{max-width:560px!important;margin:0!important}

/* Leitor oficial: scrollbar fica dentro do viewport, nunca sobre a borda do modal. */
body .btp-app .btp-library-reader{position:fixed!important;inset:0!important;z-index:100120!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:32px!important;background:rgba(9,16,25,.72)!important;backdrop-filter:blur(9px)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .18s ease,visibility .18s ease!important}
body .btp-app .btp-library-reader.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
body .btp-app .btp-library-reader-card{position:relative!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;width:min(1060px,94vw)!important;max-height:min(88dvh,900px)!important;min-height:0!important;padding:34px 34px 28px!important;border:1px solid #e8dfce!important;border-radius:30px!important;background:#fff!important;box-shadow:0 30px 100px rgba(7,14,23,.30)!important;overflow:hidden!important}
body .btp-app .btp-library-reader-close{position:absolute!important;top:20px!important;right:20px!important;z-index:4!important;display:flex!important;align-items:center!important;justify-content:center!important;width:48px!important;height:48px!important;border:1px solid rgba(218,174,80,.35)!important;border-radius:50%!important;background:#101c2a!important;color:#edc66e!important;font-size:22px!important;line-height:1!important;cursor:pointer!important;box-shadow:0 12px 30px rgba(11,20,31,.18)!important}
body .btp-app .btp-library-reader-head{padding:2px 70px 22px 0!important}
body .btp-app .btp-library-reader-head>span{color:#a57012!important;font-size:12px!important;font-weight:900!important;letter-spacing:.17em!important}
body .btp-app .btp-library-reader-head h3{margin:8px 0 7px!important;color:#172231!important;font-size:32px!important;font-weight:500!important;line-height:1.12!important}
body .btp-app .btp-library-reader-head p{max-width:760px!important;margin:0!important;color:#83909f!important;font-size:15px!important;line-height:1.45!important}
body .btp-app .btp-library-reader-body{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;min-height:0!important;overflow:auto!important;padding:2px 7px 4px 2px!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;scrollbar-width:thin!important;scrollbar-color:rgba(170,119,29,.5) transparent!important}
body .btp-app .btp-library-reader-body::-webkit-scrollbar{width:8px!important}
body .btp-app .btp-library-reader-body::-webkit-scrollbar-thumb{background:rgba(170,119,29,.48)!important;border:2px solid transparent!important;background-clip:padding-box!important;border-radius:999px!important}
body .btp-app .btp-library-reader-field{display:grid!important;gap:7px!important;min-width:0!important;color:#596675!important}
body .btp-app .btp-library-reader-field>strong{font-size:13px!important;font-weight:850!important;color:#5b6877!important}
body .btp-app .btp-library-readonly,body .btp-app .btp-library-reader-content{width:100%!important;min-width:0!important;border:1px solid #ded8ce!important;border-radius:18px!important;background:#fff!important;color:#172231!important;box-sizing:border-box!important;box-shadow:none!important}
body .btp-app .btp-library-readonly{display:flex!important;align-items:center!important;min-height:58px!important;padding:15px 17px!important;font-size:14px!important;font-weight:800!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important}
body .btp-app .btp-library-readonly.is-summary{font-weight:650!important;color:#344150!important}
body .btp-app .btp-library-reader-field.is-content{min-height:0!important}
body .btp-app .btp-library-reader-content{display:block!important;min-height:250px!important;height:min(40dvh,390px)!important;max-height:430px!important;padding:17px 18px!important;resize:none!important;overflow:auto!important;font:650 13px/1.55 inherit!important;white-space:pre-wrap!important;outline:none!important;scrollbar-gutter:stable!important;scrollbar-width:thin!important;scrollbar-color:rgba(170,119,29,.5) transparent!important}
body .btp-app .btp-library-reader-content::-webkit-scrollbar{width:8px!important}
body .btp-app .btp-library-reader-content::-webkit-scrollbar-thumb{background:rgba(170,119,29,.48)!important;border:2px solid transparent!important;background-clip:padding-box!important;border-radius:999px!important}
body .btp-app .btp-library-reader-actions{display:flex!important;justify-content:flex-end!important;padding-top:18px!important}
body .btp-app .btp-library-reader-actions .btp-primary{width:auto!important;min-width:230px!important;min-height:52px!important;border-radius:999px!important}
body .btp-app .btp-library-download.is-downloading{pointer-events:none!important;opacity:.82!important}

/* Garante que os contadores compactos não pareçam desalinhados. */
body .btp-app .btp-prompt-count,
body .btp-app .btp-message-count{justify-self:stretch!important;min-width:128px!important}

@media (max-width:1450px){
  body .btp-app .btp-service-picker{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body .btp-app .btp-library-item{grid-template-columns:42px minmax(0,1fr)!important;grid-template-areas:"icon copy" "actions actions"!important}
  body .btp-app .btp-library-icon{grid-area:icon!important}
  body .btp-app .btp-library-meta{grid-area:copy!important}
  body .btp-app .btp-library-actions{grid-area:actions!important;justify-content:flex-end!important;max-width:none!important;padding-left:54px!important}
}
@media (max-width:1180px){
  body .btp-app .btp-service-picker{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-search-core{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-library-toolbar{grid-template-columns:minmax(0,1fr) minmax(165px,210px) minmax(120px,170px)!important}
  body .btp-app .btp-library-count{grid-column:3!important;grid-row:1!important;align-self:end!important}
  body .btp-app .btp-library-toolbar>label:nth-of-type(3){grid-column:2!important}
}
@media (max-width:980px){
  body .btp-app .btp-library-toolbar{grid-template-columns:minmax(0,1fr) minmax(150px,210px)!important}
  body .btp-app .btp-library-search{grid-column:1/-1!important}
  body .btp-app .btp-library-count{grid-column:auto!important;grid-row:auto!important}
  body .btp-app .btp-library-toolbar>label:nth-of-type(3){grid-column:auto!important}
  body .btp-app .btp-library-item{min-height:0!important;padding:13px!important}
  body .btp-app .btp-library-actions{padding-left:52px!important;justify-content:flex-start!important}
}
@media (max-width:820px){
  body .btp-app .btp-service-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-history-service{margin-top:4px!important}
  body .btp-app .btp-library-list{max-height:min(60dvh,560px)!important;scrollbar-gutter:auto!important}
}
@media (max-width:720px){
  body .btp-app .btp-search-core{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-service-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body .btp-app .btp-service-option{grid-template-columns:30px minmax(0,1fr)!important;min-height:54px!important;padding:9px!important;border-radius:14px!important}
  body .btp-app .btp-service-option>.dashicons{width:30px!important;height:30px!important;border-radius:10px!important}
  body .btp-app .btp-library-toolbar{grid-template-columns:minmax(0,1fr)!important;padding:10px!important;border-radius:18px!important}
  body .btp-app .btp-library-search,
  body .btp-app .btp-library-toolbar select,
  body .btp-app .btp-library-count{height:46px!important;min-height:46px!important}
  body .btp-app .btp-library-toolbar>label:nth-of-type(3){grid-column:auto!important}
  body .btp-app .btp-library-count{grid-column:auto!important;grid-row:auto!important;justify-self:stretch!important}
  body .btp-app .btp-library-shell{border-radius:20px!important}
  body .btp-app .btp-library-list{max-height:min(58dvh,520px)!important}
  body .btp-app .btp-library-item{grid-template-columns:38px minmax(0,1fr)!important;gap:9px!important;padding:12px 11px!important}
  body .btp-app .btp-library-icon{width:38px!important;height:38px!important;border-radius:12px!important}
  body .btp-app .btp-library-meta h3{font-size:13px!important}
  body .btp-app .btp-library-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;padding-left:47px!important}
  body .btp-app .btp-library-actions>*{width:100%!important;min-width:0!important;padding-inline:8px!important;white-space:normal!important;text-align:center!important;line-height:1.15!important}
  body .btp-app .btp-library-reader{align-items:flex-end!important;padding:0!important}
  body .btp-app .btp-library-reader-card{width:100%!important;max-height:88dvh!important;padding:20px 14px calc(14px + env(safe-area-inset-bottom))!important;border-radius:24px 24px 0 0!important}
  body .btp-app .btp-library-reader-close{top:12px!important;right:12px!important;width:40px!important;height:40px!important}
  body .btp-app .btp-library-reader-head{padding:2px 48px 13px 2px!important}
  body .btp-app .btp-library-reader-head h3{font-size:22px!important}
  body .btp-app .btp-library-reader-card pre{padding:13px!important;border-radius:15px!important;font-size:12px!important;scrollbar-gutter:auto!important}
  body .btp-app .btp-library-reader-actions{padding-top:10px!important}
  body .btp-app .btp-library-reader-actions .btp-primary{width:100%!important}
}
@media (max-width:430px){
  body .btp-app .btp-service-picker{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-service-option{min-height:50px!important}
  body .btp-app .btp-library-actions{grid-template-columns:minmax(0,1fr)!important;padding-left:47px!important}
  body .btp-app .btp-library-badges{gap:4px!important}
  body .btp-app .btp-library-meta p{-webkit-line-clamp:1!important}
}
body .btp-app .btp-library-badges b.is-new{display:inline-flex!important;align-items:center!important;min-height:22px!important;padding:0 7px!important;border:1px solid #d6aa4d!important;border-radius:999px!important;background:#e9ba59!important;color:#172434!important;font-size:12px!important;font-weight:950!important;line-height:1!important;letter-spacing:.05em!important}

/* ========================================================================== 
   v0.46.1 — interaction QA, branded selects, Figma icons and library fixes
   ========================================================================== */
body .btp-app .btp-figma-icon{
  display:block!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  object-fit:contain!important;
  pointer-events:none!important;
  user-select:none!important;
}
body .btp-app .btp-action-figma-icon{width:17px!important;height:17px!important}
body .btp-app .btp-icon-action .btp-figma-icon{margin:auto!important}
body .btp-app .btp-message-list-icon .btp-figma-icon,
body .btp-app .btp-library-icon .btp-figma-icon{width:20px!important;height:20px!important}
body .btp-app .btp-message-safe-icon{width:17px!important;height:17px!important}

/* Native select UI is kept only as a form value; users interact with this branded menu. */
body .btp-app .btp-brand-select{position:relative!important;width:100%!important;margin-top:6px!important;z-index:12!important}
body .btp-app .btp-brand-select-native{
  position:absolute!important;
  width:1px!important;height:1px!important;
  opacity:0!important;pointer-events:none!important;
  clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;
}
body .btp-app .btp-brand-select-trigger{
  width:100%!important;min-height:48px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;
  padding:0 16px!important;border:1px solid #d9dee5!important;border-radius:16px!important;
  background:#fff!important;color:#172131!important;
  font:700 13px/1.25 inherit!important;text-align:left!important;cursor:pointer!important;
  box-shadow:0 1px 0 rgba(16,27,40,.02)!important;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
body .btp-app .btp-brand-select-trigger:hover{border-color:#d4b36a!important;background:#fffdf8!important}
body .btp-app .btp-brand-select.is-open .btp-brand-select-trigger,
body .btp-app .btp-brand-select-trigger:focus-visible{border-color:#c99532!important;box-shadow:0 0 0 4px rgba(210,159,58,.14)!important;outline:0!important}
body .btp-app .btp-brand-select-chevron{width:9px!important;height:9px!important;border-right:2px solid #8c6923!important;border-bottom:2px solid #8c6923!important;transform:rotate(45deg) translateY(-2px)!important;transition:transform .18s ease!important;flex:0 0 auto!important}
body .btp-app .btp-brand-select.is-open .btp-brand-select-chevron{transform:rotate(225deg) translate(-2px,-2px)!important}
body .btp-app .btp-brand-select-menu{
  position:absolute!important;left:0!important;right:0!important;top:calc(100% + 7px)!important;z-index:260!important;
  max-height:290px!important;overflow:auto!important;overscroll-behavior:contain!important;
  padding:7px!important;border:1px solid #eadfc7!important;border-radius:16px!important;
  background:#fffdf9!important;box-shadow:0 18px 46px rgba(18,28,40,.16)!important;
  scrollbar-width:thin!important;scrollbar-color:#d6aa52 #f7f1e5!important;
}
body .btp-app .btp-brand-select-menu[hidden]{display:none!important}
body .btp-app .btp-brand-select-menu::-webkit-scrollbar{width:7px!important}
body .btp-app .btp-brand-select-menu::-webkit-scrollbar-track{background:#f7f1e5!important;border-radius:12px!important}
body .btp-app .btp-brand-select-menu::-webkit-scrollbar-thumb{background:#d6aa52!important;border-radius:12px!important}
body .btp-app .btp-brand-select-menu button{
  width:100%!important;min-height:39px!important;display:flex!important;align-items:center!important;
  padding:9px 11px!important;border:0!important;border-radius:11px!important;background:transparent!important;
  color:#5e6876!important;font:600 12px/1.25 inherit!important;text-align:left!important;cursor:pointer!important;
}
body .btp-app .btp-brand-select-menu button:hover{background:#fbf3df!important;color:#172131!important}
body .btp-app .btp-brand-select-menu button.is-selected{background:#f6e7bd!important;color:#172131!important;font-weight:800!important}
body .btp-app .btp-brand-select-menu button.is-selected::after{content:"✓"!important;margin-left:auto!important;color:#9a6b14!important;font-weight:900!important}
body .btp-app .btp-brand-select-menu button.is-disabled{opacity:.36!important;cursor:not-allowed!important;background:transparent!important}

body .btp-app .btp-commercial-context-preview{
  display:flex!important;align-items:flex-start!important;gap:11px!important;margin-top:12px!important;padding:12px 13px!important;
  border:1px solid #eee2ca!important;border-radius:14px!important;background:#fffaf0!important;color:#6d7784!important;
}
body .btp-app .btp-commercial-context-preview>.btp-figma-icon{width:18px!important;height:18px!important;margin-top:2px!important;flex:0 0 auto!important}
body .btp-app .btp-commercial-context-preview div{min-width:0!important}
body .btp-app .btp-commercial-context-preview span{display:block!important;margin-bottom:3px!important;color:#9f6c12!important;font-size:12px!important;line-height:1.2!important;letter-spacing:.11em!important;font-weight:900!important}
body .btp-app .btp-commercial-context-preview p{margin:0!important;color:#253143!important;font-size:12px!important;line-height:1.45!important;font-weight:700!important}
body .btp-app .btp-commercial-context-preview small{display:block!important;margin-top:5px!important;color:#8c96a2!important;font-size:12px!important;line-height:1.35!important}

body .btp-app .btp-service-option{position:relative!important;overflow:hidden!important;padding-right:34px!important;cursor:pointer!important}
body .btp-app .btp-service-option-icon{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:11px!important;background:#fff5dc!important;flex:0 0 auto!important}
body .btp-app .btp-service-option-icon .btp-figma-icon{width:17px!important;height:17px!important}
body .btp-app .btp-service-option input{position:absolute!important;opacity:0!important;pointer-events:none!important}
body .btp-app .btp-service-option.is-selected,
body .btp-app .btp-service-option:has(input:checked){border-color:#d59e37!important;background:linear-gradient(180deg,#fff9e9,#fff5dc)!important;box-shadow:0 7px 18px rgba(193,137,31,.08)!important}
body .btp-app .btp-service-selected-mark{position:absolute!important;right:11px!important;top:50%!important;transform:translateY(-50%) scale(.75)!important;display:grid!important;place-items:center!important;width:19px!important;height:19px!important;border-radius:50%!important;background:#dca83e!important;color:#14202e!important;font-size:12px!important;font-weight:900!important;opacity:0!important;transition:opacity .16s ease,transform .16s ease!important}
body .btp-app .btp-service-option.is-selected .btp-service-selected-mark,
body .btp-app .btp-service-option:has(input:checked) .btp-service-selected-mark{opacity:1!important;transform:translateY(-50%) scale(1)!important}

/* Biblioteca Prospect: metadata is inert; only explicit action buttons are clickable. */
body .btp-app .btp-library-meta{min-width:0!important;cursor:default!important}
body .btp-app .btp-library-meta h3{margin:6px 0 3px!important;color:#14202e!important;font-size:14px!important;line-height:1.24!important}
body .btp-app .btp-library-meta p{display:-webkit-box!important;overflow:hidden!important;margin:0 0 4px!important;color:#8a96a4!important;font-size:12px!important;line-height:1.35!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}
body .btp-app .btp-library-meta small{color:#a0a9b3!important;font-size:12px!important}
body .btp-app .btp-library-badges{pointer-events:none!important;user-select:none!important}
body .btp-app .btp-library-badges>*{pointer-events:none!important;cursor:default!important}
body .btp-app .btp-library-no-results[hidden],
body .btp-app [hidden].btp-library-no-results{display:none!important}
body .btp-app .btp-library-item[hidden]{display:none!important}
body .btp-app .btp-library-save-prompt.is-saved{background:#152333!important;color:#f5d276!important;border-color:#152333!important}
body .btp-app .btp-library-actions .btp-figma-icon{width:15px!important;height:15px!important}

/* Browser/sidebar safety: actions wrap before they overflow. */
body .btp-app .btp-library-actions,
body .btp-app .btp-message-row-actions{min-width:0!important;max-width:100%!important}
body .btp-app .btp-library-actions>*{max-width:100%!important;white-space:nowrap!important}

@media(max-width:1180px){
  body .btp-app .btp-settings-layout--user{gap:16px!important}
  body .btp-app .btp-service-picker{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-library-meta{grid-area:copy!important}
}
@media(max-width:820px){
  body .btp-app .btp-service-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-brand-select-menu{position:fixed!important;left:18px!important;right:18px!important;top:auto!important;bottom:18px!important;max-height:min(55vh,360px)!important;z-index:9999!important}
}
@media(max-width:560px){
  body .btp-app .btp-service-picker{grid-template-columns:1fr!important}
  body .btp-app .btp-service-option{min-height:52px!important}
  body .btp-app .btp-brand-select-trigger{min-height:46px!important;border-radius:14px!important}
  body .btp-app .btp-commercial-context-preview{padding:11px!important}
  body .btp-app .btp-library-meta h3{font-size:13px!important}
  body .btp-app .btp-library-meta p{-webkit-line-clamp:2!important}
}
body .btp-app .btp-kpi-icon .btp-figma-icon{width:18px!important;height:18px!important}

/* Figma icon language in the main navigation. The SVG geometry comes from the
   Prospect icon set; a brand filter keeps it legible on the dark sidebar. */
body .btp-app .btp-sidebar nav.btp-nav img.btp-nav-figma-icon{
  width:19px!important;height:19px!important;min-width:19px!important;flex:0 0 19px!important;
  object-fit:contain!important;
  filter:brightness(0) saturate(100%) invert(77%) sepia(44%) saturate(663%) hue-rotate(357deg) brightness(96%) contrast(89%)!important;
  opacity:.95!important;
}
body .btp-app .btp-sidebar nav.btp-nav button.is-active img.btp-nav-figma-icon{
  filter:brightness(0) saturate(100%) invert(89%) sepia(40%) saturate(692%) hue-rotate(342deg) brightness(105%) contrast(101%)!important;
  opacity:1!important;
}
@media(max-width:820px){
  body .btp-app .btp-sidebar nav.btp-nav img.btp-nav-figma-icon{width:18px!important;height:18px!important;min-width:18px!important;margin:0 auto!important}
}


/* v0.46.2 — Biblioteca Prospect read-only viewer + download reliability */
@media (max-width: 760px){
  body .btp-app .btp-library-reader{align-items:flex-end!important;padding:0!important}
  body .btp-app .btp-library-reader-card{width:100%!important;max-height:92dvh!important;padding:20px 14px calc(14px + env(safe-area-inset-bottom))!important;border-radius:24px 24px 0 0!important}
  body .btp-app .btp-library-reader-close{top:12px!important;right:12px!important;width:40px!important;height:40px!important}
  body .btp-app .btp-library-reader-head{padding:2px 48px 14px 2px!important}
  body .btp-app .btp-library-reader-head h3{font-size:24px!important}
  body .btp-app .btp-library-reader-head p{font-size:12px!important}
  body .btp-app .btp-library-reader-body{gap:10px!important;padding-right:3px!important;scrollbar-gutter:auto!important}
  body .btp-app .btp-library-readonly{min-height:50px!important;padding:12px 13px!important;border-radius:15px!important;font-size:12px!important}
  body .btp-app .btp-library-reader-content{min-height:210px!important;height:min(38dvh,320px)!important;padding:13px!important;border-radius:15px!important;font-size:12px!important;scrollbar-gutter:auto!important}
  body .btp-app .btp-library-reader-actions{padding-top:12px!important}
  body .btp-app .btp-library-reader-actions .btp-primary{width:100%!important;min-width:0!important;min-height:48px!important}
}
@media (min-width:761px) and (max-width:1180px){
  body .btp-app .btp-library-reader-card{width:min(920px,94vw)!important;padding:28px 26px 24px!important}
  body .btp-app .btp-library-reader-head h3{font-size:28px!important}
  body .btp-app .btp-library-reader-content{height:min(38dvh,350px)!important}
}

/* ============================================================================
   v0.46.3 — mensagens por serviço + refinamento de Biblioteca Prospect
   ============================================================================ */
body .btp-app .btp-message-toolbar{
  grid-template-columns:minmax(260px,1fr) minmax(160px,210px) minmax(160px,210px) minmax(132px,auto)!important;
  overflow:visible!important;
}
body .btp-app .btp-message-filter .btp-brand-select{margin-top:0!important;z-index:30!important}
body .btp-app .btp-message-filter .btp-brand-select-trigger{min-height:50px!important;height:50px!important;border-radius:15px!important;padding:0 14px!important}
body .btp-app .btp-message-filter .btp-brand-select-menu{z-index:80!important}
body .btp-app .btp-message-search-icon{width:18px!important;height:18px!important;flex:0 0 18px!important;filter:brightness(0) saturate(100%) invert(53%) sepia(62%) saturate(598%) hue-rotate(359deg) brightness(90%) contrast(89%)!important}
body .btp-app .btp-message-title-line{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;margin:0 0 5px!important}
body .btp-app .btp-message-title-line h3{min-width:0!important;margin:0!important;flex:0 1 auto!important}
body .btp-app .btp-message-service-badge{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;max-width:150px!important;min-height:21px!important;padding:0 7px!important;
  border:1px solid #ead9b4!important;border-radius:999px!important;background:#fff8e8!important;color:#976812!important;font-size:12px!important;font-weight:900!important;line-height:1!important;letter-spacing:.025em!important;text-transform:uppercase!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body .btp-app .btp-message-empty-icon{display:block!important;width:28px!important;height:28px!important;margin:0 auto 10px!important;filter:brightness(0) saturate(100%) invert(53%) sepia(62%) saturate(598%) hue-rotate(359deg) brightness(90%) contrast(89%)!important}
body .btp-app .btp-message-safe-icon{width:17px!important;height:17px!important;flex:0 0 17px!important;filter:brightness(0) saturate(100%) invert(45%) sepia(66%) saturate(658%) hue-rotate(357deg) brightness(92%) contrast(93%)!important}
body .btp-app .btp-message-row-actions .btp-action-figma-icon{width:15px!important;height:15px!important;flex:0 0 15px!important}

/* The services grid responds to the real content width, which behaves better in
   browsers with vertical sidebars than viewport-only breakpoints. */
body .btp-app .btp-service-picker{grid-template-columns:repeat(auto-fit,minmax(205px,1fr))!important}
body .btp-app .btp-services-card{overflow:visible!important}
body .btp-app .btp-primary-service-field{position:relative!important;z-index:18!important}

/* Read-only official prompt viewer mirrors the personal prompt editor without
   exposing any editable control. */
body .btp-app .btp-library-reader.is-prompt .btp-library-reader-card{width:min(1080px,94vw)!important}
body .btp-app .btp-library-reader.is-prompt .btp-library-reader-head>span{letter-spacing:.18em!important}
body .btp-app .btp-library-reader.is-prompt .btp-library-readonly{font-weight:750!important}
body .btp-app .btp-library-reader.is-prompt .btp-library-reader-content{font-weight:650!important;line-height:1.58!important}
body .btp-app .btp-library-reader-actions{gap:8px!important}
body .btp-app .btp-library-download{cursor:pointer!important}

@media(max-width:1180px){
  body .btp-app .btp-message-toolbar{grid-template-columns:minmax(0,1fr) minmax(170px,220px)!important}
  body .btp-app .btp-message-search{grid-column:1/-1!important}
  body .btp-app .btp-message-count{grid-column:1/-1!important;min-height:42px!important;height:42px!important}
  body .btp-app .btp-message-service-badge{max-width:130px!important}
}
@media(max-width:720px){
  body .btp-app .btp-message-toolbar{grid-template-columns:1fr!important}
  body .btp-app .btp-message-search,body .btp-app .btp-message-count{grid-column:auto!important}
  body .btp-app .btp-message-filter .btp-brand-select-menu{position:fixed!important;left:14px!important;right:14px!important;bottom:14px!important;top:auto!important;max-height:min(55dvh,360px)!important;z-index:99999!important}
  body .btp-app .btp-message-title-line{align-items:flex-start!important;flex-wrap:wrap!important;gap:5px 7px!important}
  body .btp-app .btp-message-service-badge{max-width:100%!important}
  body .btp-app .btp-service-picker{grid-template-columns:1fr!important}
  body .btp-app .btp-library-reader.is-prompt .btp-library-reader-card{width:100%!important}
}


/* ============================================================================
   v0.46.4 — Metas e valores robustos + Mensagens multi-serviço + Histórico
   ============================================================================ */
body .btp-app .btp-commercial-profile-card,
body .btp-app .btp-services-card{
  position:relative!important;
  overflow:visible!important;
}
body .btp-app .btp-commercial-profile-card{z-index:45!important}
body .btp-app .btp-sales-identity-card{position:relative!important;z-index:2!important}
body .btp-app .btp-commercial-profile-card:has(.btp-brand-select.is-open),
body .btp-app .btp-services-card:has(.btp-brand-select.is-open){z-index:500!important}
body .btp-app .btp-commercial-profile-card .btp-brand-select-menu,
body .btp-app .btp-services-card .btp-brand-select-menu{
  max-height:min(320px,44vh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
}
body .btp-app .btp-service-picker{
  max-height:min(330px,42vh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:2px 7px 2px 2px!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(178,126,31,.52) transparent!important;
}
body .btp-app .btp-service-picker::-webkit-scrollbar{width:8px!important}
body .btp-app .btp-service-picker::-webkit-scrollbar-track{background:transparent!important}
body .btp-app .btp-service-picker::-webkit-scrollbar-thumb{background:rgba(178,126,31,.46)!important;border:2px solid transparent!important;background-clip:padding-box!important;border-radius:999px!important}
body .btp-app .btp-service-option{outline:0!important;user-select:none!important;-webkit-tap-highlight-color:transparent!important}
body .btp-app .btp-service-option:focus-visible{border-color:#c9942e!important;box-shadow:0 0 0 4px rgba(210,159,58,.14)!important}
body .btp-app .btp-service-option.is-selected,
body .btp-app .btp-service-option[aria-checked="true"]{border-color:#d39d37!important;background:linear-gradient(180deg,#fff9e9,#fff3d3)!important;color:#1f2d3b!important}
body .btp-app .btp-service-option[aria-checked="true"] .btp-service-option-icon{background:#f1cc7a!important}
body .btp-app .btp-service-option[aria-checked="true"] .btp-service-selected-mark{opacity:1!important;transform:translateY(-50%) scale(1)!important}

body .btp-app .btp-pipeline.is-search-filtered{grid-template-columns:minmax(0,1fr)!important}
body .btp-app .btp-pipeline.is-search-filtered .btp-pipe-col:not([hidden]){width:100%!important;max-width:100%!important}
body .btp-app .btp-pipeline.is-search-filtered .btp-pipe-list{max-height:min(56vh,520px)!important}
body .btp-app .btp-pipeline.is-search-filtered .btp-pipe-card{min-height:96px!important}

body .btp-app .btp-prospect-head p{max-width:none!important}
body .btp-app .btp-search-panel-head>div{min-width:0!important;flex:1 1 auto!important}
body .btp-app .btp-search-panel-head p{max-width:none!important}
@media(min-width:1480px){
  body .btp-app .btp-prospect-head p,
  body .btp-app .btp-search-panel-head p{white-space:nowrap!important;font-size:13px!important}
}

@media(max-width:1180px){
  body .btp-app .btp-service-picker{max-height:min(360px,44vh)!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important}
}
@media(max-width:720px){
  body .btp-app .btp-commercial-profile-card,
  body .btp-app .btp-services-card{overflow:visible!important}
  body .btp-app .btp-service-picker{max-height:min(46dvh,420px)!important;grid-template-columns:1fr!important;padding-right:5px!important;scrollbar-gutter:auto!important}
  body .btp-app .btp-service-option{min-height:54px!important}
  body .btp-app .btp-pipeline.is-search-filtered .btp-pipe-list{max-height:min(58dvh,440px)!important}
}


/* ============================================================================
   v0.46.7 — Biblioteca lazy-load + seletor de serviço + diagnóstico por oferta
   ============================================================================ */

/* The custom service dropdown must be allowed to leave the search card.
   Older qualification CSS used overflow:hidden on this panel, clipping the menu. */
body .btp-app .btp-search-panel{
  overflow:visible!important;
  position:relative!important;
  z-index:30!important;
}
body .btp-app .btp-search-panel::before{
  right:0!important;
  top:0!important;
  width:190px!important;
  height:190px!important;
  opacity:.7!important;
}
body .btp-app .btp-search-core{
  overflow:visible!important;
  z-index:50!important;
}
body .btp-app .btp-search-core>label{
  min-width:0!important;
  position:relative!important;
  overflow:visible!important;
}
body .btp-app .btp-search-service-select{
  z-index:90!important;
}
body .btp-app .btp-search-service-select.is-open{
  z-index:900!important;
}
body .btp-app .btp-search-service-select .btp-brand-select-menu{
  z-index:950!important;
  max-height:min(320px,46vh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-gutter:stable!important;
}
body .btp-app .btp-search-filters{
  z-index:1!important;
}

/* Reader opens immediately; long bodies arrive asynchronously without making
   the entire application HTML huge. */
body .btp-app .btp-library-reader.is-loading .btp-library-readonly,
body .btp-app .btp-library-reader.is-loading .btp-library-reader-content{
  background:linear-gradient(100deg,#fff 18%,#fbf6ea 38%,#fff 58%)!important;
  background-size:220% 100%!important;
  animation:btp-library-loading 1.15s linear infinite!important;
}
body .btp-app .btp-library-reader.is-loading .btp-library-reader-content{
  color:#8c96a2!important;
}
body .btp-app .btp-library-reader-actions .btp-primary[disabled]{
  opacity:.52!important;
  cursor:wait!important;
  transform:none!important;
}
@keyframes btp-library-loading{
  from{background-position:110% 0}
  to{background-position:-110% 0}
}

/* Service-specific diagnostic: visible distinction between verified signals and
   hypotheses that must be confirmed in conversation. */
body .btp-app .btp-service-focus-note{
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  align-items:center!important;
  gap:5px 12px!important;
  padding:14px 16px!important;
  border:1px solid #ead9b3!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#fffaf0,#fffdf8)!important;
}
body .btp-app .btp-service-focus-note>span{
  grid-column:1!important;
  color:#9d6d18!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
}
body .btp-app .btp-service-focus-note>strong{
  grid-column:2!important;
  color:#172434!important;
  font-size:14px!important;
  font-weight:850!important;
}
body .btp-app .btp-service-focus-note>p{
  grid-column:1/-1!important;
  margin:2px 0 0!important;
  color:#778493!important;
  font-size:12px!important;
  line-height:1.5!important;
}
body .btp-app .btp-service-evidence-note{
  margin:12px 0 0!important;
  padding:11px 12px!important;
  border-radius:13px!important;
  background:#f7f8fa!important;
  color:#74808e!important;
  font-size:12px!important;
  line-height:1.5!important;
  font-weight:600!important;
}

@media(max-width:980px){
  body .btp-app .btp-search-service-select .btp-brand-select-menu{
    max-height:min(300px,42dvh)!important;
  }
}
@media(max-width:720px){
  body .btp-app .btp-search-service-select.is-open{
    z-index:9999!important;
  }
  body .btp-app .btp-search-service-select .btp-brand-select-menu{
    position:fixed!important;
    left:14px!important;
    right:14px!important;
    top:auto!important;
    bottom:14px!important;
    max-height:min(54dvh,390px)!important;
    z-index:100000!important;
  }
  body .btp-app .btp-service-focus-note{
    grid-template-columns:1fr!important;
    gap:4px!important;
    padding:12px 13px!important;
  }
  body .btp-app .btp-service-focus-note>span,
  body .btp-app .btp-service-focus-note>strong,
  body .btp-app .btp-service-focus-note>p{
    grid-column:1!important;
  }
}

/* ============================================================================
   v0.46.8 — Resultados da prospecção + leitor de mensagens
   - KPIs do modo Prospectar não deixam "Prioridade alta" órfã no desktop.
   - Adaptação usa a largura REAL do painel, útil em navegadores com sidebar.
   - Mensagens sem campos variáveis podem ser abertas em modo somente leitura.
   ============================================================================ */
body .btp-app .btp-lead-mode-discovery{
  container-type:inline-size;
  container-name:btp-discovery-workspace;
}
body .btp-app .btp-lead-mode-discovery .btp-lead-kpis{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
body .btp-app .btp-lead-mode-discovery .btp-lead-kpis>button{
  min-width:0!important;
  width:100%!important;
  margin:0!important;
}

/* Quando a área útil diminui (inclusive por barra lateral do navegador),
   preferimos 4+3 / 4+2 em vez de 6+1. */
@container btp-discovery-workspace (max-width: 980px){
  body .btp-app .btp-lead-mode-discovery .btp-lead-kpis{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@container btp-discovery-workspace (max-width: 620px){
  body .btp-app .btp-lead-mode-discovery .btp-lead-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-lead-kpis>button:last-child:nth-child(odd){
    grid-column:1/-1!important;
  }
}
/* Fallback para browsers sem container queries. */
@media (max-width:1180px){
  @supports not (container-type:inline-size){
    body .btp-app .btp-lead-mode-discovery .btp-lead-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  }
}
@media (max-width:620px){
  @supports not (container-type:inline-size){
    body .btp-app .btp-lead-mode-discovery .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    body .btp-app .btp-lead-mode-discovery .btp-lead-kpis>button:last-child:nth-child(odd){grid-column:1/-1!important}
  }
}

/* Leitor de mensagem — somente leitura, alinhado ao editor existente. */
body .btp-app .btp-message-viewer{
  position:fixed!important;
  inset:0!important;
  z-index:10080!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
  background:rgba(10,17,25,.72)!important;
  backdrop-filter:blur(7px)!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .2s ease,visibility .2s ease!important;
}
body .btp-app .btp-message-viewer.is-open{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
body .btp-app .btp-message-viewer-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  width:min(920px,calc(100vw - 48px))!important;
  max-height:min(84dvh,780px)!important;
  padding:34px 36px 28px!important;
  overflow:hidden!important;
  border:1px solid rgba(227,217,197,.92)!important;
  border-radius:30px!important;
  background:#fff!important;
  box-shadow:0 30px 90px rgba(9,17,27,.28)!important;
}
body .btp-app .btp-message-viewer-close{
  position:absolute!important;
  top:20px!important;
  right:22px!important;
  z-index:3!important;
  display:grid!important;
  place-items:center!important;
  width:48px!important;
  height:48px!important;
  padding:0!important;
  border:1px solid rgba(215,163,50,.26)!important;
  border-radius:50%!important;
  background:#101b29!important;
  color:#e5b64d!important;
  font-size:19px!important;
  font-weight:700!important;
  cursor:pointer!important;
}
body .btp-app .btp-message-viewer-head{
  padding-right:62px!important;
}
body .btp-app .btp-message-viewer-head>span{
  display:block!important;
  margin-bottom:10px!important;
  color:#a16e0c!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.17em!important;
  text-transform:uppercase!important;
}
body .btp-app .btp-message-viewer-head h3{
  margin:0!important;
  color:var(--btp-ink)!important;
  font-size:32px!important;
  font-weight:500!important;
  line-height:1.12!important;
  letter-spacing:-.025em!important;
}
body .btp-app .btp-message-viewer-head p{
  max-width:700px!important;
  margin:10px 0 0!important;
  color:#7f8b99!important;
  font-size:14px!important;
  line-height:1.55!important;
}
body .btp-app .btp-message-viewer-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin:18px 0 12px!important;
}
body .btp-app .btp-message-viewer-meta span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  padding:0 10px!important;
  border:1px solid #eadab6!important;
  border-radius:999px!important;
  background:#fbf6eb!important;
  color:#95660d!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
  text-transform:uppercase!important;
}
body .btp-app .btp-message-viewer-content{
  flex:1 1 auto!important;
  min-height:220px!important;
  max-height:440px!important;
  padding:20px 22px!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  border:1px solid #e4ded2!important;
  border-radius:18px!important;
  background:#fffdfa!important;
  color:#5e6b7a!important;
  font-size:15px!important;
  line-height:1.68!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(184,128,24,.48) transparent!important;
}
body .btp-app .btp-message-viewer-content::-webkit-scrollbar{width:7px!important}
body .btp-app .btp-message-viewer-content::-webkit-scrollbar-track{background:transparent!important;margin-block:10px!important}
body .btp-app .btp-message-viewer-content::-webkit-scrollbar-thumb{
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(184,128,24,.48)!important;
  background-clip:padding-box!important;
}
body .btp-app .btp-message-viewer-actions{
  display:flex!important;
  justify-content:flex-end!important;
  margin-top:18px!important;
}
body .btp-app .btp-message-viewer-actions .btp-mini{
  min-width:132px!important;
  min-height:44px!important;
  border-radius:999px!important;
}

/* Duas ações equilibradas sem estourar a coluna. */
body .btp-app .btp-message-row-actions .btp-view-message,
body .btp-app .btp-message-row-actions .btp-personalize-message,
body .btp-app .btp-message-row-actions .btp-copy-message{
  flex:1 1 0!important;
  width:0!important;
  min-width:0!important;
}

@media (max-width:720px){
  body .btp-app .btp-message-viewer{padding:12px!important;align-items:flex-end!important}
  body .btp-app .btp-message-viewer-card{
    width:100%!important;
    max-height:90dvh!important;
    padding:24px 17px 18px!important;
    border-radius:24px 24px 18px 18px!important;
  }
  body .btp-app .btp-message-viewer-close{
    top:14px!important;
    right:15px!important;
    width:42px!important;
    height:42px!important;
  }
  body .btp-app .btp-message-viewer-head{padding-right:50px!important}
  body .btp-app .btp-message-viewer-head h3{font-size:25px!important}
  body .btp-app .btp-message-viewer-head p{font-size:12.5px!important}
  body .btp-app .btp-message-viewer-meta{margin:14px 0 10px!important}
  body .btp-app .btp-message-viewer-content{
    min-height:180px!important;
    max-height:52dvh!important;
    padding:15px 16px!important;
    border-radius:15px!important;
    font-size:13.5px!important;
    line-height:1.62!important;
  }
  body .btp-app .btp-message-viewer-actions .btp-mini{width:100%!important}
}


/* ============================================================================
   v0.46.9 — Prospectar: descrição respeita a largura real do painel
   Evita que o texto da Nova prospecção invada o painel de qualificação em
   navegadores com barra lateral ou viewport grande porém área útil menor.
   ============================================================================ */
body .btp-app .btp-search-panel-head{
  min-width:0!important;
}
body .btp-app .btp-search-panel-head>div{
  min-width:0!important;
  max-width:100%!important;
}
body .btp-app .btp-search-panel-head p{
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  text-wrap:pretty!important;
}
/* O título superior pode aproveitar uma linha em telas amplas, mas nunca vaza. */
body .btp-app .btp-prospect-head>div{
  min-width:0!important;
  max-width:100%!important;
}
body .btp-app .btp-prospect-head p{
  overflow-wrap:break-word!important;
}
@media (min-width:1480px){
  body .btp-app .btp-search-panel-head p{
    white-space:normal!important;
  }
}
@media (max-width:1180px){
  body .btp-app .btp-search-panel-head{
    gap:14px!important;
  }
  body .btp-app .btp-search-panel-head p{
    line-height:1.55!important;
  }
}
@media (max-width:720px){
  body .btp-app .btp-search-panel-head{
    align-items:flex-start!important;
  }
  body .btp-app .btp-search-panel-head p{
    font-size:12.5px!important;
    line-height:1.55!important;
  }
}


/* ============================================================================
   v0.46.10 — Mensagens: segurança Pro + tipografia natural + toolbar responsiva
   ============================================================================ */
body .btp-app .btp-message-toolbar{
  grid-template-columns:minmax(230px,1.55fr) minmax(145px,.48fr) minmax(165px,.58fr) minmax(118px,.36fr)!important;
  min-width:0!important;
}
body .btp-app .btp-message-filter,
body .btp-app .btp-message-filter .btp-brand-select,
body .btp-app .btp-message-filter .btp-brand-select-trigger{
  min-width:0!important;
  max-width:100%!important;
}
body .btp-app .btp-message-filter .btp-brand-select-trigger [data-btp-brand-select-label]{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
body .btp-app .btp-message-filter .btp-brand-select-menu button{
  min-width:0!important;
  text-transform:none!important;
  letter-spacing:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body .btp-app .btp-message-category-badge,
body .btp-app .btp-message-service-badge{
  text-transform:none!important;
  letter-spacing:0!important;
}
body .btp-app .btp-message-card.is-pro-preview .btp-message-preview{
  color:#8b96a3!important;
}
body .btp-app .btp-message-card.is-pro-preview .btp-message-vars{
  display:none!important;
}

@media (max-width:1380px){
  body .btp-app .btp-message-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(150px,210px) minmax(165px,225px)!important;
  }
  body .btp-app .btp-message-search{grid-column:1/-1!important}
  body .btp-app .btp-message-count{grid-column:auto!important;min-width:0!important}
}
@media (max-width:980px){
  body .btp-app .btp-message-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  body .btp-app .btp-message-search{grid-column:1/-1!important}
  body .btp-app .btp-message-count{grid-column:1/-1!important}
}
@media (max-width:720px){
  body .btp-app .btp-message-toolbar{grid-template-columns:1fr!important}
  body .btp-app .btp-message-search,
  body .btp-app .btp-message-count{grid-column:auto!important}
  body .btp-app .btp-message-filter .btp-brand-select-trigger [data-btp-brand-select-label]{
    white-space:normal!important;
    line-height:1.25!important;
  }
}
/* v0.46.10 — acabamento final dos filtros de mensagem. */
body .btp-app .btp-message-toolbar{
  grid-template-columns:minmax(230px,1.55fr) minmax(145px,.48fr) minmax(165px,.58fr) minmax(150px,.40fr)!important;
}
body .btp-app .btp-message-count{min-width:150px!important}
body .btp-app .btp-message-viewer-meta span{text-transform:none!important;letter-spacing:0!important}

/* ============================================================================
   v0.46.11 — Responsive quality pass + contained scrollbars
   Keeps scrollbars inside their panels/modals and improves compact-window,
   tablet and mobile behavior across Prompts, Messages and Library Prospect.
   ============================================================================ */

/* Global layout hardening for reduced browser workspace (sidebars/devtools/etc.). */
body .btp-app,
body .btp-app .btp-main,
body .btp-app .btp-view,
body .btp-app .btp-panel,
body .btp-app .btp-section-head,
body .btp-app .btp-prompt-toolbar,
body .btp-app .btp-message-toolbar,
body .btp-app .btp-library-toolbar{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body .btp-app .btp-section-head>div,
body .btp-app .btp-prompts-head>div,
body .btp-app .btp-messages-head>div{
  min-width:0!important;
}
body .btp-app .btp-section-head h2,
body .btp-app .btp-section-head p,
body .btp-app .btp-prompts-head h2,
body .btp-app .btp-prompts-head p,
body .btp-app .btp-messages-head h2,
body .btp-app .btp-messages-head p{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}

/* Prompt list: inset the scrollbar instead of painting it on the card edge. */
body .btp-app .btp-prompt-list-shell{
  padding-right:6px!important;
}
body .btp-app .btp-prompt-list-head{
  margin-right:-6px!important;
  padding-right:22px!important;
}
body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid,
body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding-right:2px!important;
  scrollbar-gutter:stable!important;
  border-radius:0 0 18px 18px!important;
}
body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid::-webkit-scrollbar-track,
body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list::-webkit-scrollbar-track{
  margin-block:12px!important;
  background:transparent!important;
}

/* Messages list gets the same contained-scroll treatment. */
body .btp-app .btp-message-list-shell{
  padding-right:6px!important;
}
body .btp-app .btp-message-list-head{
  margin-right:-6px!important;
  padding-right:22px!important;
}
body .btp-app .btp-view[data-view="mensagens"] #btp-message-grid,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-list{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding-right:2px!important;
  scrollbar-gutter:stable!important;
  border-radius:0 0 18px 18px!important;
}

/* Message editor: the outer rounded card NEVER scrolls. The inset viewport does. */
body .btp-app .btp-message-editor{
  padding:clamp(10px,2.2vw,26px)!important;
}
body .btp-app .btp-message-editor-card{
  display:flex!important;
  flex-direction:column!important;
  width:min(920px,100%)!important;
  max-height:min(90dvh,900px)!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:30px!important;
  box-sizing:border-box!important;
  scrollbar-width:none!important;
}
body .btp-app .btp-message-editor-card::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
body .btp-app .btp-message-editor-scroll{
  min-height:0!important;
  max-height:min(90dvh,900px)!important;
  margin:8px 8px 8px 0!important;
  padding:28px 22px 24px 30px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  border-radius:25px!important;
  box-sizing:border-box!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(166,116,27,.50) transparent!important;
  scrollbar-gutter:stable!important;
}
body .btp-app .btp-message-editor-scroll::-webkit-scrollbar{width:8px!important}
body .btp-app .btp-message-editor-scroll::-webkit-scrollbar-track{
  background:transparent!important;
  margin-block:14px!important;
}
body .btp-app .btp-message-editor-scroll::-webkit-scrollbar-thumb{
  min-height:42px!important;
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(166,116,27,.50)!important;
  background-clip:padding-box!important;
}
body .btp-app .btp-message-editor-scroll::-webkit-scrollbar-thumb:hover{
  background:rgba(166,116,27,.68)!important;
  background-clip:padding-box!important;
}
body .btp-app .btp-message-editor-close{
  top:18px!important;
  right:20px!important;
  z-index:5!important;
}
body .btp-app .btp-message-editor-head{
  padding-right:62px!important;
}
body .btp-app .btp-message-editor-preview{
  scrollbar-gutter:stable!important;
}

/* Library reader: keep both reader and content scrollbars visually inset. */
body .btp-app .btp-library-reader-card{
  overflow:hidden!important;
}
body .btp-app .btp-library-reader-body{
  margin-right:3px!important;
  padding-right:8px!important;
}
body .btp-app .btp-library-reader-content{
  margin-right:2px!important;
}

/* Compact desktop/notebook: avoid desktop proportions squeezed into a narrow workspace. */
@media (max-width:1380px){
  body .btp-app .btp-main{padding-inline:clamp(18px,2.2vw,28px)!important}
  body .btp-app .btp-prompts-head,
  body .btp-app .btp-messages-head{
    align-items:flex-start!important;
  }
  body .btp-app .btp-prompt-list-head,
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{
    grid-template-columns:minmax(240px,1.45fr) minmax(96px,.44fr) 82px minmax(250px,.92fr)!important;
  }
  body .btp-app .btp-message-list-head,
  body .btp-app .btp-message-card.btp-message-list-row,
  body .btp-app .btp-message-list-row{
    grid-template-columns:minmax(250px,1.45fr) minmax(100px,.48fr) 82px minmax(245px,.92fr)!important;
  }
}

/* Tablet / browser with a wide sidebar: use two-stage layouts before mobile. */
@media (max-width:1100px){
  body .btp-app .btp-prompts-head,
  body .btp-app .btp-messages-head{
    flex-wrap:wrap!important;
    align-items:flex-start!important;
    gap:14px!important;
  }
  body .btp-app .btp-prompts-head .btp-primary{
    margin-left:auto!important;
  }
  body .btp-app .btp-prompt-toolbar,
  body .btp-app .btp-message-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(180px,220px)!important;
  }
  body .btp-app .btp-prompt-search,
  body .btp-app .btp-message-search{
    grid-column:1/-1!important;
  }
  body .btp-app .btp-prompt-count,
  body .btp-app .btp-message-count{
    min-width:0!important;
  }
}

@media (max-width:900px){
  body .btp-app .btp-main{padding-inline:16px!important}
  body .btp-app .btp-prompt-list-shell,
  body .btp-app .btp-message-list-shell{
    padding-right:5px!important;
    border-radius:20px!important;
  }
  body .btp-app .btp-prompt-list-head,
  body .btp-app .btp-message-list-head{
    display:none!important;
  }
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row,
  body .btp-app .btp-message-card.btp-message-list-row,
  body .btp-app .btp-message-list-row{
    height:auto!important;
    min-height:0!important;
    border-radius:0!important;
  }
  body .btp-app .btp-message-editor-card,
  body .btp-app .btp-prompt-editor-card{
    width:min(760px,100%)!important;
  }
}

/* Mobile: cards become bottom sheets, outer scrollbars disappear, inner content stays usable. */
@media (max-width:720px){
  body .btp-app .btp-main{padding:16px 12px 112px!important}
  body .btp-app .btp-section-head,
  body .btp-app .btp-prompts-head,
  body .btp-app .btp-messages-head{
    align-items:stretch!important;
    flex-direction:column!important;
    gap:12px!important;
  }
  body .btp-app .btp-prompts-head .btp-primary{
    width:100%!important;
    margin-left:0!important;
  }
  body .btp-app .btp-prompt-toolbar,
  body .btp-app .btp-message-toolbar{
    grid-template-columns:1fr!important;
    padding:10px!important;
    gap:9px!important;
    border-radius:18px!important;
  }
  body .btp-app .btp-prompt-search,
  body .btp-app .btp-message-search,
  body .btp-app .btp-prompt-count,
  body .btp-app .btp-message-count{
    grid-column:auto!important;
  }
  body .btp-app .btp-prompt-count,
  body .btp-app .btp-message-count{
    width:100%!important;
    justify-content:flex-start!important;
    min-height:42px!important;
    height:42px!important;
  }
  body .btp-app .btp-view[data-view="prompts"] #btp-prompt-grid,
  body .btp-app .btp-view[data-view="prompts"] .btp-prompt-list,
  body .btp-app .btp-view[data-view="mensagens"] #btp-message-grid,
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-list{
    max-height:min(56dvh,500px)!important;
    scrollbar-gutter:auto!important;
  }
  body .btp-app .btp-message-editor,
  body .btp-app .btp-prompt-editor{
    align-items:flex-end!important;
    padding:8px!important;
  }
  body .btp-app .btp-message-editor-card,
  body .btp-app .btp-prompt-editor-card{
    width:100%!important;
    max-height:94dvh!important;
    border-radius:24px 24px 16px 16px!important;
  }
  body .btp-app .btp-message-editor-scroll,
  body .btp-app .btp-prompt-editor-scroll{
    max-height:94dvh!important;
    margin:6px 5px 6px 0!important;
    padding:20px 14px calc(18px + env(safe-area-inset-bottom)) 18px!important;
    border-radius:20px!important;
    scrollbar-width:none!important;
    scrollbar-gutter:auto!important;
  }
  body .btp-app .btp-message-editor-scroll::-webkit-scrollbar,
  body .btp-app .btp-prompt-editor-scroll::-webkit-scrollbar{
    display:none!important;
    width:0!important;
  }
  body .btp-app .btp-message-editor-close,
  body .btp-app .btp-prompt-editor-close{
    top:14px!important;
    right:14px!important;
  }
  body .btp-app .btp-message-editor-head{
    padding-right:50px!important;
  }
  body .btp-app .btp-message-fields,
  body .btp-app .btp-prompt-form-grid{
    grid-template-columns:1fr!important;
  }
  body .btp-app .btp-message-editor-preview{
    min-height:160px!important;
    max-height:38dvh!important;
    scrollbar-gutter:auto!important;
  }
  body .btp-app .btp-message-editor-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    margin-top:14px!important;
  }
  body .btp-app .btp-message-editor-actions .btp-mini,
  body .btp-app .btp-message-editor-actions .btp-primary{
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
  }
}

@media (max-width:430px){
  body .btp-app .btp-main{padding-inline:10px!important}
  body .btp-app .btp-section-head h2,
  body .btp-app .btp-prompts-head h2,
  body .btp-app .btp-messages-head h2{
    font-size:25px!important;
    line-height:1.08!important;
  }
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row,
  body .btp-app .btp-message-card.btp-message-list-row,
  body .btp-app .btp-message-list-row{
    padding-inline:11px!important;
  }
  body .btp-app .btp-message-editor-scroll,
  body .btp-app .btp-prompt-editor-scroll{
    padding-left:14px!important;
    padding-right:11px!important;
  }
}

/* v0.46.11 geometry correction — later desktop overrides must not reapply
   four-column templates after tablet/mobile breakpoints. */
body .btp-app .btp-message-editor .btp-message-editor-actions{
  position:static!important;
  bottom:auto!important;
  z-index:auto!important;
  background:transparent!important;
  box-shadow:none!important;
  padding-bottom:0!important;
}

@media (min-width:901px) and (max-width:1180px){
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{
    grid-template-columns:auto auto minmax(250px,1fr)!important;
    grid-template-areas:"main main main" "category date actions"!important;
    gap:10px 14px!important;
    min-height:118px!important;
    height:auto!important;
    padding:14px 16px!important;
  }
  body .btp-app .btp-prompt-main{grid-area:main!important}
  body .btp-app .btp-prompt-category-cell{grid-area:category!important}
  body .btp-app .btp-prompt-date-cell{grid-area:date!important;align-self:center!important}
  body .btp-app .btp-prompt-row-actions{
    grid-area:actions!important;
    justify-self:end!important;
    width:auto!important;
    max-width:100%!important;
    padding-top:0!important;
    border-top:0!important;
    overflow:visible!important;
  }

  body .btp-app .btp-message-card.btp-message-list-row,
  body .btp-app .btp-message-list-row{
    grid-template-columns:auto auto minmax(260px,1fr)!important;
    grid-template-areas:"main main main" "category channel actions"!important;
    gap:10px 14px!important;
    min-height:116px!important;
    height:auto!important;
    padding:14px 16px!important;
  }
  body .btp-app .btp-message-main{grid-area:main!important}
  body .btp-app .btp-message-category-cell{grid-area:category!important}
  body .btp-app .btp-message-channel-cell{grid-area:channel!important;align-self:center!important}
  body .btp-app .btp-message-row-actions{
    grid-area:actions!important;
    justify-self:end!important;
    justify-content:flex-end!important;
    width:auto!important;
    max-width:100%!important;
    padding-top:0!important;
    border-top:0!important;
    overflow:visible!important;
  }
}

@media (max-width:900px){
  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"main main" "category date" "actions actions"!important;
    gap:10px 12px!important;
  }
  body .btp-app .btp-prompt-main{grid-area:main!important}
  body .btp-app .btp-prompt-category-cell{grid-area:category!important}
  body .btp-app .btp-prompt-date-cell{grid-area:date!important;justify-self:end!important;text-align:right!important}
  body .btp-app .btp-prompt-row-actions{grid-area:actions!important;width:100%!important}

  body .btp-app .btp-message-card.btp-message-list-row,
  body .btp-app .btp-message-list-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"main main" "category channel" "actions actions"!important;
    gap:10px 12px!important;
  }
  body .btp-app .btp-message-main{grid-area:main!important}
  body .btp-app .btp-message-category-cell{grid-area:category!important;justify-self:start!important}
  body .btp-app .btp-message-channel-cell{grid-area:channel!important;justify-self:end!important}
  body .btp-app .btp-message-row-actions{grid-area:actions!important;width:100%!important}
}

/* Small phones: shorten action labels instead of stacking a third line. */
@media (max-width:430px){
  body .btp-app .btp-prompt-row-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px!important;
    grid-template-areas:"open copy delete"!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-edit-prompt>span:last-child,
  body .btp-app .btp-prompt-row-actions .btp-copy-prompt>span:last-child,
  body .btp-app .btp-message-row-actions button>span:last-child{
    font-size:0!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-edit-prompt>span:last-child::after{
    content:"Abrir"!important;
    font-size:12px!important;
  }
  body .btp-app .btp-prompt-row-actions .btp-copy-prompt>span:last-child::after{
    content:"Copiar"!important;
    font-size:12px!important;
  }
  body .btp-app .btp-message-row-actions .btp-open-message>span:last-child::after,
  body .btp-app .btp-message-row-actions .btp-view-message>span:last-child::after{
    content:"Abrir"!important;
    font-size:12px!important;
  }
  body .btp-app .btp-message-row-actions .btp-copy-message>span:last-child::after{
    content:"Copiar"!important;
    font-size:12px!important;
  }
}

/* ==========================================================
   v0.47.0 · TRANSPARÊNCIA DA QUALIFICAÇÃO
========================================================== */
body .btp-app .btp-opportunity-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
body .btp-app .btp-analysis-state{display:inline-flex;align-items:center;min-height:21px;padding:0 7px;border-radius:999px;border:1px solid transparent;font-size:12px;font-weight:850;line-height:1;white-space:nowrap}
body .btp-app .btp-analysis-state.is-verified{background:#ebf7ef;border-color:#cce8d7;color:#28734e}
body .btp-app .btp-analysis-state.is-processing{background:#fff4d9;border-color:#ead19a;color:#8a610f}
body .btp-app .btp-analysis-state.is-preliminary{background:#f2f4f6;border-color:#e0e4e8;color:#667281}
body .btp-app .btp-analysis-state.is-no-site{background:#eef2f5;border-color:#d9e0e6;color:#52606d}
@media(max-width:700px){body .btp-app .btp-analysis-state{font-size:12px;min-height:20px;max-width:100%;white-space:normal;text-align:center;line-height:1.15;padding-top:4px;padding-bottom:4px}}
body .btp-app .btp-intelligence-queue-note{display:flex;align-items:flex-start;gap:10px;margin:-4px 0 14px;padding:11px 13px;border:1px solid #ead5a3;border-radius:13px;background:#fff9ea;color:#596676}
body .btp-app .btp-intelligence-queue-note>.dashicons{flex:0 0 18px;width:18px;height:18px;font-size:18px;line-height:18px;color:#b77f16;animation:btpQueueSpin 1.6s linear infinite}
body .btp-app .btp-intelligence-queue-note strong,body .btp-app .btp-intelligence-queue-note small{display:block}body .btp-app .btp-intelligence-queue-note strong{color:#26364b;font-size:12px}body .btp-app .btp-intelligence-queue-note small{margin-top:2px;color:#7d8996;font-size:12px;line-height:1.45}
@keyframes btpQueueSpin{to{transform:rotate(360deg)}}

/* v0.49 — Matriz de Oportunidades + Evidências Prospect */
.btp-best-service-tag{display:inline-flex;align-items:center;max-width:100%;border:1px solid rgba(185,145,65,.32);background:rgba(185,145,65,.10);color:var(--btp-gold,#a77d2e);border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.btp-opportunity-matrix{margin:16px 0;padding:18px;border:1px solid rgba(185,145,65,.20);border-radius:20px;background:linear-gradient(180deg,rgba(185,145,65,.07),rgba(255,255,255,.02))}
.btp-matrix-head span{display:block;font-size:12px;font-weight:900;letter-spacing:.12em;color:var(--btp-gold,#a77d2e)}.btp-matrix-head strong{display:block;margin-top:4px;font-size:17px}.btp-matrix-head p{margin:5px 0 0;opacity:.72;font-size:12px}
.btp-matrix-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.btp-matrix-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;min-width:0;padding:12px;border:1px solid rgba(127,127,127,.16);border-radius:14px;background:rgba(255,255,255,.035)}.btp-matrix-item.is-best{border-color:rgba(185,145,65,.45);box-shadow:inset 0 0 0 1px rgba(185,145,65,.08)}.btp-matrix-item>div{min-width:0}.btp-matrix-item div span{display:block;min-width:0;font-size:12px;font-weight:800;overflow-wrap:anywhere}.btp-matrix-item em{display:inline-block;margin-top:4px;font-size:12px;font-style:normal;font-weight:900;letter-spacing:.08em;color:var(--btp-gold,#a77d2e)}.btp-matrix-item>strong{grid-row:1/3;grid-column:2;font-size:18px}.btp-matrix-item>small{font-size:12px;opacity:.65}.btp-evidence-columns{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.btp-evidence-columns .btp-lead-list-block{margin:0}
@media(max-width:760px){.btp-matrix-grid{grid-template-columns:1fr}.btp-evidence-columns{grid-template-columns:1fr}.btp-opportunity-matrix{padding:14px;border-radius:16px}}

/* ==========================================================
   v0.49.2 · AUDITORIA UX/UI RESPONSIVA
   ----------------------------------------------------------
   Objetivos:
   - preservar largura útil em navegadores com painel lateral;
   - reduzir quebras artificiais e impedir vazamento horizontal;
   - padronizar legibilidade, espaçamento e scrollbars;
   - adaptar páginas pela largura REAL do conteúdo, não só viewport.
========================================================== */

/* A largura útil do conteúdo vira referência para componentes internos. */
body .btp-app .btp-main{
  container-type:inline-size;
  container-name:btp-content;
  min-width:0!important;
  max-width:100%!important;
}

/* Hardening geral contra estouro por conteúdo dinâmico. */
body .btp-app .btp-view,
body .btp-app .btp-panel,
body .btp-app .btp-section-head,
body .btp-app .btp-section-head>div,
body .btp-app .btp-topbar,
body .btp-app .btp-topbar>* ,
body .btp-app .btp-prospect-layout>* ,
body .btp-app .btp-dashboard-core>* ,
body .btp-app .btp-settings-layout>* ,
body .btp-app .btp-profile-grid>* ,
body .btp-app .btp-support-grid-v2>* ,
body .btp-app .btp-plan-grid>* ,
body .btp-app .btp-plan-comparison>* ,
body .btp-app .btp-history-main,
body .btp-app .btp-history-copy,
body .btp-app .btp-company-cell,
body .btp-app .btp-opportunity-cell,
body .btp-app .btp-message-main,
body .btp-app .btp-prompt-main,
body .btp-app .btp-library-meta{
  min-width:0!important;
  max-width:100%!important;
}
body .btp-app h1,
body .btp-app h2,
body .btp-app h3,
body .btp-app p,
body .btp-app strong,
body .btp-app small,
body .btp-app label,
body .btp-app a,
body .btp-app button,
body .btp-app td,
body .btp-app th{
  overflow-wrap:break-word;
  word-break:normal;
}
body .btp-app input,
body .btp-app select,
body .btp-app textarea,
body .btp-app button{
  max-width:100%;
  min-width:0;
}
body .btp-app .btp-section-head h2,
body .btp-app .btp-hero h2,
body .btp-app .btp-dashboard-intro h2{
  max-width:none!important;
  text-wrap:balance;
}
body .btp-app .btp-section-head p,
body .btp-app .btp-dashboard-intro p,
body .btp-app .btp-settings-title p{
  text-wrap:pretty;
}

/* Scrollbars internos: finos, discretos e sem trilha pesada. */
body .btp-app *{
  scrollbar-width:thin;
  scrollbar-color:rgba(174,124,30,.58) transparent;
}
body .btp-app *::-webkit-scrollbar{width:8px;height:8px}
body .btp-app *::-webkit-scrollbar-track{background:transparent!important}
body .btp-app *::-webkit-scrollbar-thumb{
  min-height:38px;
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(174,124,30,.58)!important;
  background-clip:padding-box!important;
}
body .btp-app *::-webkit-scrollbar-thumb:hover{
  background:rgba(174,124,30,.76)!important;
  background-clip:padding-box!important;
}
body .btp-app .btp-table-wrap,
body .btp-app .btp-closing-scroll,
body .btp-app .btp-service-picker,
body .btp-app .btp-ticket-list,
body .btp-app .btp-ticket-thread,
body .btp-app .btp-support-resolved-list,
body .btp-app .btp-library-list,
body .btp-app .btp-prompt-list,
body .btp-app .btp-message-list{
  overscroll-behavior:contain;
}

/* Laptops e navegadores com painel lateral: sidebar compacta ANTES de o
   conteúdo ficar espremido. Mantém todos os botões clicáveis e sem scroll rival. */
@media (min-width:721px) and (max-width:1320px){
  body .btp-app{grid-template-columns:88px minmax(0,1fr)!important}
  body .btp-app .btp-sidebar{
    width:88px!important;
    padding:16px 9px 14px!important;
    overflow:hidden!important;
    overscroll-behavior:auto!important;
  }
  body .btp-app .btp-brand-wrap{margin-bottom:12px!important}
  body .btp-app .btp-brand--sidebar{width:52px!important;margin:0 auto!important}
  body .btp-app .btp-brand--sidebar .btp-brand-image{display:none!important}
  body .btp-app .btp-brand--sidebar .btp-brand-mark{
    display:block!important;width:46px!important;height:50px!important;object-fit:contain!important;margin:auto!important
  }
  body .btp-app .btp-brand-tag{display:none!important}
  body .btp-app .btp-sidebar nav.btp-nav{display:grid!important;gap:4px!important;align-content:start!important}
  body .btp-app .btp-sidebar nav.btp-nav button{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-height:44px!important;padding:9px!important;border-radius:15px!important;gap:0!important
  }
  body .btp-app .btp-sidebar nav.btp-nav button>span:last-child{display:none!important}
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-icon,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-figma-icon{
    display:block!important;visibility:visible!important;opacity:1!important;
    width:21px!important;height:21px!important;min-width:21px!important;margin:0!important
  }
  body .btp-app .btp-mobile-more-toggle{display:none!important}
  body .btp-app .btp-nav-more{display:contents!important}
  body .btp-app .btp-main{padding-left:clamp(18px,2.2vw,28px)!important;padding-right:clamp(18px,2.2vw,28px)!important}
}

/* Tipografia de interface: badges ainda compactos, mas não microscópicos. */
body .btp-app .btp-analysis-state{font-size:12px!important;line-height:1.2!important}
body .btp-app .btp-best-service-tag{font-size:12px!important}
body .btp-app .btp-matrix-head span{font-size:12px!important}
body .btp-app .btp-matrix-item em{font-size:12px!important;line-height:1.25!important}
body .btp-app .btp-matrix-item>small{font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-message-service-badge,
body .btp-app .btp-message-category-badge,
body .btp-app .btp-prompt-category-badge,
body .btp-app .btp-library-badges span,
body .btp-app .btp-library-badges em,
body .btp-app .btp-library-badges b.is-new{font-size:12px!important}
body .btp-app .btp-service-focus-tag{font-size:12px!important}
body .btp-app .btp-history-metric span{font-size:12px!important;white-space:normal!important}
body .btp-app .btp-pipeline-search-metrics span{font-size:12px!important}
body .btp-app .btp-pipe-disqualified-note{font-size:12px!important}
body .btp-app .btp-field-confidence,
body .btp-app .btp-field-sources,
body .btp-app .btp-priority-tag{font-size:12px!important}

/* Valores e nomes dinâmicos não empurram os cards. */
body .btp-app .btp-dashboard-revenue-value{
  max-width:100%!important;
  font-size:clamp(32px,4.2cqw,54px)!important;
  letter-spacing:-.045em!important;
}
body .btp-app .btp-dashboard-kpis--lean strong,
body .btp-app .btp-cards article strong{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body .btp-app .btp-dashboard-revenue-meta strong,
body .btp-app .btp-usage-list strong,
body .btp-app .btp-account-meta strong{overflow-wrap:anywhere!important}
body .btp-app .btp-company-cell>strong,
body .btp-app .btp-library-meta h3,
body .btp-app .btp-message-list-copy h3,
body .btp-app .btp-prompt-main h3,
body .btp-app .btp-pipe-card>strong{hyphens:auto}

/* Histórico: em largura reduzida, informação importante não some em ellipsis. */
@container btp-content (max-width:940px){
  body .btp-app .btp-history-list article.btp-history-item{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }
  body .btp-app .btp-history-main,
  body .btp-app .btp-history-metrics,
  body .btp-app .btp-history-actions{
    grid-column:1!important;grid-row:auto!important;width:100%!important;max-width:none!important
  }
  body .btp-app .btp-history-copy>strong,
  body .btp-app .btp-history-copy>small{
    white-space:normal!important;overflow:visible!important;text-overflow:clip!important
  }
  body .btp-app .btp-history-actions{justify-content:flex-start!important}
}

/* O layout reage à largura real do MAIN. Isto evita o problema de navegador
   com sidebar/painel lateral mesmo quando a viewport total ainda é grande. */
@container btp-content (max-width:1080px){
  body .btp-app .btp-prospect-layout,
  body .btp-app .btp-dashboard-core,
  body .btp-app .btp-settings-layout--user,
  body .btp-app .btp-profile-grid,
  body .btp-app .btp-support-grid-v2,
  body .btp-app .btp-plan-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body .btp-app .btp-prospect-aside{width:100%!important}
  body .btp-app .btp-engine-card{height:auto!important;position:static!important}
  body .btp-app .btp-dashboard-kpis--lean{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-dashboard-revenue-meta{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-settings-side-stack{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-plan-comparison{gap:14px!important}
}

@container btp-content (max-width:920px){
  body .btp-app .btp-plan-comparison{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-settings-side-stack{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-search-core{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-pipeline{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-support-grid-v2{gap:14px!important}
  body .btp-app .btp-message-toolbar,
  body .btp-app .btp-prompt-toolbar{grid-template-columns:minmax(0,1fr) minmax(170px,220px)!important}
  body .btp-app .btp-message-search,
  body .btp-app .btp-prompt-search{grid-column:1/-1!important}
}

/* Leads viram cards quando a largura útil fica estreita, mesmo em viewport
   desktop com painel lateral. Evita a barra horizontal gigante de 1180px. */
@container btp-content (max-width:900px){
  body .btp-app .btp-lead-workspace .btp-qualified-table{min-width:0!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table thead{display:none!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody{
    display:grid!important;gap:10px!important;padding:10px!important
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row{
    display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;
    gap:10px 12px!important;padding:14px!important;border:1px solid #e7e1d7!important;
    border-radius:18px!important;background:#fff!important;box-shadow:0 9px 22px rgba(17,25,36,.045)!important
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row[hidden]{display:none!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td{
    display:block!important;padding:0!important;border:0!important;text-align:left!important;min-width:0!important
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td::before{
    display:block!important;position:static!important;width:auto!important;margin:0 0 4px!important;
    color:#94681a!important;font-size:12px!important;font-weight:900!important;
    letter-spacing:.09em!important;text-transform:uppercase!important;content:attr(data-label)!important
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row .btp-select-col{
    grid-row:1/span 2!important;grid-column:1!important;align-self:start!important;padding-top:1px!important
  }
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row .btp-select-col::before{display:none!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td:nth-child(2){grid-column:2!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td:nth-child(n+3){grid-column:1/-1!important}
  body .btp-app .btp-qualified-table td[data-label="Contato"]>strong,
  body .btp-app .btp-qualified-table td[data-label="Avaliações"]>strong{white-space:normal!important}
  body .btp-app .btp-table-wrap{overflow-x:hidden!important;padding-inline:0!important;scrollbar-gutter:auto!important}
  body .btp-app .btp-quick-actions{justify-content:flex-start!important;flex-wrap:wrap!important}
}

@container btp-content (max-width:760px){
  body .btp-app .btp-search-core{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-dashboard-revenue-meta{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-message-toolbar,
  body .btp-app .btp-prompt-toolbar{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-message-search,
  body .btp-app .btp-prompt-search,
  body .btp-app .btp-message-count,
  body .btp-app .btp-prompt-count{grid-column:auto!important}
}

/* Tablet/mobile: títulos usam a largura disponível em vez de limites em "ch"
   que provocavam quebras artificiais. */
@media (max-width:900px){
  body .btp-app .btp-section-head h2,
  body .btp-app .btp-hero h2,
  body .btp-app .btp-dashboard-intro h2,
  body .btp-app .btp-plan-head h2,
  body .btp-app .btp-login-card h2{
    max-width:none!important;
  }
  body .btp-app .btp-section-head{gap:12px!important}
  body .btp-app .btp-panel{max-width:100%!important}
  body .btp-app .btp-modal-card{max-width:calc(100vw - 24px)!important}
}

@media (max-width:720px){
  body .btp-app .btp-main{padding:16px 12px calc(102px + env(safe-area-inset-bottom))!important}
  body .btp-app .btp-section-head h2,
  body .btp-app .btp-dashboard-intro h2{font-size:clamp(25px,7.4vw,31px)!important;line-height:1.08!important}
  body .btp-app .btp-section-head p,
  body .btp-app .btp-dashboard-intro p{font-size:13.5px!important;line-height:1.55!important}
  body .btp-app .btp-panel,
  body .btp-app .btp-goal-calculator,
  body .btp-app .btp-settings-card,
  body .btp-app .btp-profile-form,
  body .btp-app .btp-account-card{padding:18px!important;border-radius:20px!important}

  /* Bottom nav: labels legíveis e sem terceira linha. */
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle{min-height:60px!important;padding:8px 3px 7px!important}
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span[data-mobile]::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span[data-mobile]::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child::after{
    font-size:12px!important;line-height:1.1!important;letter-spacing:0!important;white-space:nowrap!important
  }
  body .btp-app .btp-nav-more button span:last-child{font-size:12px!important;line-height:1.25!important}

  /* Legibilidade dos microtextos operacionais. */
  body .btp-app .btp-history-copy>small{font-size:12px!important;line-height:1.4!important}
  body .btp-app .btp-history-copy>time,
  body .btp-app .btp-history-list article.btp-history-item time{font-size:12px!important}
  body .btp-app .btp-history-actions .btp-ghost{font-size:12px!important}
  body .btp-app .btp-support-ticket-row-status,
  body .btp-app .btp-support-status-pill,
  body .btp-app .btp-support-resolved-badge,
  body .btp-app .btp-support-resolved-toggle{font-size:12px!important}
  body .btp-app .btp-message-channel,
  body .btp-app .btp-prompt-date-cell small{font-size:12px!important}
  body .btp-app .btp-library-meta small{font-size:12px!important;line-height:1.4!important}

  /* Horizontal swipes continuam funcionando sem barra pesada no rodapé. */
  body .btp-app .btp-pipeline,
  body .btp-app .btp-pipe-list--disqualified{
    scrollbar-width:none!important;
  }
  body .btp-app .btp-pipeline::-webkit-scrollbar,
  body .btp-app .btp-pipe-list--disqualified::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

  /* Modais/drawers nunca ultrapassam safe areas. */
  body .btp-app .btp-modal{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important}
  body .btp-app .btp-modal:not(.is-lead-drawer) .btp-modal-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 16px)!important}
  body .btp-app .btp-modal-close{right:12px!important;top:12px!important}
}

@media (max-width:430px){
  body .btp-app .btp-main{padding-inline:10px!important}
  body .btp-app .btp-dashboard-kpis--lean,
  body .btp-app .btp-cards:not(.btp-cards-finance){grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-history-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-history-metric{min-height:60px!important;padding:8px 5px!important}
  body .btp-app .btp-history-metric span{font-size:12px!important;letter-spacing:.02em!important}
  body .btp-app .btp-opportunity-matrix{margin-inline:0!important;padding:13px!important}
  body .btp-app .btp-matrix-item{padding:11px!important;gap:4px 9px!important}
  body .btp-app .btp-matrix-item div span{font-size:12px!important}
  body .btp-app .btp-matrix-item>strong{font-size:17px!important}
}

/* URLs e identificadores podem quebrar; nomes comuns preservam palavras. */
body .btp-app a[href^="http"],
body .btp-app .btp-field-sources,
body .btp-app .btp-library-reader-content,
body .btp-app .btp-message-editor-preview,
body .btp-app .btp-ticket-message-row p{
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}

/* Evita que badges/ações comprimam o conteúdo principal em cards. */
body .btp-app .btp-ticket-top,
body .btp-app .btp-support-title-row,
body .btp-app .btp-current-plan-top,
body .btp-app .btp-dashboard-consumption-head,
body .btp-app .btp-dashboard-revenue-head{
  min-width:0!important;
}
@media (max-width:560px){
  body .btp-app .btp-ticket-top,
  body .btp-app .btp-support-title-row,
  body .btp-app .btp-current-plan-top,
  body .btp-app .btp-dashboard-consumption-head{
    flex-wrap:wrap!important;
  }
}

/* Complemento v0.49.2 — alturas reduzidas e scrollbars específicos. */
@media (min-width:721px) and (max-width:1320px) and (max-height:760px){
  body .btp-app .btp-sidebar{padding-top:8px!important;padding-bottom:8px!important}
  body .btp-app .btp-sidebar .btp-brand-wrap,
  body .btp-app .btp-sidebar .btp-sidebar-foot{display:none!important}
  body .btp-app .btp-sidebar nav.btp-nav{gap:2px!important}
  body .btp-app .btp-sidebar nav.btp-nav button{min-height:36px!important;padding:6px!important;border-radius:12px!important}
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-icon,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-figma-icon{width:19px!important;height:19px!important;min-width:19px!important}
}
body .btp-app .btp-table-wrap::-webkit-scrollbar,
body .btp-app .btp-closing-scroll::-webkit-scrollbar,
body .btp-app .btp-service-picker::-webkit-scrollbar,
body .btp-app .btp-ticket-list::-webkit-scrollbar,
body .btp-app .btp-ticket-thread::-webkit-scrollbar,
body .btp-app .btp-support-resolved-list::-webkit-scrollbar,
body .btp-app .btp-library-list::-webkit-scrollbar,
body .btp-app .btp-prompt-list::-webkit-scrollbar,
body .btp-app .btp-message-list::-webkit-scrollbar{width:8px!important;height:8px!important}

/* ==========================================================
   v0.49.2 · COMPLEMENTO POR LARGURA REAL — PÁGINAS SECUNDÁRIAS
   Mantém Mensagens, Prompts, Biblioteca, Resultados e Fechamentos
   confortáveis quando a viewport é grande mas o conteúdo foi estreitado
   por painel lateral do navegador, DevTools ou split screen.
========================================================== */
@container btp-content (max-width:960px){
  /* Biblioteca: evita quatro controles espremidos e ações comprimindo o título. */
  body .btp-app .btp-library-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(150px,210px)!important;
    align-items:end!important;
  }
  body .btp-app .btp-library-search{grid-column:1/-1!important}
  body .btp-app .btp-library-count{min-width:0!important}
  body .btp-app .btp-library-item{
    grid-template-columns:42px minmax(0,1fr)!important;
    grid-template-areas:"icon copy" "actions actions"!important;
    align-items:start!important;
  }
  body .btp-app .btp-library-icon{grid-area:icon!important}
  body .btp-app .btp-library-meta{grid-area:copy!important}
  body .btp-app .btp-library-actions{
    grid-area:actions!important;
    justify-content:flex-start!important;
    width:100%!important;
    padding-top:8px!important;
    border-top:1px solid #f0ece4!important;
  }

  /* Resultados: quatro KPIs deixam de ficar estreitos demais. */
  body .btp-app .btp-view[data-view="resultados"] .btp-cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .btp-app .btp-view[data-view="resultados"] .btp-cards article strong{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    font-size:clamp(24px,4.2cqw,30px)!important;
  }
}

@container btp-content (max-width:900px){
  /* Mensagens e Prompts passam ao layout intermediário pela largura REAL.
     Antes isso dependia apenas da viewport <=900px. */
  body .btp-app .btp-prompt-list-head,
  body .btp-app .btp-message-list-head{display:none!important}

  body .btp-app .btp-prompt-list-row,
  body .btp-app .btp-prompt-card.btp-prompt-list-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"main main" "category date" "actions actions"!important;
    gap:10px 12px!important;
    min-height:0!important;
    height:auto!important;
    padding:14px!important;
  }
  body .btp-app .btp-prompt-main{grid-area:main!important}
  body .btp-app .btp-prompt-category-cell{grid-area:category!important;min-width:0!important}
  body .btp-app .btp-prompt-date-cell{grid-area:date!important;justify-self:end!important;text-align:right!important;min-width:0!important}
  body .btp-app .btp-prompt-row-actions{
    grid-area:actions!important;width:100%!important;max-width:100%!important;
    justify-content:flex-start!important;flex-wrap:wrap!important;
    padding-top:9px!important;border-top:1px solid #f1ede5!important;overflow:visible!important
  }

  body .btp-app .btp-message-card.btp-message-list-row,
  body .btp-app .btp-message-list-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"main main" "category channel" "actions actions"!important;
    gap:10px 12px!important;
    min-height:0!important;
    height:auto!important;
    padding:14px!important;
  }
  body .btp-app .btp-message-main{grid-area:main!important}
  body .btp-app .btp-message-category-cell{grid-area:category!important;justify-self:start!important;min-width:0!important}
  body .btp-app .btp-message-channel-cell{grid-area:channel!important;justify-self:end!important;min-width:0!important}
  body .btp-app .btp-message-row-actions{
    grid-area:actions!important;width:100%!important;max-width:100%!important;
    justify-content:flex-start!important;flex-wrap:wrap!important;
    padding-top:9px!important;border-top:1px solid #f1ede5!important;overflow:visible!important
  }

  /* Não força ellipsis em títulos quando já estamos no modo de card. */
  body .btp-app .btp-prompt-main h3,
  body .btp-app .btp-message-list-copy h3,
  body .btp-app .btp-message-list-row .btp-message-preview{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body .btp-app .btp-message-list-row .btp-message-preview{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }
}

@container btp-content (max-width:900px){
  /* Fechamentos: tabela vira cards mesmo em split-screen/side panel. */
  body .btp-app .btp-closing-scroll{
    overflow-x:hidden!important;
    padding:8px!important;
    scrollbar-gutter:auto!important;
  }
  body .btp-app .btp-closing-table{
    min-width:0!important;width:100%!important;display:block!important;
  }
  body .btp-app .btp-closing-table thead{display:none!important}
  body .btp-app .btp-closing-table tbody{display:grid!important;gap:10px!important;width:100%!important}
  body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row){
    display:block!important;width:100%!important;padding:14px!important;
    border:1px solid #e8e3da!important;border-radius:18px!important;background:#fff!important;
  }
  body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row) td{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;
    width:100%!important;max-width:100%!important;padding:10px 0!important;
    text-align:left!important;border-bottom:1px solid #edf0f2!important;white-space:normal!important;
  }
  body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row) td::before{
    content:attr(data-label)!important;display:block!important;margin:0!important;
    color:#8b96a3!important;font-size:12px!important;line-height:1.2!important;
    letter-spacing:.09em!important;text-transform:uppercase!important;font-weight:850!important;
  }
  body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row) td:last-child{border-bottom:0!important}
  body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row) td>*{
    max-width:100%!important;margin-left:0!important;text-align:left!important;overflow-wrap:anywhere!important;
  }
}

@container btp-content (max-width:620px){
  body .btp-app .btp-library-toolbar{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-library-search{grid-column:auto!important}
  body .btp-app .btp-library-count{justify-content:flex-start!important}
  body .btp-app .btp-library-item{
    grid-template-columns:38px minmax(0,1fr)!important;
    gap:10px!important;padding:12px!important;
  }
  body .btp-app .btp-library-actions>*{flex:1 1 140px!important}
  body .btp-app .btp-view[data-view="resultados"] .btp-cards{
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* v0.49.2 · legibilidade mínima para textos operacionais que ainda herdavam 8px. */
.btp-login-scene-metrics small,
.btp-login-trajectory-head span{font-size:12px!important}
body .btp-app .btp-lead-decision-bar .btp-lead-score-hero div>small,
body .btp-app .btp-pipe-col h3 small,
body .btp-app .btp-subscription-meta small,
body .btp-app .btp-subscription-account small,
body .btp-app .btp-embedded-checkout-head em,
body .btp-app .btp-subscription-element-head em,
body .btp-app .btp-pipe-new-badge{font-size:12px!important;line-height:1.2!important}

/* ==========================================================
   v0.50.0 — Comercialização: próximas ações, follow-up e
   evidências mais claras. Mantém o design system Prospect.
========================================================== */
body .btp-app .btp-next-actions-panel{
  margin-top:14px!important;
  padding:18px!important;
  border:1px solid rgba(213,166,76,.16)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,252,246,.96))!important;
  overflow:hidden!important;
}
body .btp-app .btp-next-actions-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:14px!important;
}
body .btp-app .btp-next-actions-head>div{min-width:0!important}
body .btp-app .btp-next-actions-head span,
body .btp-app .btp-lead-task-head span{
  display:block!important;
  margin-bottom:4px!important;
  color:#9a6b14!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  line-height:1.2!important;
}
body .btp-app .btp-next-actions-head h3{margin:0!important;color:#162131!important;font-size:18px!important;line-height:1.2!important}
body .btp-app .btp-next-actions-head p{margin:5px 0 0!important;color:#8b96a3!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-next-action-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin-bottom:12px!important;
}
body .btp-app .btp-next-action-kpis article{
  min-width:0!important;
  padding:13px 14px!important;
  border:1px solid #ece4d6!important;
  border-radius:16px!important;
  background:#fff!important;
}
body .btp-app .btp-next-action-kpis article.is-alert{border-color:rgba(187,111,54,.28)!important;background:#fff9f3!important}
body .btp-app .btp-next-action-kpis small{display:block!important;color:#7f8a98!important;font-size:12px!important;font-weight:800!important;line-height:1.3!important}
body .btp-app .btp-next-action-kpis strong{display:block!important;margin:3px 0!important;color:#182334!important;font-size:24px!important;line-height:1!important}
body .btp-app .btp-next-action-kpis span{display:block!important;color:#9ca5af!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-next-task-list{display:grid!important;gap:8px!important}
body .btp-app .btp-next-task{
  display:grid!important;
  grid-template-columns:110px minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  min-width:0!important;
  padding:11px 12px!important;
  border:1px solid #eee7da!important;
  border-radius:14px!important;
  background:#fff!important;
}
body .btp-app .btp-next-task.is-overdue{border-color:rgba(185,111,58,.28)!important;background:#fffaf6!important}
body .btp-app .btp-next-task-time{min-width:0!important}
body .btp-app .btp-next-task-time strong{display:block!important;color:#263244!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important}
body .btp-app .btp-next-task-time span{display:block!important;margin-top:3px!important;color:#a0701d!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.06em!important}
body .btp-app .btp-next-task-copy{min-width:0!important}
body .btp-app .btp-next-task-copy strong{display:block!important;color:#172231!important;font-size:12px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
body .btp-app .btp-next-task-copy span{display:block!important;margin-top:2px!important;color:#778392!important;font-size:12px!important;line-height:1.3!important}
body .btp-app .btp-next-task-copy small{display:block!important;margin-top:3px!important;color:#9aa4ae!important;font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
body .btp-app .btp-next-task-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important}
body .btp-app .btp-next-actions-empty{padding:15px!important;border:1px dashed #e8dcc4!important;border-radius:14px!important;background:#fffdf9!important;text-align:center!important}
body .btp-app .btp-next-actions-empty strong{display:block!important;color:#273243!important;font-size:12px!important}
body .btp-app .btp-next-actions-empty p{margin:4px 0 0!important;color:#929ca8!important;font-size:12px!important;line-height:1.45!important}

body .btp-app .btp-lead-task-panel{
  margin:14px 0!important;
  padding:15px!important;
  border:1px solid #eadfc8!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fffdf8,#fff9ee)!important;
}
body .btp-app .btp-lead-task-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;margin-bottom:10px!important}
body .btp-app .btp-lead-task-head>div{min-width:0!important}
body .btp-app .btp-lead-task-head strong{display:block!important;color:#1c2736!important;font-size:13px!important;line-height:1.3!important}
body .btp-app .btp-lead-task-head em{flex:0 0 auto!important;padding:5px 8px!important;border-radius:999px!important;background:#f6ead0!important;color:#8a6115!important;font-size:12px!important;font-style:normal!important;font-weight:900!important;white-space:nowrap!important}
body .btp-app .btp-lead-task-list{display:grid!important;gap:7px!important;margin-bottom:11px!important}
body .btp-app .btp-lead-task-item{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;padding:10px 11px!important;border:1px solid #eee4d1!important;border-radius:13px!important;background:#fff!important}
body .btp-app .btp-lead-task-item>div:first-child{min-width:0!important}
body .btp-app .btp-lead-task-item>div:first-child strong{display:block!important;color:#263142!important;font-size:12px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
body .btp-app .btp-lead-task-item>div:first-child span{display:block!important;margin-top:3px!important;color:#966918!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-lead-task-item>div:first-child small{display:block!important;margin-top:3px!important;color:#8f99a5!important;font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
body .btp-app .btp-lead-task-item>div:last-child{display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important}
body .btp-app .btp-task-delete{width:32px!important;height:32px!important;display:grid!important;place-items:center!important;border:1px solid #e6ddd0!important;border-radius:10px!important;background:#fff!important;color:#9b7160!important;font-size:16px!important;line-height:1!important;cursor:pointer!important}
body .btp-app .btp-task-delete:hover{background:#fff7f3!important;border-color:#e0b8a5!important;color:#8e4f35!important}
body .btp-app .btp-task-form{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
body .btp-app .btp-task-form label{display:grid!important;gap:5px!important;min-width:0!important;color:#6f7986!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-task-form label.wide,
body .btp-app .btp-task-form .wide{grid-column:1/-1!important}
body .btp-app .btp-task-form input,
body .btp-app .btp-task-form select,
body .btp-app .btp-task-form textarea{width:100%!important;min-width:0!important;border:1px solid #dfe3e8!important;border-radius:12px!important;background:#fff!important;color:#1f2a39!important;font:600 12px/1.35 inherit!important;box-shadow:none!important}
body .btp-app .btp-task-form input,
body .btp-app .btp-task-form select{min-height:40px!important;padding:0 11px!important}
body .btp-app .btp-task-form textarea{padding:10px 11px!important;resize:vertical!important}
body .btp-app .btp-task-form input:focus,
body .btp-app .btp-task-form select:focus,
body .btp-app .btp-task-form textarea:focus{outline:0!important;border-color:#d09a35!important;box-shadow:0 0 0 3px rgba(208,154,53,.12)!important}

body .btp-app .btp-matrix-method-note{margin:10px 0 0!important;color:#929ca8!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-evidence-status{display:grid!important;grid-template-columns:auto auto 1fr!important;gap:8px!important;align-items:center!important;margin-bottom:10px!important;padding:9px 10px!important;border:1px solid #ece1cd!important;border-radius:12px!important;background:#fffaf0!important}
body .btp-app .btp-evidence-status span{color:#8b6114!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.07em!important}
body .btp-app .btp-evidence-status strong{color:#1e2a39!important;font-size:12px!important;white-space:nowrap!important}
body .btp-app .btp-evidence-status small{color:#88939f!important;font-size:12px!important;line-height:1.35!important;min-width:0!important}

@media(max-width:1120px){
  body .btp-app .btp-next-action-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-next-task{grid-template-columns:95px minmax(0,1fr)!important}
  body .btp-app .btp-next-task-actions{grid-column:1/-1!important;justify-content:flex-start!important}
}
@media(max-width:760px){
  body .btp-app .btp-next-actions-panel{padding:14px!important}
  body .btp-app .btp-next-actions-head{display:grid!important;grid-template-columns:1fr!important}
  body .btp-app .btp-next-action-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body .btp-app .btp-next-task{grid-template-columns:1fr!important;gap:7px!important}
  body .btp-app .btp-next-task-time{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
  body .btp-app .btp-next-task-actions{grid-column:auto!important;justify-content:flex-start!important}
  body .btp-app .btp-task-form{grid-template-columns:1fr!important}
  body .btp-app .btp-task-form label.wide,
  body .btp-app .btp-task-form .wide{grid-column:auto!important}
  body .btp-app .btp-evidence-status{grid-template-columns:1fr auto!important}
  body .btp-app .btp-evidence-status small{grid-column:1/-1!important}
}
@media(max-width:460px){
  body .btp-app .btp-next-action-kpis{grid-template-columns:1fr!important}
  body .btp-app .btp-next-action-kpis article{padding:11px 12px!important}
  body .btp-app .btp-lead-task-item{display:grid!important;grid-template-columns:1fr!important}
  body .btp-app .btp-lead-task-item>div:last-child{justify-content:flex-start!important}
}

/* ==========================================================
   v0.51.0 — Dashboard operacional + Leads enxuto + Drawer focado
   - Dashboard deixa de repetir a tabela de Leads.
   - Status comercial passa a ser gerenciado dentro do diagnóstico.
   - A listagem prioriza leitura e ações rápidas sem botões quebrados.
========================================================== */
body .btp-app .btp-action-center-links{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;
}
body .btp-app .btp-action-center-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body .btp-app .btp-action-queue{display:grid!important;gap:8px!important;margin-top:4px!important}
body .btp-app .btp-action-queue-item{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important;align-items:center!important;
  padding:13px 14px!important;border:1px solid #ebe2d2!important;border-radius:15px!important;background:#fff!important;
}
body .btp-app .btp-action-queue-item.is-overdue{border-color:rgba(177,103,50,.34)!important;background:#fff9f4!important}
body .btp-app .btp-action-queue-copy{min-width:0!important}
body .btp-app .btp-action-queue-copy>span{display:block!important;margin-bottom:3px!important;color:#a16e16!important;font-size:12px!important;font-weight:900!important;letter-spacing:.1em!important}
body .btp-app .btp-action-queue-copy>strong{display:block!important;color:#192535!important;font-size:13px!important;line-height:1.3!important;overflow-wrap:break-word!important}
body .btp-app .btp-action-queue-copy>p{margin:3px 0 0!important;color:#74808f!important;font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-action-queue-copy>small{display:block!important;margin-top:5px!important;color:#9aa4af!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-action-queue-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important}
body .btp-app .btp-action-queue-actions .btp-mini,
body .btp-app .btp-action-queue-actions .btp-primary{white-space:nowrap!important}

/* Leads: a etapa comercial não disputa mais espaço na tabela. */
body .btp-app .btp-lead-mode-manage .btp-qualified-table{min-width:1040px!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(2){width:20%!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(3){width:17%!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(4){width:14%!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(5){width:10%!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(6){width:27%!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(7){width:12%!important}
body .btp-app .btp-lead-mode-discovery .btp-qualified-table{min-width:980px!important}
body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(1){width:21%!important}
body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(2){width:18%!important}
body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(3){width:15%!important}
body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(4){width:10%!important}
body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(5){width:26%!important}
body .btp-app .btp-lead-mode-discovery .btp-qualified-table th:nth-child(6){width:10%!important}
body .btp-app .btp-site-cell small.is-audit-pending{display:inline-flex!important;align-items:center!important;color:#a16d16!important;font-weight:800!important}
body .btp-app .btp-quick-actions{justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important}
body .btp-app .btp-quick-actions .btp-icon-action{flex:0 0 38px!important}

/* Drawer: etapa comercial no lugar certo e hierarquia menor. */
body .btp-app .btp-lead-stage-card{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(190px,230px)!important;gap:16px!important;align-items:center!important;
  margin:12px 0!important;padding:13px 14px!important;border:1px solid #e8dcc3!important;border-radius:16px!important;background:linear-gradient(145deg,#fffaf0,#fffdf8)!important;
}
body .btp-app .btp-lead-stage-card>div{min-width:0!important}
body .btp-app .btp-lead-stage-card>div>span,
body .btp-app .btp-lead-stage-card label>span{display:block!important;color:#a06c15!important;font-size:12px!important;font-weight:900!important;letter-spacing:.1em!important;text-transform:uppercase!important}
body .btp-app .btp-lead-stage-card>div>strong{display:block!important;margin-top:3px!important;color:#172334!important;font-size:15px!important;line-height:1.2!important}
body .btp-app .btp-lead-stage-card>div>small{display:block!important;margin-top:3px!important;color:#8d98a4!important;font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-lead-stage-card label{display:grid!important;gap:5px!important;min-width:0!important}
body .btp-app .btp-lead-stage-card select{width:100%!important;min-width:0!important;height:40px!important;padding:0 34px 0 12px!important;border:1px solid #e1d8c8!important;border-radius:12px!important;background:#fff!important;color:#1d2a3a!important;font-size:12px!important;font-weight:800!important;outline:0!important}
body .btp-app .btp-lead-stage-card label>em{color:#9b6b19!important;font-size:12px!important;font-style:normal!important;font-weight:800!important}
body .btp-app .btp-lead-stage-card.is-locked{grid-template-columns:1fr!important;background:#faf8f3!important}

body .btp-app .btp-service-focus-note--compact{
  display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;align-items:center!important;gap:8px 10px!important;padding:11px 13px!important;margin:10px 0!important;
}
body .btp-app .btp-service-focus-note--compact>p{margin:0!important;font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-service-focus-note--compact>strong{font-size:12px!important;white-space:nowrap!important}

body .btp-app .btp-core-metrics{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:12px 0!important;
}
body .btp-app .btp-core-metrics>div{min-width:0!important;padding:12px!important;border:1px solid #eee5d5!important;border-radius:14px!important;background:#fff!important}
body .btp-app .btp-core-metrics span{display:block!important;color:#8b96a3!important;font-size:12px!important;font-weight:900!important;letter-spacing:.05em!important;text-transform:uppercase!important}
body .btp-app .btp-core-metrics strong{display:block!important;margin-top:5px!important;color:#1a2636!important;font-size:17px!important;line-height:1.1!important;overflow-wrap:break-word!important}
body .btp-app .btp-core-metrics small{display:block!important;margin-top:4px!important;color:#9aa4ae!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-next-step-inline{margin:9px 0 12px!important;padding:10px 12px!important;border-left:3px solid #d5a13d!important;border-radius:0 12px 12px 0!important;background:#fffaf0!important}
body .btp-app .btp-next-step-inline span{display:block!important;color:#9b6812!important;font-size:12px!important;font-weight:900!important;letter-spacing:.09em!important}
body .btp-app .btp-next-step-inline p{margin:4px 0 0!important;color:#596574!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-matrix-fold{margin-top:10px!important}
body .btp-app .btp-matrix-intro{margin-bottom:10px!important;color:#7f8a97!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-lead-public-data--focused{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body .btp-app .btp-lead-public-data--focused>div{min-width:0!important}
body .btp-app .btp-lead-public-data--focused strong{overflow-wrap:anywhere!important}
body .btp-app .btp-offer-recommendation--focused{margin-bottom:8px!important}
body .btp-app .btp-drawer-operations--focused{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body .btp-app .btp-drawer-operations--focused .btp-mini{width:100%!important;min-width:0!important;white-space:nowrap!important;padding-inline:10px!important;font-size:12px!important}
body .btp-app .btp-drawer-actionbar--focused{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
body .btp-app .btp-drawer-actionbar--focused>*{white-space:nowrap!important}

@media (max-width:1100px){
  body .btp-app .btp-action-center-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-core-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:760px){
  body .btp-app .btp-action-center-links{justify-content:flex-start!important}
  body .btp-app .btp-action-center-links>*{flex:1 1 auto!important}
  body .btp-app .btp-action-queue-item{grid-template-columns:1fr!important;gap:9px!important}
  body .btp-app .btp-action-queue-actions{justify-content:flex-start!important}
  body .btp-app .btp-lead-stage-card{grid-template-columns:1fr!important;gap:10px!important}
  body .btp-app .btp-service-focus-note--compact{grid-template-columns:1fr!important;gap:4px!important}
  body .btp-app .btp-service-focus-note--compact>strong{white-space:normal!important}
  body .btp-app .btp-lead-public-data--focused{grid-template-columns:1fr!important}
  body .btp-app .btp-drawer-operations--focused{grid-template-columns:1fr!important}
  body .btp-app .btp-drawer-operations--focused .btp-mini{white-space:normal!important;min-height:42px!important}
  body .btp-app .btp-drawer-actionbar--focused{grid-template-columns:1fr!important}
}
@media (max-width:520px){
  body .btp-app .btp-action-center-kpis{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body .btp-app .btp-core-metrics{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body .btp-app .btp-core-metrics>div{padding:10px!important}
  body .btp-app .btp-action-queue-actions>*{width:100%!important;justify-content:center!important}
}

/* Drawer focused gets a little more breathing room on wide screens, while
   still collapsing to the existing mobile sheet rules. */
@media (min-width:761px){
  body .btp-app .btp-modal.is-lead-drawer .btp-modal-card{width:min(720px,94vw)!important}
  body .btp-app .btp-lead-detail--focused .btp-lead-detail-head h2{max-width:none!important;overflow-wrap:break-word!important}
}

/* ==========================================================
   v0.52.0 — Leads refinados + Acompanhamento comercial
   Objetivos: remover filtros nativos inconsistentes, equilibrar tipografia,
   centralizar follow-ups/atividades e preservar a identidade preto/dourado/creme.
========================================================== */

/* ---------- Leads: toolbar e filtros ---------- */
body .btp-app .btp-workspace-toolbar--refined{
  display:grid!important;
  grid-template-columns:minmax(300px,1.55fr) minmax(210px,.8fr) minmax(210px,.8fr)!important;
  gap:12px!important;
  align-items:end!important;
  padding:12px 14px!important;
  margin:0 12px 12px!important;
  border:1px solid #ece4d7!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#fff,#fffdf9)!important;
}
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{
  min-height:48px!important;
  border:1px solid #dfe3e7!important;
  border-radius:15px!important;
  background:#fff!important;
  padding:0 14px!important;
}
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search input{
  min-height:46px!important;
  font-size:13px!important;
  line-height:1.3!important;
  color:#243142!important;
}
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search .dashicons{width:18px!important;height:18px!important}
body .btp-app .btp-workspace-control{display:grid!important;gap:6px!important;min-width:0!important}
body .btp-app .btp-workspace-control>span{
  display:block!important;
  padding-left:3px!important;
  color:#7f8b98!important;
  font-size:12px!important;
  line-height:1.2!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  font-weight:850!important;
}
body .btp-app .btp-workspace-brand-select .btp-brand-select-trigger{
  min-height:48px!important;
  height:48px!important;
  padding:0 14px!important;
  border-radius:15px!important;
  border-color:#dfe3e7!important;
  background:#fff!important;
  font-size:12.5px!important;
  font-weight:750!important;
}
body .btp-app .btp-workspace-brand-select .btp-brand-select-trigger:hover{background:#fffaf0!important;border-color:#d9b667!important}
body .btp-app .btp-workspace-brand-select .btp-brand-select-menu{
  top:calc(100% + 6px)!important;
  max-height:320px!important;
  padding:7px!important;
  border-radius:15px!important;
  border-color:#e7dcc6!important;
  background:#fffdf9!important;
  box-shadow:0 20px 48px rgba(17,28,41,.16)!important;
  z-index:900!important;
}
body .btp-app .btp-workspace-brand-select .btp-brand-select-menu button{
  min-height:40px!important;
  padding:9px 11px!important;
  border-radius:10px!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:650!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
body .btp-app .btp-workspace-brand-select .btp-brand-select-menu button.is-selected{
  background:#f6e7bd!important;color:#172131!important;font-weight:850!important;
}
body .btp-app .btp-lead-kpis{
  gap:9px!important;
  padding:0 12px 12px!important;
}
body .btp-app .btp-lead-kpis button{
  min-height:66px!important;
  padding:11px 13px!important;
  border-radius:16px!important;
}
body .btp-app .btp-lead-kpis button span{font-size:12px!important;line-height:1.2!important}
body .btp-app .btp-lead-kpis button strong{font-size:21px!important;line-height:1!important;margin-top:4px!important}

/* ---------- Leads: listagem ---------- */
body .btp-app .btp-lead-mode-manage .btp-qualified-table{
  min-width:980px!important;
  table-layout:fixed!important;
}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th,
body .btp-app .btp-lead-mode-manage .btp-qualified-table td{
  padding:17px 14px!important;
  vertical-align:middle!important;
}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th{
  font-size:12px!important;
  line-height:1.2!important;
  letter-spacing:.095em!important;
  color:#8995a2!important;
}
body .btp-app .btp-lead-mode-manage .btp-company-cell>strong{
  font-size:13px!important;
  line-height:1.28!important;
  color:#172230!important;
}
body .btp-app .btp-lead-mode-manage .btp-company-cell>small,
body .btp-app .btp-lead-mode-manage .btp-site-cell>small,
body .btp-app .btp-lead-mode-manage td[data-label="Contato"]>small,
body .btp-app .btp-lead-mode-manage td[data-label="Avaliações"]>small{
  font-size:12px!important;
  line-height:1.4!important;
  color:#8f9aa6!important;
}
body .btp-app .btp-lead-mode-manage td[data-label="Contato"]>strong,
body .btp-app .btp-lead-mode-manage td[data-label="Avaliações"]>strong,
body .btp-app .btp-lead-mode-manage .btp-site-cell>strong{
  font-size:12.5px!important;
  line-height:1.3!important;
}
body .btp-app .btp-lead-mode-manage .btp-opportunity-cell{
  gap:6px!important;
}
body .btp-app .btp-lead-mode-manage .btp-opportunity-cell>strong{
  font-size:12px!important;
  line-height:1.32!important;
  color:#223043!important;
}
body .btp-app .btp-lead-mode-manage .btp-opportunity-tags{gap:5px!important;align-items:center!important}
body .btp-app .btp-lead-mode-manage .btp-service-focus-tag,
body .btp-app .btp-lead-mode-manage .btp-analysis-state,
body .btp-app .btp-lead-mode-manage .btp-best-service-tag{
  max-width:100%!important;
  font-size:12px!important;
  line-height:1.15!important;
  white-space:normal!important;
}
body .btp-app .btp-lead-mode-manage .btp-score-inline{gap:7px!important;align-items:center!important}
body .btp-app .btp-lead-mode-manage .btp-score-inline .btp-score{width:38px!important;height:38px!important;border-radius:12px!important;font-size:13px!important}
body .btp-app .btp-lead-mode-manage .btp-priority-tag{font-size:12px!important;padding:5px 7px!important}
body .btp-app .btp-lead-mode-manage .btp-quick-actions{
  display:grid!important;
  grid-template-columns:repeat(2,38px)!important;
  justify-content:end!important;
  align-content:center!important;
  gap:7px!important;
  margin-left:auto!important;
  width:max-content!important;
}
body .btp-app .btp-lead-mode-manage .btp-quick-actions .btp-icon-action{
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(2){width:20%!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(3){width:18%!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(4){width:14%!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(5){width:10%!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(6){width:28%!important}
body .btp-app .btp-lead-mode-manage .btp-qualified-table th:nth-child(7){width:10%!important}

/* ---------- Drawer: tarefas e registro comercial ---------- */
body .btp-app .btp-lead-task-head-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
body .btp-app .btp-lead-task-head-actions .btp-link-button{font-size:12px!important;white-space:nowrap!important}
body .btp-app .btp-task-feedback{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  margin:0 0 10px!important;padding:10px 12px!important;border:1px solid #e5d7b9!important;border-radius:12px!important;
  background:#fff9ec!important;color:#66522e!important;font-size:12px!important;line-height:1.35!important;
}
body .btp-app .btp-task-feedback button{border:0!important;background:transparent!important;color:#8f6416!important;font:inherit!important;font-weight:850!important;cursor:pointer!important;white-space:nowrap!important}
body .btp-app .btp-task-delete,
body .btp-app .btp-followup-task-delete{
  border:1px solid #e2d5bd!important;
  background:#fffaf0!important;
  color:#7a5a20!important;
  box-shadow:none!important;
}
body .btp-app .btp-task-delete:hover,
body .btp-app .btp-followup-task-delete:hover{
  border-color:#d4ad5f!important;background:#f8edda!important;color:#5e451b!important;
}
body .btp-app .btp-commercial-log-fold{margin-top:12px!important}
body .btp-app .btp-commercial-recent-list{display:grid!important;gap:7px!important;margin-bottom:11px!important}
body .btp-app .btp-commercial-recent-list article{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px 10px!important;
  padding:9px 10px!important;border:1px solid #eee5d5!important;border-radius:12px!important;background:#fff!important;
}
body .btp-app .btp-commercial-recent-list article>div{display:flex!important;gap:8px!important;align-items:center!important;justify-content:space-between!important;min-width:0!important}
body .btp-app .btp-commercial-recent-list strong{font-size:12px!important;color:#263244!important;overflow-wrap:anywhere!important}
body .btp-app .btp-commercial-recent-list span,
body .btp-app .btp-commercial-recent-list small{font-size:12px!important;color:#8a95a1!important;line-height:1.35!important}
body .btp-app .btp-commercial-recent-list small{grid-column:1/-1!important}
body .btp-app .btp-commercial-activity-form{display:grid!important;gap:10px!important}
body .btp-app .btp-commercial-activity-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body .btp-app .btp-commercial-activity-form label{display:grid!important;gap:5px!important;min-width:0!important}
body .btp-app .btp-commercial-activity-form label>span{font-size:12px!important;font-weight:850!important;color:#6f7a87!important}
body .btp-app .btp-commercial-activity-form label.wide{grid-column:1/-1!important}
body .btp-app .btp-commercial-activity-form select,
body .btp-app .btp-commercial-activity-form textarea{
  width:100%!important;min-width:0!important;border:1px solid #dde2e7!important;border-radius:12px!important;background:#fff!important;color:#1f2a39!important;font:650 12px/1.35 inherit!important;box-shadow:none!important;
}
body .btp-app .btp-commercial-activity-form select{height:41px!important;padding:0 11px!important}
body .btp-app .btp-commercial-activity-form textarea{padding:10px 11px!important;resize:vertical!important}
body .btp-app .btp-commercial-activity-form select:focus,
body .btp-app .btp-commercial-activity-form textarea:focus{outline:0!important;border-color:#ce9a38!important;box-shadow:0 0 0 3px rgba(206,154,56,.12)!important}
body .btp-app .btp-commercial-activity-form>.btp-primary{width:100%!important;min-height:42px!important}
body .btp-app .btp-commercial-form-note{margin:0!important;color:#8c96a2!important;font-size:12px!important;line-height:1.45!important}

/* ---------- Acompanhamento ---------- */
body .btp-app .btp-followup-page-head p strong{color:#283548!important}
body .btp-app .btp-followup-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-bottom:14px!important}
body .btp-app .btp-followup-kpis article{min-width:0!important;padding:16px!important;border:1px solid #e8e2d7!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 22px rgba(17,27,39,.035)!important}
body .btp-app .btp-followup-kpis article.is-alert{border-color:#deb573!important;background:#fff9ef!important}
body .btp-app .btp-followup-kpis span{display:block!important;color:#7d8996!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-followup-kpis strong{display:block!important;margin:4px 0!important;color:#162232!important;font-size:28px!important;line-height:1!important}
body .btp-app .btp-followup-kpis small{display:block!important;color:#9aa3ad!important;font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-followup-agenda,
body .btp-app .btp-commercial-report,
body .btp-app .btp-commercial-activity-log{padding:18px!important;margin-bottom:14px!important}
body .btp-app .btp-followup-section-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;margin-bottom:14px!important}
body .btp-app .btp-followup-section-head>div{min-width:0!important}
body .btp-app .btp-followup-section-head>div>span{display:block!important;margin-bottom:4px!important;color:#9b6a14!important;font-size:12px!important;font-weight:900!important;letter-spacing:.11em!important}
body .btp-app .btp-followup-section-head h3{margin:0!important;color:#182435!important;font-size:19px!important;line-height:1.2!important}
body .btp-app .btp-followup-section-head p{margin:5px 0 0!important;color:#7e8996!important;font-size:12px!important;line-height:1.45!important;max-width:760px!important}
body .btp-app .btp-followup-task-list{display:grid!important;gap:8px!important}
body .btp-app .btp-followup-task-row{
  display:grid!important;grid-template-columns:76px minmax(0,1.4fr) minmax(120px,.55fr) auto!important;gap:12px!important;align-items:center!important;
  padding:12px!important;border:1px solid #ece4d5!important;border-radius:15px!important;background:#fff!important;
}
body .btp-app .btp-followup-task-row.is-overdue{border-color:#dbb06a!important;background:#fffaf2!important}
body .btp-app .btp-followup-task-row.is-today{border-color:#e1c88d!important;background:#fffdf7!important}
body .btp-app .btp-followup-task-date{text-align:center!important;padding:8px!important;border-radius:12px!important;background:#f8f3e8!important}
body .btp-app .btp-followup-task-date span{display:block!important;color:#986715!important;font-size:12px!important;font-weight:900!important;letter-spacing:.08em!important}
body .btp-app .btp-followup-task-date strong{display:block!important;margin-top:2px!important;color:#1d2938!important;font-size:17px!important}
body .btp-app .btp-followup-task-date small{display:block!important;color:#7d8793!important;font-size:12px!important}
body .btp-app .btp-followup-task-copy{min-width:0!important}
body .btp-app .btp-followup-task-copy>span{display:block!important;color:#9a6b19!important;font-size:12px!important;font-weight:850!important}
body .btp-app .btp-followup-task-copy>strong{display:block!important;margin-top:2px!important;color:#1b2737!important;font-size:13px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
body .btp-app .btp-followup-task-copy>p{margin:3px 0 0!important;color:#536171!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-followup-task-copy>small{display:block!important;margin-top:3px!important;color:#929ca7!important;font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-followup-task-meta{min-width:0!important;padding-left:10px!important;border-left:1px solid #eee7dc!important}
body .btp-app .btp-followup-task-meta span{display:block!important;color:#233143!important;font-size:12px!important;font-weight:800!important;overflow-wrap:anywhere!important}
body .btp-app .btp-followup-task-meta small{display:block!important;margin-top:3px!important;color:#8d98a4!important;font-size:12px!important}
body .btp-app .btp-followup-task-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important}
body .btp-app .btp-followup-task-actions>*{white-space:nowrap!important}
body .btp-app .btp-followup-empty{text-align:center!important;padding:34px 18px!important;border:1px dashed #e2d8c7!important;border-radius:16px!important;background:#fffdf9!important}
body .btp-app .btp-followup-empty strong{display:block!important;color:#223043!important;font-size:15px!important}
body .btp-app .btp-followup-empty p{margin:6px auto 12px!important;color:#87929e!important;font-size:12px!important;line-height:1.5!important;max-width:620px!important}
body .btp-app .btp-followup-empty .btp-primary{width:auto!important;display:inline-flex!important}

body .btp-app .btp-report-period-switch{display:flex!important;gap:5px!important;padding:4px!important;border:1px solid #e5dccb!important;border-radius:14px!important;background:#f8f4ec!important}
body .btp-app .btp-report-period-switch button{min-height:34px!important;padding:0 12px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#697684!important;font:750 12px/1 inherit!important;cursor:pointer!important}
body .btp-app .btp-report-period-switch button.is-active{background:#172536!important;color:#f2cf78!important;box-shadow:0 5px 12px rgba(17,28,41,.12)!important}
body .btp-app .btp-commercial-report-period[hidden]{display:none!important}
body .btp-app .btp-commercial-report-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;margin-bottom:12px!important}
body .btp-app .btp-commercial-report-kpis article{padding:13px!important;border:1px solid #ebe4d8!important;border-radius:15px!important;background:#fff!important;min-width:0!important}
body .btp-app .btp-commercial-report-kpis span{display:block!important;color:#7f8a97!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-commercial-report-kpis strong{display:block!important;margin:3px 0!important;color:#182536!important;font-size:23px!important}
body .btp-app .btp-commercial-report-kpis small{display:block!important;color:#939da8!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-commercial-report-kpis small.is-positive{color:#4b7b61!important;font-weight:800!important}
body .btp-app .btp-commercial-report-kpis small.is-negative{color:#916650!important;font-weight:800!important}
body .btp-app .btp-commercial-report-grid{display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr)!important;gap:10px!important}
body .btp-app .btp-report-table-card{min-width:0!important;padding:14px!important;border:1px solid #ebe3d6!important;border-radius:16px!important;background:#fff!important}
body .btp-app .btp-report-card-head>span{display:block!important;color:#9b6a14!important;font-size:12px!important;font-weight:900!important;letter-spacing:.09em!important}
body .btp-app .btp-report-card-head h4{margin:3px 0 0!important;color:#1d2a3a!important;font-size:15px!important}
body .btp-app .btp-report-card-head p{margin:5px 0 11px!important;color:#8a95a1!important;font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-report-format-list{display:grid!important;gap:6px!important}
body .btp-app .btp-report-format-list article{display:grid!important;grid-template-columns:minmax(0,1fr) 100px 90px!important;gap:8px!important;align-items:center!important;padding:9px 10px!important;border:1px solid #f0ebe2!important;border-radius:12px!important;background:#fffdf9!important}
body .btp-app .btp-report-format-list article>div{min-width:0!important}
body .btp-app .btp-report-format-list strong{display:block!important;color:#263345!important;font-size:12px!important;overflow-wrap:anywhere!important}
body .btp-app .btp-report-format-list span{display:block!important;margin-top:2px!important;color:#919ba6!important;font-size:12px!important}
body .btp-app .btp-report-format-list b{display:block!important;color:#9a6812!important;font-size:13px!important}
body .btp-app .btp-report-format-list small{display:block!important;color:#9aa3ad!important;font-size:12px!important}
body .btp-app .btp-report-service-list{display:grid!important;gap:6px!important}
body .btp-app .btp-report-service-list article{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:10px!important;border:1px solid #efe9df!important;border-radius:12px!important;background:#fffdf9!important}
body .btp-app .btp-report-service-list span{color:#2a3748!important;font-size:12px!important;font-weight:750!important;overflow-wrap:anywhere!important}
body .btp-app .btp-report-service-list strong{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;flex:0 0 30px!important;border-radius:10px!important;background:#f5e4bb!important;color:#7e5915!important;font-size:12px!important}
body .btp-app .btp-report-empty{padding:22px 12px!important;text-align:center!important;color:#8d98a4!important;font-size:12px!important;border:1px dashed #e8dfd0!important;border-radius:12px!important}
body .btp-app .btp-commercial-activity-list{display:grid!important;gap:6px!important}
body .btp-app .btp-commercial-activity-list article{display:grid!important;grid-template-columns:minmax(180px,.8fr) minmax(200px,1fr) minmax(220px,1.2fr)!important;gap:10px!important;padding:10px 11px!important;border:1px solid #eee7dc!important;border-radius:12px!important;background:#fff!important;align-items:start!important}
body .btp-app .btp-commercial-activity-list article>div{min-width:0!important}
body .btp-app .btp-commercial-activity-list span{display:block!important;color:#9a6b18!important;font-size:12px!important;font-weight:850!important}
body .btp-app .btp-commercial-activity-list strong{display:block!important;margin-top:2px!important;color:#213043!important;font-size:12px!important;overflow-wrap:anywhere!important}
body .btp-app .btp-commercial-activity-list small{display:block!important;margin-top:2px!important;color:#8c97a3!important;font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important}

/* Botões operacionais: identidade única, sem rosa/magenta herdado. */
body .btp-app .btp-followup-task-actions .btp-primary,
body .btp-app .btp-followup-task-actions .btp-mini,
body .btp-app .btp-commercial-activity-form .btp-primary,
body .btp-app .btp-drawer-operations--focused .btp-mini,
body .btp-app .btp-task-form .btp-primary{
  --e-global-color-accent:#d6a34b!important;
  background-image:none!important;
}
body .btp-app .btp-followup-task-actions .btp-primary,
body .btp-app .btp-commercial-activity-form .btp-primary,
body .btp-app .btp-task-form .btp-primary{
  background:linear-gradient(180deg,#f0cc78 0%,#d8a442 100%)!important;
  border:1px solid #c99532!important;
  color:#18130b!important;
}
body .btp-app .btp-followup-task-actions .btp-mini,
body .btp-app .btp-drawer-operations--focused .btp-mini{
  background:#fffaf0!important;border:1px solid #e4d8c1!important;color:#263345!important;
}

@container btp-content (max-width:1120px){
  body .btp-app .btp-workspace-toolbar--refined{grid-template-columns:minmax(0,1fr) minmax(190px,.55fr)!important}
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{grid-column:1/-1!important}
  body .btp-app .btp-followup-kpis,
  body .btp-app .btp-commercial-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-commercial-report-grid{grid-template-columns:1fr!important}
  body .btp-app .btp-followup-task-row{grid-template-columns:70px minmax(0,1fr) auto!important}
  body .btp-app .btp-followup-task-meta{display:none!important}
}
@container btp-content (max-width:900px){
  body .btp-app .btp-workspace-toolbar--refined{grid-template-columns:1fr!important;margin-inline:10px!important}
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{grid-column:auto!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table tbody tr.btp-lead-row{font-size:inherit!important}
  body .btp-app .btp-lead-mode-manage .btp-quick-actions{display:flex!important;width:auto!important;margin-left:0!important;justify-content:flex-start!important}
  body .btp-app .btp-commercial-activity-list article{grid-template-columns:1fr 1fr!important}
  body .btp-app .btp-commercial-activity-list article>div:last-child{grid-column:1/-1!important}
}
@media (max-width:760px){
  body .btp-app .btp-commercial-activity-grid{grid-template-columns:1fr!important}
  body .btp-app .btp-commercial-activity-form label.wide{grid-column:auto!important}
  body .btp-app .btp-followup-section-head{display:grid!important;grid-template-columns:1fr!important}
  body .btp-app .btp-report-period-switch{width:100%!important}
  body .btp-app .btp-report-period-switch button{flex:1 1 0!important}
  body .btp-app .btp-followup-task-row{grid-template-columns:58px minmax(0,1fr)!important;align-items:start!important}
  body .btp-app .btp-followup-task-actions{grid-column:1/-1!important;justify-content:flex-start!important;padding-top:7px!important;border-top:1px solid #eee7dc!important}
  body .btp-app .btp-report-format-list article{grid-template-columns:minmax(0,1fr) auto auto!important}
}
@media (max-width:560px){
  body .btp-app .btp-followup-kpis,
  body .btp-app .btp-commercial-report-kpis{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body .btp-app .btp-followup-kpis article,
  body .btp-app .btp-commercial-report-kpis article{padding:11px!important}
  body .btp-app .btp-followup-kpis strong,
  body .btp-app .btp-commercial-report-kpis strong{font-size:22px!important}
  body .btp-app .btp-followup-task-row{grid-template-columns:1fr!important}
  body .btp-app .btp-followup-task-date{display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-start!important;text-align:left!important;width:max-content!important}
  body .btp-app .btp-followup-task-date strong{font-size:14px!important;margin:0!important}
  body .btp-app .btp-followup-task-actions{grid-column:auto!important}
  body .btp-app .btp-followup-task-actions>*{flex:1 1 120px!important;justify-content:center!important}
  body .btp-app .btp-commercial-activity-list article{grid-template-columns:1fr!important}
  body .btp-app .btp-commercial-activity-list article>div:last-child{grid-column:auto!important}
  body .btp-app .btp-report-format-list article{grid-template-columns:1fr 1fr!important}
  body .btp-app .btp-report-format-list article>div:first-child{grid-column:1/-1!important}
}

/* v0.52.0 — refinamento da agenda, relatórios e histórico de follow-up */
body .btp-app .btp-followup-filterbar{
  display:grid!important;
  grid-template-columns:minmax(220px,.8fr) minmax(0,1.7fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  margin:0 0 12px!important;
  padding:10px!important;
  border:1px solid #ebe3d6!important;
  border-radius:15px!important;
  background:#fffdf9!important;
}
body .btp-app .btp-followup-search{
  min-width:0!important;height:42px!important;display:flex!important;align-items:center!important;gap:8px!important;
  padding:0 12px!important;border:1px solid #dedfdc!important;border-radius:12px!important;background:#fff!important;
}
body .btp-app .btp-followup-search .dashicons{width:16px!important;height:16px!important;flex:0 0 16px!important;color:#b17c1d!important}
body .btp-app .btp-followup-search input{width:100%!important;min-width:0!important;height:40px!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;color:#263345!important;font-size:12px!important;font-weight:600!important;box-shadow:none!important}
body .btp-app .btp-followup-filterchips{display:flex!important;flex-wrap:wrap!important;gap:6px!important;min-width:0!important}
body .btp-app .btp-followup-filterchips button{
  appearance:none!important;min-height:34px!important;padding:7px 10px!important;border:1px solid #e4dccd!important;border-radius:999px!important;
  background:#fff!important;color:#5c6877!important;font:750 12px/1.15 inherit!important;cursor:pointer!important;white-space:nowrap!important;box-shadow:none!important;
}
body .btp-app .btp-followup-filterchips button:hover{border-color:#d4ad59!important;background:#fffaf0!important;color:#263345!important}
body .btp-app .btp-followup-filterchips button.is-active{border-color:#d3a13d!important;background:#172334!important;color:#f4cf72!important}
body .btp-app .btp-followup-visible-count{white-space:nowrap!important;color:#8d98a4!important;font-size:12px!important;font-weight:800!important;text-align:right!important}
body .btp-app .btp-followup-filter-empty{padding:24px 12px!important;text-align:center!important;border:1px dashed #e6ddce!important;border-radius:14px!important;background:#fffdf9!important}
body .btp-app .btp-followup-filter-empty strong{display:block!important;color:#263345!important;font-size:12px!important}
body .btp-app .btp-followup-filter-empty p{margin:4px 0 0!important;color:#929ca7!important;font-size:12px!important}
body .btp-app .btp-followup-completed{margin-top:12px!important;border:1px solid #ece5da!important;border-radius:14px!important;background:#fff!important;overflow:hidden!important}
body .btp-app .btp-followup-completed summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:12px 14px!important;cursor:pointer!important;list-style:none!important;color:#53606f!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-followup-completed summary::-webkit-details-marker{display:none!important}
body .btp-app .btp-followup-completed summary strong{display:grid!important;place-items:center!important;min-width:28px!important;height:25px!important;padding:0 8px!important;border-radius:999px!important;background:#f4e4bd!important;color:#8a6115!important;font-size:12px!important}
body .btp-app .btp-followup-completed-list{display:grid!important;gap:5px!important;padding:0 10px 10px!important}
body .btp-app .btp-followup-completed-list article{display:grid!important;grid-template-columns:minmax(180px,.75fr) minmax(0,1.25fr)!important;gap:10px!important;padding:9px 10px!important;border:1px solid #f0ebe3!important;border-radius:11px!important;background:#fffdf9!important}
body .btp-app .btp-followup-completed-list span{display:block!important;color:#919ba6!important;font-size:12px!important}
body .btp-app .btp-followup-completed-list strong{display:block!important;margin-top:2px!important;color:#263345!important;font-size:12px!important}
body .btp-app .btp-followup-completed-list small{display:block!important;margin-top:2px!important;color:#a0a8b1!important;font-size:12px!important}
body .btp-app .btp-commercial-report-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(250px,.7fr)!important}
body .btp-app .btp-report-channel-list{display:grid!important;gap:6px!important}
body .btp-app .btp-report-channel-list article{display:grid!important;grid-template-columns:minmax(0,1fr) 80px 80px!important;gap:7px!important;align-items:center!important;padding:9px 10px!important;border:1px solid #f0ebe2!important;border-radius:12px!important;background:#fffdf9!important}
body .btp-app .btp-report-channel-list article>div{min-width:0!important}
body .btp-app .btp-report-channel-list strong{display:block!important;color:#263345!important;font-size:12px!important;overflow-wrap:anywhere!important}
body .btp-app .btp-report-channel-list span{display:block!important;margin-top:2px!important;color:#919ba6!important;font-size:12px!important}
body .btp-app .btp-report-channel-list b{display:block!important;color:#9a6812!important;font-size:13px!important}
body .btp-app .btp-report-channel-list small{display:block!important;color:#9aa3ad!important;font-size:12px!important}

@container btp-content (max-width:1280px){
  body .btp-app .btp-commercial-report-grid{grid-template-columns:1fr 1fr!important}
  body .btp-app .btp-commercial-report-grid>.btp-report-table-card:last-child{grid-column:1/-1!important}
}
@container btp-content (max-width:980px){
  body .btp-app .btp-followup-filterbar{grid-template-columns:1fr!important}
  body .btp-app .btp-followup-visible-count{text-align:left!important}
  body .btp-app .btp-commercial-report-grid{grid-template-columns:1fr!important}
  body .btp-app .btp-commercial-report-grid>.btp-report-table-card:last-child{grid-column:auto!important}
}
@media (max-width:620px){
  body .btp-app .btp-followup-filterchips{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-followup-filterchips button{white-space:normal!important;text-align:center!important}
  body .btp-app .btp-followup-completed-list article{grid-template-columns:1fr!important}
  body .btp-app .btp-report-channel-list article{grid-template-columns:1fr 1fr!important}
  body .btp-app .btp-report-channel-list article>div:first-child{grid-column:1/-1!important}
}
body .btp-app .btp-followup-task-row[hidden],
body .btp-app [data-followup-task-row][hidden],
body .btp-app .btp-followup-filter-empty[hidden],
body .btp-app .btp-commercial-report-period[hidden]{display:none!important}


/* ==========================================================
   v0.52.1 — Acompanhamento: legibilidade, escala e consistência
   - tipografia confortável para leitura recorrente
   - botões compactos no mesmo padrão visual da plataforma
   - filtros sem quebras desnecessárias
   - layout responsivo para sidebar/split-screen/tablet/mobile
========================================================== */
body .btp-app .btp-followup-page-head{margin-bottom:20px!important}
body .btp-app .btp-followup-page-head>div>span{font-size:12px!important;letter-spacing:.13em!important}
body .btp-app .btp-followup-page-head h2{font-size:clamp(28px,2.15vw,36px)!important;line-height:1.08!important;letter-spacing:-.025em!important}
body .btp-app .btp-followup-page-head p{max-width:940px!important;font-size:14px!important;line-height:1.6!important;color:#6f7c8b!important}

body .btp-app .btp-followup-kpis{gap:12px!important;margin-bottom:18px!important}
body .btp-app .btp-followup-kpis article{padding:18px 18px 17px!important;border-radius:20px!important}
body .btp-app .btp-followup-kpis span{font-size:12px!important;line-height:1.3!important;color:#6f7c89!important}
body .btp-app .btp-followup-kpis strong{margin:7px 0 6px!important;font-size:30px!important;line-height:1!important}
body .btp-app .btp-followup-kpis small{font-size:12px!important;line-height:1.45!important;color:#8a95a1!important}

body .btp-app .btp-followup-agenda,
body .btp-app .btp-commercial-report,
body .btp-app .btp-commercial-activity-log{padding:20px!important;margin-bottom:18px!important;border-radius:22px!important}
body .btp-app .btp-followup-section-head{gap:18px!important;margin-bottom:16px!important}
body .btp-app .btp-followup-section-head>div>span{font-size:12px!important;letter-spacing:.12em!important}
body .btp-app .btp-followup-section-head h3{font-size:21px!important;line-height:1.2!important;letter-spacing:-.01em!important}
body .btp-app .btp-followup-section-head p{margin-top:6px!important;max-width:820px!important;font-size:13px!important;line-height:1.55!important;color:#748190!important}
body .btp-app .btp-followup-section-head>.btp-link-button{
  min-height:38px!important;padding:0 14px!important;border:1px solid #e1d4ba!important;border-radius:12px!important;
  background:#fffaf0!important;color:#805b18!important;font-size:12.5px!important;font-weight:800!important;white-space:nowrap!important;
  box-shadow:none!important;
}
body .btp-app .btp-followup-section-head>.btp-link-button:hover{border-color:#d2a650!important;background:#f8efd9!important;color:#60430f!important}

body .btp-app .btp-followup-filterbar{
  grid-template-columns:minmax(260px,.9fr) minmax(0,1.8fr) auto!important;
  gap:12px!important;padding:12px!important;margin-bottom:14px!important;border-radius:17px!important;
}
body .btp-app .btp-followup-search{height:46px!important;padding:0 14px!important;border-radius:13px!important}
body .btp-app .btp-followup-search input{height:44px!important;font-size:13px!important;font-weight:600!important}
body .btp-app .btp-followup-search .dashicons{width:17px!important;height:17px!important;flex-basis:17px!important}
body .btp-app .btp-followup-filterchips{
  flex-wrap:nowrap!important;gap:7px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:1px 1px 3px!important;
  scrollbar-width:none!important;overscroll-behavior-inline:contain!important;
}
body .btp-app .btp-followup-filterchips::-webkit-scrollbar{display:none!important}
body .btp-app .btp-followup-filterchips button{
  flex:0 0 auto!important;min-height:36px!important;padding:8px 12px!important;font-size:12px!important;line-height:1.1!important;
  border-radius:999px!important;white-space:nowrap!important;
}
body .btp-app .btp-followup-visible-count{font-size:12px!important;color:#7f8a96!important}

body .btp-app .btp-followup-task-list{gap:10px!important}
body .btp-app .btp-followup-task-row{
  grid-template-columns:82px minmax(220px,1.45fr) minmax(130px,.5fr) auto!important;
  gap:14px!important;padding:14px!important;border-radius:17px!important;
}
body .btp-app .btp-followup-task-date{padding:10px 8px!important;border-radius:13px!important}
body .btp-app .btp-followup-task-date span{font-size:12px!important;line-height:1.2!important}
body .btp-app .btp-followup-task-date strong{margin-top:3px!important;font-size:19px!important;line-height:1.1!important}
body .btp-app .btp-followup-task-date small{margin-top:2px!important;font-size:12px!important}
body .btp-app .btp-followup-task-copy>span{font-size:12px!important;line-height:1.3!important}
body .btp-app .btp-followup-task-copy>strong{margin-top:3px!important;font-size:14.5px!important;line-height:1.3!important;overflow-wrap:break-word!important;word-break:normal!important}
body .btp-app .btp-followup-task-copy>p{margin-top:4px!important;font-size:12.5px!important;line-height:1.4!important}
body .btp-app .btp-followup-task-copy>small{margin-top:4px!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-followup-task-meta{padding-left:12px!important}
body .btp-app .btp-followup-task-meta span{font-size:12px!important;line-height:1.35!important;overflow-wrap:break-word!important;word-break:normal!important}
body .btp-app .btp-followup-task-meta small{font-size:12px!important}
body .btp-app .btp-followup-task-actions{gap:7px!important;flex-wrap:nowrap!important}
body .btp-app .btp-followup-task-actions .btp-primary,
body .btp-app .btp-followup-task-actions .btp-mini,
body .btp-app .btp-followup-task-actions .btp-followup-task-delete{
  width:auto!important;min-width:0!important;min-height:38px!important;height:38px!important;padding:0 13px!important;
  border-radius:12px!important;font-size:12.5px!important;line-height:1!important;font-weight:800!important;white-space:nowrap!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;
  --e-global-color-accent:#d6a34b!important;
}
body .btp-app .btp-followup-task-actions .btp-primary{background:linear-gradient(180deg,#edc86f 0%,#dda83f 100%)!important;border:1px solid #cc9833!important;color:#17130c!important}
body .btp-app .btp-followup-task-actions .btp-mini,
body .btp-app .btp-followup-task-actions .btp-followup-task-delete{background:#fffaf1!important;border:1px solid #e4d8c2!important;color:#263345!important}
body .btp-app .btp-followup-task-actions .btp-followup-task-delete:hover,
body .btp-app .btp-followup-task-actions .btp-mini:hover{background:#f8efdf!important;border-color:#d5b46f!important;color:#634812!important}

body .btp-app .btp-followup-empty{padding:34px 20px!important}
body .btp-app .btp-followup-empty strong{font-size:16px!important}
body .btp-app .btp-followup-empty p{font-size:12.5px!important;line-height:1.55!important}
body .btp-app .btp-followup-filter-empty strong{font-size:13.5px!important}
body .btp-app .btp-followup-filter-empty p{font-size:12px!important}

body .btp-app .btp-followup-completed summary{padding:13px 15px!important;font-size:12px!important}
body .btp-app .btp-followup-completed summary strong{min-width:30px!important;height:27px!important;font-size:12px!important}
body .btp-app .btp-followup-completed-list{gap:7px!important;padding:0 12px 12px!important}
body .btp-app .btp-followup-completed-list article{padding:11px 12px!important;border-radius:12px!important}
body .btp-app .btp-followup-completed-list span{font-size:12px!important}
body .btp-app .btp-followup-completed-list strong{font-size:12.5px!important;line-height:1.35!important}
body .btp-app .btp-followup-completed-list small{font-size:12px!important}

body .btp-app .btp-report-period-switch{gap:4px!important;padding:4px!important;border-radius:13px!important}
body .btp-app .btp-report-period-switch button{min-height:36px!important;padding:0 13px!important;font-size:12px!important;border-radius:9px!important}
body .btp-app .btp-commercial-report-kpis{gap:10px!important;margin-bottom:14px!important}
body .btp-app .btp-commercial-report-kpis article{padding:15px!important;border-radius:16px!important}
body .btp-app .btp-commercial-report-kpis span{font-size:12px!important;line-height:1.3!important}
body .btp-app .btp-commercial-report-kpis strong{margin:5px 0!important;font-size:25px!important;line-height:1!important}
body .btp-app .btp-commercial-report-kpis small{font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-commercial-report-grid{gap:12px!important}
body .btp-app .btp-report-table-card{padding:16px!important;border-radius:17px!important}
body .btp-app .btp-report-card-head>span{font-size:12px!important;letter-spacing:.1em!important}
body .btp-app .btp-report-card-head h4{font-size:16.5px!important;line-height:1.3!important}
body .btp-app .btp-report-card-head p{margin-top:6px!important;margin-bottom:13px!important;font-size:12px!important;line-height:1.5!important}
body .btp-app .btp-report-format-list,
body .btp-app .btp-report-channel-list,
body .btp-app .btp-report-service-list{gap:7px!important}
body .btp-app .btp-report-format-list article,
body .btp-app .btp-report-channel-list article{padding:11px 12px!important;border-radius:13px!important}
body .btp-app .btp-report-format-list strong,
body .btp-app .btp-report-channel-list strong{font-size:12px!important;line-height:1.3!important}
body .btp-app .btp-report-format-list span,
body .btp-app .btp-report-channel-list span{font-size:12px!important}
body .btp-app .btp-report-format-list b,
body .btp-app .btp-report-channel-list b{font-size:14px!important}
body .btp-app .btp-report-format-list small,
body .btp-app .btp-report-channel-list small{font-size:12px!important;line-height:1.25!important}
body .btp-app .btp-report-service-list article{padding:11px 12px!important;border-radius:13px!important}
body .btp-app .btp-report-service-list span{font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-report-service-list strong{width:32px!important;height:32px!important;flex-basis:32px!important;font-size:13px!important}
body .btp-app .btp-report-empty{padding:24px 14px!important;font-size:12px!important;line-height:1.5!important}

body .btp-app .btp-commercial-activity-list{gap:8px!important}
body .btp-app .btp-commercial-activity-list article{gap:12px!important;padding:12px 13px!important;border-radius:13px!important}
body .btp-app .btp-commercial-activity-list span{font-size:12px!important;line-height:1.3!important}
body .btp-app .btp-commercial-activity-list strong{font-size:12.5px!important;line-height:1.35!important}
body .btp-app .btp-commercial-activity-list small{font-size:12px!important;line-height:1.45!important}

@container btp-content (max-width:1180px){
  body .btp-app .btp-followup-task-row{grid-template-columns:78px minmax(0,1fr) auto!important}
  body .btp-app .btp-followup-task-meta{display:none!important}
  body .btp-app .btp-followup-task-actions{flex-wrap:wrap!important;max-width:230px!important}
  body .btp-app .btp-followup-filterbar{grid-template-columns:minmax(220px,.8fr) minmax(0,1.4fr)!important}
  body .btp-app .btp-followup-visible-count{grid-column:1/-1!important;text-align:right!important}
}
@container btp-content (max-width:900px){
  body .btp-app .btp-followup-filterbar{grid-template-columns:1fr!important}
  body .btp-app .btp-followup-visible-count{grid-column:auto!important;text-align:left!important}
  body .btp-app .btp-followup-task-row{grid-template-columns:72px minmax(0,1fr)!important;align-items:start!important}
  body .btp-app .btp-followup-task-actions{grid-column:1/-1!important;max-width:none!important;justify-content:flex-start!important;padding-top:10px!important;border-top:1px solid #eee7dc!important}
}
@media (max-width:760px){
  body .btp-app .btp-followup-page-head{margin-bottom:16px!important}
  body .btp-app .btp-followup-page-head h2{font-size:28px!important}
  body .btp-app .btp-followup-page-head p{font-size:13px!important;line-height:1.55!important}
  body .btp-app .btp-followup-agenda,
  body .btp-app .btp-commercial-report,
  body .btp-app .btp-commercial-activity-log{padding:16px!important;border-radius:19px!important}
  body .btp-app .btp-followup-section-head{gap:10px!important}
  body .btp-app .btp-followup-section-head h3{font-size:19px!important}
  body .btp-app .btp-followup-section-head p{font-size:12.5px!important}
  body .btp-app .btp-followup-section-head>.btp-link-button{width:max-content!important;max-width:100%!important}
  body .btp-app .btp-followup-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-followup-filterchips{display:flex!important;grid-template-columns:none!important;overflow-x:auto!important}
  body .btp-app .btp-report-period-switch{width:100%!important}
  body .btp-app .btp-report-period-switch button{flex:1 1 0!important}
}
@media (max-width:560px){
  body .btp-app .btp-followup-kpis{gap:8px!important}
  body .btp-app .btp-followup-kpis article{padding:14px!important;border-radius:16px!important}
  body .btp-app .btp-followup-kpis span{font-size:12px!important}
  body .btp-app .btp-followup-kpis strong{font-size:25px!important}
  body .btp-app .btp-followup-kpis small{font-size:12px!important}
  body .btp-app .btp-followup-task-row{grid-template-columns:1fr!important;gap:10px!important;padding:13px!important}
  body .btp-app .btp-followup-task-date{width:max-content!important;display:flex!important;align-items:center!important;gap:8px!important;text-align:left!important;padding:8px 10px!important}
  body .btp-app .btp-followup-task-date strong{font-size:15px!important;margin:0!important}
  body .btp-app .btp-followup-task-actions{grid-column:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;max-width:none!important;gap:8px!important}
  body .btp-app .btp-followup-task-actions>*{width:100%!important;min-width:0!important;padding:0 9px!important;white-space:normal!important;text-align:center!important}
  body .btp-app .btp-followup-task-actions>.btp-view-lead:first-child{grid-column:1/-1!important}
  body .btp-app .btp-commercial-report-kpis{grid-template-columns:1fr 1fr!important}
  body .btp-app .btp-commercial-report-kpis article{padding:12px!important}
  body .btp-app .btp-commercial-report-kpis strong{font-size:22px!important}
  body .btp-app .btp-report-format-list article,
  body .btp-app .btp-report-channel-list article{grid-template-columns:1fr 1fr!important}
  body .btp-app .btp-report-format-list article>div:first-child,
  body .btp-app .btp-report-channel-list article>div:first-child{grid-column:1/-1!important}
  body .btp-app .btp-commercial-activity-list article{grid-template-columns:1fr!important}
  body .btp-app .btp-commercial-activity-list article>div:last-child{grid-column:auto!important}
}


/* ==========================================================
   v0.52.2 — Legibilidade do Diagnóstico Comercial
   A tela é usada para decisão e leitura prolongada; nenhum texto
   essencial deve depender de microtipografia de 8–10px.
========================================================== */
@media (min-width:761px){
  body .btp-app .btp-modal.is-lead-drawer .btp-modal-card{
    width:min(780px,94vw)!important;
  }
}

/* Cabeçalho e contexto */
body .btp-app .btp-modal.is-lead-drawer .btp-lead-detail-head p{
  font-size:13px!important;
  line-height:1.5!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-eyebrow{
  font-size:12px!important;
  line-height:1.3!important;
  letter-spacing:.14em!important;
}

/* Etapa comercial */
body .btp-app .btp-modal.is-lead-drawer .btp-lead-stage-card>div>span,
body .btp-app .btp-modal.is-lead-drawer .btp-lead-stage-card label>span{
  font-size:12px!important;
  line-height:1.25!important;
  letter-spacing:.09em!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-stage-card>div>strong{
  font-size:15.5px!important;
  line-height:1.3!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-stage-card>div>small{
  font-size:12px!important;
  line-height:1.5!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-stage-card select{
  font-size:13px!important;
  line-height:1.3!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-stage-card label>em{
  font-size:12px!important;
  line-height:1.4!important;
}

/* Serviço analisado */
body .btp-app .btp-modal.is-lead-drawer .btp-service-focus-note--compact{
  gap:7px 12px!important;
  padding:13px 15px!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-service-focus-note--compact>span{
  font-size:12px!important;
  line-height:1.25!important;
  letter-spacing:.1em!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-service-focus-note--compact>strong{
  font-size:14px!important;
  line-height:1.35!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-service-focus-note--compact>p{
  font-size:12.5px!important;
  line-height:1.5!important;
}

/* Prioridade e confiança */
body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero div>small{
  font-size:12px!important;
  line-height:1.25!important;
  letter-spacing:.095em!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero strong{
  font-size:13.5px!important;
  line-height:1.4!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-decision-meta>span{
  min-height:36px!important;
  padding:8px 11px!important;
  font-size:12px!important;
  line-height:1.25!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-decision-meta strong{
  font-size:12px!important;
}

/* Blocos principais de decisão */
body .btp-app .btp-modal.is-lead-drawer .btp-opportunity-summary>span,
body .btp-app .btp-modal.is-lead-drawer .btp-offer-recommendation span,
body .btp-app .btp-modal.is-lead-drawer .btp-next-step-inline span{
  font-size:12px!important;
  line-height:1.25!important;
  letter-spacing:.11em!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-opportunity-summary p{
  font-size:14px!important;
  line-height:1.6!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-offer-recommendation strong{
  font-size:17px!important;
  line-height:1.38!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-offer-recommendation p{
  font-size:13.5px!important;
  line-height:1.55!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-next-step-inline{
  padding:12px 14px!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-next-step-inline p{
  font-size:13px!important;
  line-height:1.55!important;
}

/* Métricas centrais */
body .btp-app .btp-modal.is-lead-drawer .btp-core-metrics>div{
  padding:13px!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-core-metrics span{
  font-size:12px!important;
  line-height:1.25!important;
  letter-spacing:.045em!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-core-metrics strong{
  font-size:18px!important;
  line-height:1.2!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-core-metrics small{
  font-size:12px!important;
  line-height:1.45!important;
}

/* Dados públicos e níveis de confiança */
body .btp-app .btp-modal.is-lead-drawer .btp-detail-grid span{
  font-size:12px!important;
  line-height:1.3!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-detail-grid strong{
  font-size:14px!important;
  line-height:1.4!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-field-confidence{
  font-size:12px!important;
  line-height:1.25!important;
  padding:5px 8px!important;
}

/* Seções expansíveis: Matriz, Evidências, Diagnóstico e Atividade */
body .btp-app .btp-modal.is-lead-drawer .btp-drawer-fold>summary>span{
  font-size:12px!important;
  line-height:1.25!important;
  letter-spacing:.11em!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-drawer-fold>summary>strong{
  font-size:14px!important;
  line-height:1.45!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-matrix-intro,
body .btp-app .btp-modal.is-lead-drawer .btp-service-evidence-note{
  font-size:12px!important;
  line-height:1.55!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-diagnostic-item span{
  font-size:12px!important;
  line-height:1.25!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-diagnostic-item strong{
  font-size:13.5px!important;
  line-height:1.45!important;
}

/* Abordagem e textos operacionais */
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-suggestion h3{
  font-size:19px!important;
  line-height:1.3!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-suggestion p{
  font-size:14px!important;
  line-height:1.65!important;
}

/* Tablet/mobile: manter legibilidade sem transformar tudo em blocos gigantes. */
@media (max-width:760px){
  body .btp-app .btp-modal.is-lead-drawer .btp-lead-detail-head p{font-size:12.5px!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-opportunity-summary p,
  body .btp-app .btp-modal.is-lead-drawer .btp-pitch-suggestion p{font-size:13.5px!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-offer-recommendation p,
  body .btp-app .btp-modal.is-lead-drawer .btp-next-step-inline p{font-size:12.5px!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-core-metrics span{font-size:12px!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-core-metrics small{font-size:12px!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-drawer-fold>summary>strong{font-size:13.5px!important}
}


/* ==========================================================
   v0.52.3 — reabertura de leads encerrados
   O usuário nunca deve ficar preso em Fechado/Não fechado/Arquivado.
========================================================== */
body .btp-app .btp-lead-stage-card.is-locked{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:16px!important;
}
body .btp-app .btp-lead-stage-card.is-locked .btp-reopen-lead,
body .btp-app .btp-closing-table .btp-reopen-closing{
  min-height:38px!important;
  padding:9px 14px!important;
  border:1px solid rgba(205,157,59,.34)!important;
  border-radius:13px!important;
  background:#fffaf0!important;
  background-image:none!important;
  color:#172333!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:800!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}
body .btp-app .btp-lead-stage-card.is-locked .btp-reopen-lead:hover,
body .btp-app .btp-closing-table .btp-reopen-closing:hover{
  background:#f7e6bd!important;
  border-color:#d3a13f!important;
  color:#172333!important;
  transform:none!important;
}
body .btp-app .btp-closing-table td[data-label="Ações"]{text-align:right!important;white-space:nowrap!important}
@media(max-width:820px){
  body .btp-app .btp-lead-stage-card.is-locked{grid-template-columns:1fr!important;align-items:start!important}
  body .btp-app .btp-lead-stage-card.is-locked .btp-reopen-lead{width:100%!important;white-space:normal!important}
  body .btp-app .btp-closing-table td[data-label="Ações"]{text-align:left!important;white-space:normal!important}
  body .btp-app .btp-closing-table .btp-reopen-closing{width:100%!important;white-space:normal!important}
}


/* ==========================================================
   v0.53.0 — Navegação por fluxo comercial
   Ordem mental: operar → apoio → desempenho → configuração.
   Os rótulos de grupo somem na sidebar compacta e ocupam a
   largura total do menu “Mais” no mobile, sem alterar os botões.
========================================================== */
body .btp-app .btp-nav-group-label{
  display:block;
  min-width:0;
  margin:10px 10px 1px;
  padding:7px 4px 2px;
  color:rgba(239,208,131,.62);
  font-size:12px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  user-select:none;
  pointer-events:none;
  border-top:1px solid rgba(239,208,131,.10);
}

/* Com seis atalhos (Início, Buscar, Leads, Funil, Agenda, Mais),
   o bottom-nav usa a largura inteira sem uma coluna vazia. */
@media (max-width:720px){
  body .btp-app .btp-sidebar nav.btp-nav{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
  body .btp-app .btp-nav-more .btp-nav-group-label{
    grid-column:1/-1!important;
    margin:5px 3px 0!important;
    padding:9px 5px 2px!important;
    font-size:12px!important;
    letter-spacing:.12em!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child::after{
    font-size:12px!important;
  }
}

@media (max-width:430px){
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle{
    min-height:58px!important;
    padding-left:1px!important;
    padding-right:1px!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child::after{
    font-size:12px!important;
  }
}

/* Sidebar compacta de notebook/tablet: os títulos ficam disponíveis em
   title/aria-label, mas os separadores não ocupam altura desnecessária. */
@media (min-width:721px) and (max-width:1320px){
  body .btp-app .btp-nav-group-label{display:none!important}
}


/* ==========================================================
   v0.54.0 — Leads search + ciclo de vida das tarefas
   - campo de busca com uma única borda e ícone respirando
   - conclusão ≠ cancelamento
   - histórico mensal explícito e reversível
========================================================== */
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  min-height:48px!important;
  padding:0 15px!important;
  border:1px solid #dfe3e7!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search:focus-within{
  border-color:#d3a13d!important;
  box-shadow:0 0 0 3px rgba(211,161,61,.10)!important;
}
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search>span,
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search>.dashicons{
  position:static!important;
  inset:auto!important;
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  margin:0!important;
  color:#a7741d!important;
  z-index:auto!important;
}
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search input,
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search input[type="search"]{
  width:100%!important;
  min-width:0!important;
  min-height:46px!important;
  height:46px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  font-size:13px!important;
  line-height:1.35!important;
}
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search input:focus{
  border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
}
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search input::-webkit-search-decoration,
body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search input::-webkit-search-cancel-button{display:none!important}

body .btp-app .btp-task-history summary{font-size:12px!important}
body .btp-app .btp-task-history summary strong{height:auto!important;min-height:28px!important;white-space:normal!important;text-align:center!important}
body .btp-app .btp-task-history-toolbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;
  padding:12px 12px 10px!important;border-top:1px solid #f0e9df!important;
}
body .btp-app .btp-task-history-toolbar p{margin:0!important;max-width:760px!important;color:#7c8895!important;font-size:12px!important;line-height:1.5!important}
body .btp-app .btp-task-history-period-switch{display:inline-flex!important;gap:3px!important;padding:3px!important;border:1px solid #e9dfcd!important;border-radius:12px!important;background:#f8f3ea!important;flex:0 0 auto!important}
body .btp-app .btp-task-history-period-switch button{min-height:32px!important;padding:6px 11px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#697686!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important;box-shadow:none!important}
body .btp-app .btp-task-history-period-switch button.is-active{background:#172334!important;color:#f1ca69!important}
body .btp-app .btp-task-history-panel{display:grid!important;gap:10px!important;padding:0 10px 12px!important}
body .btp-app .btp-task-history-panel[hidden]{display:none!important}
body .btp-app .btp-task-history-group{border:1px solid #eee6da!important;border-radius:13px!important;background:#fffdf9!important;overflow:hidden!important}
body .btp-app .btp-task-history-group.is-cancelled{background:#fcfaf6!important}
body .btp-app .btp-task-history-group-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:10px 12px!important;border-bottom:1px solid #f0e9df!important}
body .btp-app .btp-task-history-group-head strong{font-size:12px!important;color:#263345!important}
body .btp-app .btp-task-history-group-head span{min-width:25px!important;height:24px!important;display:grid!important;place-items:center!important;padding:0 7px!important;border-radius:999px!important;background:#f5e7c5!important;color:#8b6218!important;font-size:12px!important;font-weight:900!important}
body .btp-app .btp-task-history-empty{padding:12px!important;color:#919ba6!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-task-history .btp-followup-completed-list{padding:8px!important}
body .btp-app .btp-task-history .btp-followup-completed-list article{grid-template-columns:minmax(150px,.65fr) minmax(220px,1.1fr) auto!important;align-items:center!important}
body .btp-app .btp-task-history .btp-followup-completed-list span{font-size:12px!important}
body .btp-app .btp-task-history .btp-followup-completed-list strong{font-size:12px!important}
body .btp-app .btp-task-history .btp-followup-completed-list small{font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-task-history-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:wrap!important}
body .btp-app .btp-task-history-actions .btp-mini{min-height:32px!important;padding:6px 10px!important;border-radius:10px!important;white-space:nowrap!important;font-size:12px!important}

@container btp-content (max-width:900px){
  body .btp-app .btp-task-history-toolbar{align-items:flex-start!important;flex-direction:column!important}
  body .btp-app .btp-task-history .btp-followup-completed-list article{grid-template-columns:1fr 1fr!important}
  body .btp-app .btp-task-history-actions{grid-column:1/-1!important;justify-content:flex-start!important}
}
@media(max-width:620px){
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{padding:0 13px!important;gap:9px!important}
  body .btp-app .btp-task-history-period-switch{width:100%!important}
  body .btp-app .btp-task-history-period-switch button{flex:1 1 0!important}
  body .btp-app .btp-task-history .btp-followup-completed-list article{grid-template-columns:1fr!important}
  body .btp-app .btp-task-history-actions{grid-column:auto!important}
  body .btp-app .btp-task-history-actions .btp-mini{flex:1 1 130px!important;white-space:normal!important;text-align:center!important}
}

body .btp-app .btp-followup-period-label{display:inline-flex!important;margin-top:8px!important;padding:6px 9px!important;border:1px solid #eadfc9!important;border-radius:999px!important;background:#fffaf0!important;color:#7b6a49!important;font-style:normal!important;font-size:12px!important;line-height:1.25!important;font-weight:750!important}
@media(max-width:620px){body .btp-app .btp-followup-period-label{display:block!important;width:max-content!important;max-width:100%!important;border-radius:12px!important;white-space:normal!important}}


/* ==========================================================
   v0.54.1 — Acompanhamento focado em leitura e ação
   Menos texto instrucional; tipografia operacional maior.
========================================================== */
body .btp-app .btp-followup-page-head p{
  max-width:760px!important;
  margin-top:8px!important;
  font-size:15px!important;
  line-height:1.55!important;
  color:#687586!important;
}
body .btp-app .btp-followup-period-label{
  margin-top:10px!important;
  padding:7px 11px!important;
  font-size:12px!important;
  font-weight:850!important;
}
body .btp-app .btp-followup-kpis article{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-height:116px!important;
}
body .btp-app .btp-followup-kpis span{
  font-size:13px!important;
  line-height:1.3!important;
  color:#596779!important;
  font-weight:800!important;
}
body .btp-app .btp-followup-kpis strong{
  margin:9px 0 0!important;
  font-size:34px!important;
  line-height:1!important;
}
body .btp-app .btp-followup-kpis small{display:none!important}

body .btp-app .btp-followup-section-head>div>span{
  font-size:12px!important;
  line-height:1.25!important;
}
body .btp-app .btp-followup-section-head h3{
  margin-top:4px!important;
  font-size:23px!important;
  line-height:1.2!important;
}
body .btp-app .btp-followup-section-head p{
  font-size:14px!important;
  line-height:1.55!important;
}
body .btp-app .btp-followup-section-head>.btp-link-button{
  min-height:40px!important;
  font-size:13px!important;
}

body .btp-app .btp-followup-search input{font-size:14px!important}
body .btp-app .btp-followup-filterchips button{font-size:12.5px!important}
body .btp-app .btp-followup-visible-count{font-size:12px!important;font-weight:800!important}

body .btp-app .btp-followup-task-date span{font-size:12px!important}
body .btp-app .btp-followup-task-date strong{font-size:20px!important}
body .btp-app .btp-followup-task-date small{font-size:12px!important}
body .btp-app .btp-followup-task-copy>span{font-size:12px!important}
body .btp-app .btp-followup-task-copy>strong{font-size:15.5px!important;line-height:1.35!important}
body .btp-app .btp-followup-task-copy>p{font-size:13.5px!important;line-height:1.45!important}
body .btp-app .btp-followup-task-copy>small{font-size:12.5px!important;line-height:1.45!important}
body .btp-app .btp-followup-task-meta span{font-size:13px!important}
body .btp-app .btp-followup-task-meta small{font-size:12px!important}

body .btp-app .btp-followup-empty strong{font-size:17px!important}
body .btp-app .btp-followup-empty p{font-size:13.5px!important}

body .btp-app .btp-task-history summary{font-size:13.5px!important}
body .btp-app .btp-task-history summary strong{font-size:12px!important}
body .btp-app .btp-task-history-toolbar{
  justify-content:flex-end!important;
  padding:10px 12px!important;
}
body .btp-app .btp-task-history-toolbar>p{display:none!important}
body .btp-app .btp-task-history-period-switch button{font-size:12px!important;min-height:36px!important}
body .btp-app .btp-task-history-group-head strong{font-size:13px!important}
body .btp-app .btp-task-history-group-head span{font-size:12px!important}
body .btp-app .btp-task-history-empty{font-size:12.5px!important}
body .btp-app .btp-task-history .btp-followup-completed-list span{font-size:12px!important}
body .btp-app .btp-task-history .btp-followup-completed-list strong{font-size:13.5px!important}
body .btp-app .btp-task-history .btp-followup-completed-list small{font-size:12px!important}
body .btp-app .btp-task-history-actions .btp-mini{font-size:12px!important;min-height:36px!important}

body .btp-app .btp-commercial-report-kpis article{
  min-height:108px!important;
  padding:17px!important;
}
body .btp-app .btp-commercial-report-kpis span{font-size:12.5px!important;color:#5f6d7c!important}
body .btp-app .btp-commercial-report-kpis strong{font-size:29px!important;margin:8px 0 0!important}
body .btp-app .btp-commercial-report-kpis small{font-size:12px!important;margin-top:6px!important}
body .btp-app .btp-commercial-report-kpis article:not(:first-child) small{display:none!important}
body .btp-app .btp-report-card-head>span{font-size:12px!important}
body .btp-app .btp-report-card-head h4{font-size:18px!important;line-height:1.3!important;margin-top:5px!important;margin-bottom:14px!important}
body .btp-app .btp-report-card-head p{display:none!important}
body .btp-app .btp-report-format-list strong,
body .btp-app .btp-report-channel-list strong{font-size:13.5px!important}
body .btp-app .btp-report-format-list span,
body .btp-app .btp-report-channel-list span{font-size:12px!important}
body .btp-app .btp-report-format-list b,
body .btp-app .btp-report-channel-list b{font-size:15px!important}
body .btp-app .btp-report-format-list small,
body .btp-app .btp-report-channel-list small{font-size:12px!important}
body .btp-app .btp-report-service-list span{font-size:13.5px!important}
body .btp-app .btp-report-service-list strong{font-size:14px!important}
body .btp-app .btp-report-empty{font-size:13px!important;line-height:1.5!important}

body .btp-app .btp-commercial-activity-list span{font-size:12px!important}
body .btp-app .btp-commercial-activity-list strong{font-size:14px!important}
body .btp-app .btp-commercial-activity-list small{font-size:12px!important}

@container btp-content (max-width:900px){
  body .btp-app .btp-followup-kpis article{min-height:104px!important}
  body .btp-app .btp-commercial-report-kpis article{min-height:98px!important}
}
@media(max-width:560px){
  body .btp-app .btp-followup-page-head p{font-size:14px!important}
  body .btp-app .btp-followup-kpis span{font-size:12px!important}
  body .btp-app .btp-followup-kpis strong{font-size:29px!important}
  body .btp-app .btp-followup-section-head h3{font-size:20px!important}
  body .btp-app .btp-report-card-head h4{font-size:17px!important}
  body .btp-app .btp-commercial-report-kpis span{font-size:12px!important}
  body .btp-app .btp-commercial-report-kpis strong{font-size:25px!important}
}


/* ==========================================================
   v0.55.0 — RESPONSIVE QUALITY SYSTEM
   ----------------------------------------------------------
   Global visual hardening for desktop, narrow desktop,
   browser sidebars/split-screen, tablets and mobile.
   Components react to the REAL main-content width.
========================================================== */

/* 1) Shell source of truth. Prevents the 88px compact rail from
      keeping the old 280px desktop content offset. */
@media (min-width:1321px){
  body .btp-app .btp-sidebar{
    width:280px!important;
  }
  body .btp-app .btp-main{
    width:calc(100% - 280px)!important;
    margin-left:280px!important;
    padding-left:clamp(26px,2.35vw,38px)!important;
    padding-right:clamp(26px,2.35vw,38px)!important;
  }
}
@media (min-width:721px) and (max-width:1320px){
  body .btp-app .btp-sidebar{
    width:88px!important;
    left:0!important;
    right:auto!important;
  }
  body .btp-app .btp-main{
    width:calc(100% - 88px)!important;
    margin-left:88px!important;
    padding-left:clamp(18px,2.1vw,28px)!important;
    padding-right:clamp(18px,2.1vw,28px)!important;
  }
}
@media (max-width:720px){
  body .btp-app .btp-main{
    width:100%!important;
    margin-left:0!important;
    padding-left:clamp(11px,3.6vw,16px)!important;
    padding-right:clamp(11px,3.6vw,16px)!important;
  }
}

/* 2) Every view owns the available width. No page may preserve an
      invisible desktop column or artificial horizontal offset. */
body .btp-app .btp-main>.btp-topbar,
body .btp-app .btp-main>.btp-view,
body .btp-app .btp-view>*,
body .btp-app .btp-panel{
  min-width:0!important;
  max-width:100%!important;
}
body .btp-app .btp-main>.btp-topbar,
body .btp-app .btp-main>.btp-view{
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* 3) Consistent page rhythm. Preserve whitespace without wasting it. */
body .btp-app .btp-section-head,
body .btp-app .btp-dashboard-intro,
body .btp-app .btp-followup-page-head,
body .btp-app .btp-closing-page-head,
body .btp-app .btp-prompts-head,
body .btp-app .btp-messages-head{
  width:100%!important;
  min-width:0!important;
}
body .btp-app .btp-section-head h2,
body .btp-app .btp-dashboard-intro h2,
body .btp-app .btp-followup-page-head h2,
body .btp-app .btp-closing-page-head h2,
body .btp-app .btp-prompts-head h2,
body .btp-app .btp-messages-head h2{
  font-size:clamp(28px,2.8cqw,36px)!important;
  line-height:1.08!important;
  text-wrap:balance!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body .btp-app .btp-section-head p,
body .btp-app .btp-dashboard-intro p,
body .btp-app .btp-followup-page-head p,
body .btp-app .btp-closing-page-head p,
body .btp-app .btp-prompts-head p,
body .btp-app .btp-messages-head p{
  font-size:clamp(13px,1.15cqw,15px)!important;
  line-height:1.55!important;
  text-wrap:pretty!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}

/* 4) Controls use a shared optical scale. Keep labels on one line while
      there is room; allow wrapping only when the available width truly needs it. */
@container btp-content (min-width:621px){
  body .btp-app .btp-primary,
  body .btp-app .btp-mini,
  body .btp-app .btp-ghost,
  body .btp-app .btp-link-button,
  body .btp-app .btp-workspace-brand-select .btp-brand-select-trigger,
  body .btp-app .btp-report-period-switch button,
  body .btp-app .btp-task-history-period-switch button{
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
  }
}
@container btp-content (max-width:620px){
  body .btp-app .btp-primary,
  body .btp-app .btp-mini,
  body .btp-app .btp-ghost,
  body .btp-app .btp-link-button{
    white-space:normal!important;
    line-height:1.25!important;
  }
}
body .btp-app .btp-primary,
body .btp-app .btp-mini,
body .btp-app .btp-ghost,
body .btp-app .btp-link-button{
  min-width:0!important;
  max-width:100%!important;
}

/* 5) Generic horizontal safety for dynamic user/business content. */
body .btp-app .btp-view :is(h1,h2,h3,h4,p,strong,small,span,label){
  word-break:normal;
}
body .btp-app .btp-view :is(.btp-company-cell,.btp-opportunity-cell,.btp-history-copy,.btp-message-main,.btp-prompt-main,.btp-library-meta,.btp-followup-task-copy,.btp-action-queue-copy){
  min-width:0!important;
}
body .btp-app .btp-view :is(a,button,input,select,textarea){
  min-width:0!important;
  max-width:100%!important;
}

/* 6) Desktop with reduced usable width / browser side panels. */
@container btp-content (max-width:1180px){
  body .btp-app .btp-followup-kpis,
  body .btp-app .btp-commercial-report-kpis,
  body .btp-app .btp-action-center-kpis,
  body .btp-app .btp-cards{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .btp-app .btp-followup-kpis article,
  body .btp-app .btp-commercial-report-kpis article{
    min-height:96px!important;
  }
  body .btp-app .btp-commercial-report-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .btp-app .btp-commercial-report-grid>.btp-report-table-card:last-child{
    grid-column:1/-1!important;
  }
  body .btp-app .btp-commercial-activity-list article{
    grid-template-columns:minmax(0,.85fr) minmax(0,1fr)!important;
  }
  body .btp-app .btp-commercial-activity-list article>div:last-child{
    grid-column:1/-1!important;
  }
  body .btp-app .btp-workspace-toolbar--refined{
    grid-template-columns:minmax(260px,1.25fr) minmax(185px,.75fr) minmax(185px,.75fr)!important;
    gap:10px!important;
  }
  body .btp-app .btp-lead-kpis{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body .btp-app .btp-library-toolbar{
    grid-template-columns:minmax(280px,1.5fr) repeat(2,minmax(150px,.65fr)) auto!important;
    gap:10px!important;
  }
}

@container btp-content (max-width:980px){
  body .btp-app .btp-workspace-toolbar--refined{
    grid-template-columns:minmax(0,1fr) minmax(180px,.55fr)!important;
  }
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{
    grid-column:1/-1!important;
  }
  body .btp-app .btp-lead-kpis{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body .btp-app .btp-library-toolbar,
  body .btp-app .btp-message-toolbar,
  body .btp-app .btp-prompt-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .btp-app .btp-library-search,
  body .btp-app .btp-message-search,
  body .btp-app .btp-prompt-search{
    grid-column:1/-1!important;
  }
  body .btp-app .btp-library-count,
  body .btp-app .btp-message-count,
  body .btp-app .btp-prompt-count{
    min-width:0!important;
  }
  body .btp-app .btp-pipeline{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@container btp-content (max-width:760px){
  body .btp-app .btp-followup-kpis,
  body .btp-app .btp-commercial-report-kpis,
  body .btp-app .btp-action-center-kpis,
  body .btp-app .btp-cards,
  body .btp-app .btp-lead-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .btp-app .btp-commercial-report-grid,
  body .btp-app .btp-library-toolbar,
  body .btp-app .btp-message-toolbar,
  body .btp-app .btp-prompt-toolbar,
  body .btp-app .btp-workspace-toolbar--refined,
  body .btp-app .btp-pipeline{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body .btp-app .btp-commercial-report-grid>.btp-report-table-card:last-child,
  body .btp-app .btp-library-search,
  body .btp-app .btp-message-search,
  body .btp-app .btp-prompt-search,
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{
    grid-column:auto!important;
  }
  body .btp-app .btp-commercial-activity-list article{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body .btp-app .btp-commercial-activity-list article>div:last-child{
    grid-column:auto!important;
  }
  body .btp-app .btp-panel{
    border-radius:clamp(16px,4vw,22px)!important;
  }
}

@container btp-content (max-width:430px){
  body .btp-app .btp-followup-kpis,
  body .btp-app .btp-commercial-report-kpis,
  body .btp-app .btp-action-center-kpis,
  body .btp-app .btp-cards{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body .btp-app .btp-lead-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* 7) Follow-up center: full use of content width without oversized gaps. */
body .btp-app .btp-view[data-view="acompanhamento"] .btp-followup-page-head,
body .btp-app .btp-view[data-view="acompanhamento"] .btp-followup-kpis,
body .btp-app .btp-view[data-view="acompanhamento"] .btp-followup-agenda,
body .btp-app .btp-view[data-view="acompanhamento"] .btp-commercial-report,
body .btp-app .btp-view[data-view="acompanhamento"] .btp-commercial-activity-log{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* 8) Pipeline: 3 columns only when they are genuinely readable. */
@container btp-content (min-width:1181px){
  body .btp-app .btp-pipeline{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@container btp-content (min-width:761px) and (max-width:1180px){
  body .btp-app .btp-pipeline{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* 9) Lists/tables keep internal overflow only when a desktop table is still
      useful; the page itself never creates horizontal scroll. */
body .btp-app .btp-view{
  overflow-x:clip!important;
}
body .btp-app :is(.btp-table-wrap,.btp-closing-scroll,.btp-message-list-shell,.btp-prompt-list-shell,.btp-library-shell){
  max-width:100%!important;
}

/* 10) Tablet/mobile type and spacing. */
@media (max-width:900px){
  body .btp-app .btp-main{padding-top:18px!important}
  body .btp-app .btp-section-head,
  body .btp-app .btp-dashboard-intro,
  body .btp-app .btp-followup-page-head{margin-bottom:16px!important}
  body .btp-app .btp-section-head h2,
  body .btp-app .btp-dashboard-intro h2,
  body .btp-app .btp-followup-page-head h2{font-size:clamp(27px,5cqw,32px)!important}
}
@media (max-width:560px){
  body .btp-app .btp-section-head h2,
  body .btp-app .btp-dashboard-intro h2,
  body .btp-app .btp-followup-page-head h2{font-size:27px!important;line-height:1.1!important}
  body .btp-app .btp-section-head p,
  body .btp-app .btp-dashboard-intro p,
  body .btp-app .btp-followup-page-head p{font-size:13.5px!important;line-height:1.5!important}
  body .btp-app .btp-followup-kpis article,
  body .btp-app .btp-commercial-report-kpis article{padding:14px!important}
}

/* 11) Very narrow devices: protect text and actions without ugly single-word lines. */
@media (max-width:380px){
  body .btp-app .btp-main{padding-left:10px!important;padding-right:10px!important}
  body .btp-app .btp-section-head h2,
  body .btp-app .btp-dashboard-intro h2,
  body .btp-app .btp-followup-page-head h2{font-size:25px!important}
  body .btp-app .btp-lead-kpis{gap:6px!important}
  body .btp-app .btp-lead-kpis button{padding-inline:9px!important}
}


/* ==========================================================
   v0.56.0 — Global typography quality system
   Readability first: hierarchy adapts to available space instead of
   shrinking important copy into microtext. This layer is intentionally
   last so older component patches cannot push readable text back below
   the product typography floor.
========================================================== */
body .btp-app{
  --btp-type-eyebrow:11px;
  --btp-type-meta:12px;
  --btp-type-small:13px;
  --btp-type-body:14px;
  --btp-type-control:14px;
  --btp-type-emphasis:15px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Global reading rhythm inside product views. */
body .btp-app .btp-view{font-size:var(--btp-type-body);line-height:1.5}
body .btp-app .btp-view :is(h1,h2,h3,h4){text-wrap:balance;overflow-wrap:normal;word-break:normal}
body .btp-app .btp-view p{line-height:1.55;text-wrap:pretty}
body .btp-app .btp-view small{font-size:var(--btp-type-meta)!important;line-height:1.45!important}
body .btp-app .btp-view :is(input,select,textarea){font-size:var(--btp-type-control)!important;line-height:1.35!important}
body .btp-app .btp-view :is(.btp-primary,.btp-mini,.btp-ghost,.btp-link-button){font-size:13.5px!important;line-height:1.25!important;font-weight:750!important}

/* Page headings and descriptive copy. */
body .btp-app :is(.btp-section-head,.btp-dashboard-intro,.btp-followup-page-head,.btp-topbar-copy) > div > span,
body .btp-app :is(.btp-section-head,.btp-dashboard-intro,.btp-followup-page-head) > span,
body .btp-app .btp-settings-title>span,
body .btp-app .btp-help-head span,
body .btp-app .btp-closing-section-head span,
body .btp-app .btp-billing-head>div>span,
body .btp-app .btp-embedded-checkout-head span,
body .btp-app .btp-payment-element-head span,
body .btp-app .btp-plan-gate-kicker{
  font-size:var(--btp-type-eyebrow)!important;
  line-height:1.3!important;
  letter-spacing:.11em!important;
}
body .btp-app :is(.btp-section-head,.btp-dashboard-intro,.btp-followup-page-head) p,
body .btp-app .btp-topbar-copy p{
  font-size:14px!important;
  line-height:1.55!important;
  max-width:76ch;
}

/* Tables and dense management views. */
body .btp-app :is(.btp-table,.btp-qualified-table,.btp-closing-table) th,
body .btp-app .btp-lead-mode-manage .btp-qualified-table th,
body .btp-app .btp-message-list-head span,
body .btp-app .btp-prompt-list-head span{
  font-size:12px!important;
  line-height:1.3!important;
  letter-spacing:.07em!important;
}
body .btp-app :is(.btp-table,.btp-qualified-table,.btp-closing-table) td{font-size:13px;line-height:1.45}
body .btp-app .btp-table tbody td::before,
body .btp-app .btp-lead-workspace .btp-qualified-table tbody td::before,
body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td::before,
body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row) td::before{
  font-size:12px!important;
  line-height:1.25!important;
  letter-spacing:.07em!important;
}

/* Leads: keep labels, status, opportunity and source context readable. */
body .btp-app :is(.btp-company-cell,.btp-site-cell,.btp-opportunity-cell)>small,
body .btp-app .btp-score-stack small,
body .btp-app .btp-selection-help,
body .btp-app .btp-status-feedback,
body .btp-app .btp-service-focus-note--compact>p,
body .btp-app .btp-matrix-intro,
body .btp-app .btp-matrix-method-note{
  font-size:12px!important;
  line-height:1.45!important;
}
body .btp-app :is(.btp-lead-signal,.btp-lead-sources span,.btp-lead-sources em,.btp-analysis-state,.btp-service-focus-tag,.btp-best-service-tag,.btp-priority-tag,.btp-field-confidence,.btp-field-sources,.btp-lead-new-badge){
  font-size:12px!important;
  line-height:1.2!important;
}
body .btp-app .btp-workspace-toolbar label,
body .btp-app .btp-workspace-control>span,
body .btp-app .btp-prompt-filter label,
body .btp-app .btp-message-filter label,
body .btp-app .btp-library-toolbar>label:not(.btp-library-search){
  font-size:12px!important;
  line-height:1.3!important;
}
body .btp-app .btp-lead-kpis button span{font-size:12px!important;line-height:1.3!important}

/* Lead diagnosis / drawer: comfortable long-session reading. */
body .btp-app .btp-modal.is-lead-drawer{
  --btp-diagnostic-label:11px;
  --btp-diagnostic-meta:12px;
  --btp-diagnostic-body:14px;
}
body .btp-app .btp-modal.is-lead-drawer :is(.btp-lead-stage-card>div>span,.btp-lead-stage-card label>span,.btp-lead-decision-bar .btp-lead-score-hero div>small,.btp-next-step-inline span,.btp-core-metrics span,.btp-drawer-fold>summary>span,.btp-next-actions-head span,.btp-lead-task-head span,.btp-evidence-status span,.btp-offer-recommendation span,.btp-pitch-suggestion>div span){
  font-size:var(--btp-diagnostic-label)!important;
  line-height:1.3!important;
}
body .btp-app .btp-modal.is-lead-drawer :is(.btp-lead-stage-card>div>small,.btp-core-metrics small,.btp-next-task-copy small,.btp-lead-task-item>div:first-child small,.btp-task-form label,.btp-evidence-status small,.btp-decision-meta>span,.btp-decision-meta strong,.btp-site-confidence span){
  font-size:var(--btp-diagnostic-meta)!important;
  line-height:1.45!important;
}
body .btp-app .btp-modal.is-lead-drawer :is(.btp-next-step-inline p,.btp-pitch-suggestion p,.btp-service-focus-note--compact p,.btp-audit-note){
  font-size:var(--btp-diagnostic-body)!important;
  line-height:1.55!important;
}
body .btp-app .btp-diagnostic-item span,
body .btp-app .btp-score-dimensions span,
body .btp-app .btp-official-site-card span,
body .btp-app .btp-modal-source-strip>span,
body .btp-app .btp-matrix-head span{
  font-size:12px!important;
  line-height:1.3!important;
}
body .btp-app .btp-score-dimensions small,
body .btp-app .btp-matrix-item>small{font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-matrix-item em{font-size:12px!important;line-height:1.25!important}

/* Dashboard and action center. */
body .btp-app :is(.btp-dashboard-kpis small,.btp-dashboard-kpis em,.btp-dashboard-kpis--lean small,.btp-history-metric span,.btp-next-action-kpis small,.btp-next-action-kpis span,.btp-action-queue-copy>span,.btp-action-queue-copy>small,.btp-dashboard-revenue-head span,.btp-dashboard-consumption-head>div>span,.btp-dashboard-revenue-meta span){
  font-size:12px!important;
  line-height:1.4!important;
}
body .btp-app .btp-dashboard-empty-state span{font-size:12px!important}

/* Pipeline. */
body .btp-app :is(.btp-pipe-col h3 small,.btp-pipe-drag-hint,.btp-pipe-mobile-move,.btp-pipeline-search-context-main>div>span,.btp-pipeline-search-metrics span,.btp-pipeline-filter-state small,.btp-pipe-disqualified-note){
  font-size:12px!important;
  line-height:1.35!important;
}
body .btp-app .btp-pipe-new-badge{font-size:12px!important;line-height:1.2!important}

/* Follow-up / commercial activity center. */
body .btp-app :is(.btp-followup-kpis span,.btp-commercial-report-kpis span,.btp-followup-section-head>div>span,.btp-report-card-head>span,.btp-followup-visible-count,.btp-task-history-group-head span){
  font-size:12px!important;
  line-height:1.35!important;
}
body .btp-app :is(.btp-followup-kpis small,.btp-commercial-report-kpis small,.btp-followup-task-copy>small,.btp-followup-task-meta small,.btp-commercial-activity-list small,.btp-followup-completed-list small,.btp-task-history .btp-followup-completed-list small,.btp-report-format-list small,.btp-report-channel-list small){
  font-size:12px!important;
  line-height:1.45!important;
}
body .btp-app :is(.btp-followup-task-copy>span,.btp-commercial-activity-list span,.btp-followup-completed-list span,.btp-task-history .btp-followup-completed-list span,.btp-report-format-list span,.btp-report-channel-list span,.btp-followup-task-date span,.btp-followup-task-date small){
  font-size:12px!important;
  line-height:1.35!important;
}
body .btp-app .btp-report-card-head p,
body .btp-app .btp-followup-filter-empty p{font-size:13px!important;line-height:1.5!important}

/* Search history and outcomes. */
body .btp-app :is(.btp-history-copy>time,.btp-history-list article.btp-history-item time,.btp-history-copy>small,.btp-history-service,.btp-outcome-head span){
  font-size:12px!important;
  line-height:1.4!important;
}
body .btp-app .btp-history-actions .btp-ghost{font-size:12px!important}

/* Messages, prompts and official library. */
body .btp-app :is(.btp-message-card>span,.btp-message-card-head>div>span,.btp-message-helper-badge,.btp-message-editor-head>span,.btp-message-editor-preview-wrap>span,.btp-prompt-card-head>span,.btp-library-reader-head>span){
  font-size:12px!important;
  line-height:1.3!important;
}
body .btp-app :is(.btp-message-channel,.btp-message-category-badge,.btp-message-service-badge,.btp-prompt-category-badge,.btp-library-badges span,.btp-library-badges em,.btp-library-badges b.is-new){
  font-size:12px!important;
  line-height:1.2!important;
}
body .btp-app :is(.btp-library-meta small,.btp-message-viewer-meta span,.btp-prompt-date-cell small){font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-library-meta p{font-size:12.5px!important;line-height:1.45!important}

/* Closing/results. */
body .btp-app .btp-closing-count small{font-size:12px!important;line-height:1.25!important}

/* Support: tickets must be readable without zooming. */
body .btp-app :is(.btp-ticket-top>span,.btp-ticket-message-meta strong,.btp-ticket-message-meta time,.btp-ticket-reply-actions small,.btp-ticket-resolved-note,.btp-support-resolved-main small,.btp-support-resolved-badge,.btp-support-resolved-toggle,.btp-support-resolved-transcript-head small,.btp-support-resolved-lock,.btp-support-ticket-row-copy small,.btp-support-ticket-row-status,.btp-support-status-pill,.btp-support-ticket-row-action,.btp-support-detail-head>div>span,.btp-support-back,.btp-support-archive-cta small,.btp-support-list-note,.btp-support-history-head>div:first-child>span,.btp-support-history-total span,.btp-support-history-filters label>span,.btp-support-history-summary,.btp-support-history-summary small,.btp-support-history-row-main small,.btp-support-page-numbers a,.btp-support-page-numbers span){
  font-size:12px!important;
  line-height:1.4!important;
}

/* Billing/plan/account. Financial information must not use microtext. */
body .btp-app :is(.btp-subscription-meta small,.btp-billing-box-copy>small,.btp-billing-summary small,.btp-billing-section-title small,.btp-billing-head>em,.btp-billing-summary-status>span,.btp-billing-invoice-status,.btp-plan-comparison-v2 .btp-plan-featured,.btp-embedded-checkout-head em,.btp-checkout-secure small,.btp-payment-element-head em,.btp-subscription-summary-kicker,.btp-subscription-account small,.btp-subscription-field-title small,.btp-subscription-promo label span,.btp-subscription-promo>small,.btp-subscription-element-head em,.btp-tax-id-fallback>small,.btp-usage-meter.is-pro-locked strong,.btp-pro-preview-notice small){
  font-size:12px!important;
  line-height:1.4!important;
}
body .btp-app .btp-nav-pro-badge{font-size:12px!important;line-height:1!important}

/* Sidebar/navigation: compact mode may hide full labels, but visible labels
   remain readable. Group titles are intentionally secondary, not microscopic. */
body .btp-app .btp-nav-group-label{font-size:12px!important;line-height:1.2!important;letter-spacing:.10em!important}
body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span[data-mobile]::after,
body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span[data-mobile]::after,
body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child::after{
  font-size:12px!important;
  line-height:1.15!important;
}

/* Loading/transition text is brief, but still readable. */
body .btp-app :is(.btp-route-transition__brand small,.btp-route-transition__logo small){font-size:12px!important;line-height:1.35!important}

/* Tablet: retain hierarchy without shrinking supporting text. */
@media (max-width:900px){
  body .btp-app{--btp-type-eyebrow:10.5px;--btp-type-meta:12px;--btp-type-small:13px;--btp-type-body:14px;--btp-type-control:15px}
  body .btp-app .btp-view :is(.btp-primary,.btp-mini,.btp-ghost,.btp-link-button){font-size:13.5px!important}
}

/* Mobile: inputs/selects at 16px avoid browser zoom and keep forms legible. */
@media (max-width:600px){
  body .btp-app{--btp-type-eyebrow:10.5px;--btp-type-meta:12px;--btp-type-small:13px;--btp-type-body:14px;--btp-type-control:16px}
  body .btp-app .btp-view :is(input,select,textarea){font-size:16px!important}
  body .btp-app .btp-view :is(.btp-primary,.btp-mini,.btp-ghost,.btp-link-button){font-size:14px!important;line-height:1.25!important}
  body .btp-app .btp-view small{font-size:12px!important}
  body .btp-app :is(.btp-section-head,.btp-dashboard-intro,.btp-followup-page-head) p{font-size:14px!important}
  body .btp-app .btp-library-meta p{font-size:13px!important}
}

/* Very small phones: keep typography readable; solve fit with layout, not tiny type. */
@media (max-width:380px){
  body .btp-app{--btp-type-body:14px;--btp-type-control:16px}
  body .btp-app .btp-view :is(.btp-primary,.btp-mini,.btp-ghost,.btp-link-button){font-size:13.5px!important}
}


/* v0.56.0 — hard readability floor for legacy microtext. */
.btp-message-card>span,
.btp-sidebar nav span,
.btp-table tbody td:before,
.btp-sidebar nav button span,
.btp-settings-title>span,
.btp-topbar-copy p,
.btp-sidebar nav button span:after,
.btp-sidebar nav button span:last-child,
  .btp-mobile-more-toggle span:last-child,
.btp-sidebar nav button span:last-child::after,
.btp-route-transition__brand small,
.btp-route-transition__logo small,
.btp-login-scene-copy span,
.btp-login-scene-metrics small,
.btp-login-trajectory-head span,
.btp-message-helper-badge,
.btp-message-card-head>div>span,
.btp-message-channel,
.btp-message-vars span,
.btp-message-editor-head>span,
.btp-message-editor-preview-wrap>span,
.btp-prompt-card-head>span,
.btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
.btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child,
.btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child,
.btp-score-stack small,
.btp-lead-signal,
.btp-diagnostic-item span,
.btp-lead-sources span,.btp-lead-sources em,
.btp-modal-source-strip>span,
.btp-source-setting-head em,
.btp-score-dimensions span,
.btp-score-dimensions small,
.btp-official-site-card span,
.btp-site-confidence span,
.btp-field-confidence,
.btp-field-sources,
.btp-pitch-suggestion>div span,
.btp-priority-tag,
.btp-workspace-toolbar label,
.btp-offer-recommendation span,
.btp-batch-pitch span,
.btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td::before,
.btp-sales-name-preview>span,
.btp-lead-decision-bar .btp-lead-score-hero div>small,
.btp-decision-meta>span,
.btp-decision-meta strong,
.btp-drawer-fold>summary>span,
.btp-icon-action[title]::after,
.btp-inline-reanalyze,
.btp-bulk-progress,
body .btp-app .btp-lead-kpis button span,
.btp-status-feedback,
.btp-pipe-drag-hint,
.btp-outcome-head span,
.btp-pipe-mobile-move,
body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child::after,
body .btp-app .btp-lead-workspace .btp-qualified-table tbody td::before,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody td::before,
body .btp-app .btp-topbar-copy p,
body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td:not(.btp-select-col)::before,
  body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody tr.btp-lead-row td:not(.btp-select-col)::before,
body .btp-app .btp-table:not(.btp-qualified-table) tbody tr:not(.btp-empty-row) td::before,
.btp-dashboard-kpis small,
.btp-history-metric span,
.btp-ticket-top>span,
.btp-plan-featured,
.btp-dashboard-kpis em,
.btp-plan-benefit-row span,
body .btp-app .btp-pipe-col h3 small,
body .btp-app .btp-help-head span,
body .btp-app .btp-dashboard-revenue-head span,
body .btp-app .btp-dashboard-consumption-head>div>span,
body .btp-app .btp-dashboard-revenue-meta span,
body .btp-app .btp-dashboard-kpis--lean small,
body .btp-app .btp-dashboard-empty-state span,
body .btp-app .btp-pipe-drag-hint,
body .btp-app .btp-closing-section-head span,
body .btp-app .btp-closing-count small,
.btp-ticket-message-meta strong,
.btp-ticket-message-meta time,
.btp-ticket-reply-actions small,
.btp-ticket-resolved-note,
body .btp-app .btp-support-resolved-main small,
body .btp-app .btp-support-resolved-badge,
body .btp-app .btp-support-resolved-toggle,
body .btp-app .btp-support-resolved-item[open] .btp-support-resolved-toggle::before,
body .btp-app .btp-support-resolved-transcript-head small,
body .btp-app .btp-support-resolved-lock,
body .btp-app .btp-support-ticket-row-copy small,
body .btp-app .btp-support-ticket-row-status,
body .btp-app .btp-support-status-pill,
body .btp-app .btp-support-ticket-row-action,
body .btp-app .btp-support-detail-head>div>span,
body .btp-app .btp-support-ticket-row-status,
body .btp-app .btp-support-back,
body .btp-app .btp-support-archive-cta small,
body .btp-app .btp-support-list-note,
body .btp-app .btp-support-history-head>div:first-child>span,
body .btp-app .btp-support-history-total span,
body .btp-app .btp-support-history-filters label>span,
body .btp-app .btp-support-history-summary,
body .btp-app .btp-support-history-summary small,
body .btp-app .btp-support-history-row-main small,
body .btp-app .btp-support-page-numbers a,
body .btp-app .btp-support-page-numbers span,
body .btp-app .btp-support-history-row .btp-support-ticket-row-action,
body .btp-app .btp-subscription-meta small,
body .btp-app .btp-billing-head>div>span,
body .btp-app .btp-billing-box-copy>small,
body .btp-app .btp-billing-summary small,
body .btp-app .btp-billing-section-title small,
body .btp-app .btp-billing-head>em,
body .btp-app .btp-billing-summary-status>span,
body .btp-app .btp-billing-invoice-status,
body .btp-app .btp-plan-comparison-v2 .btp-plan-featured,
body .btp-app .btp-embedded-checkout-head span,
body .btp-app .btp-embedded-checkout-head em,
body .btp-app .btp-checkout-secure small,
body .btp-app .btp-payment-element-head span,
body .btp-app .btp-payment-element-head em,
body .btp-app .btp-subscription-summary-kicker,
body .btp-app .btp-subscription-account small,
body .btp-app .btp-subscription-field-title small,
body .btp-app .btp-subscription-promo label span,
body .btp-app .btp-subscription-promo>small,
body .btp-app .btp-subscription-element-head em,
body .btp-app .btp-tax-id-fallback>small,
body .btp-app .btp-nav-pro-badge,
body .btp-app .btp-usage-meter.is-pro-locked strong,
body .btp-app .btp-pro-preview-notice small,
body .btp-app .btp-plan-gate-kicker,
body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span[data-mobile]::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span[data-mobile]::after,
body .btp-app .btp-sidebar nav.btp-nav button.is-pro-preview::before,
body .btp-login-scene-copy span,
body .btp-login-kicker,
body .btp-app .btp-pipeline-search-context-main>div>span,
body .btp-app .btp-pipeline-search-metrics span,
body .btp-app .btp-pipeline-filter-state small,
body .btp-app .btp-pipe-new-badge,
body .btp-app .btp-pipe-disqualified-note,
body .btp-app .btp-lead-new-badge,
body .btp-app .btp-selection-help,
body .btp-app .btp-history-copy>time,
body .btp-app .btp-history-list article.btp-history-item time,
body .btp-app .btp-history-metric span,
body .btp-app .btp-history-copy>small,
body .btp-app .btp-history-copy>time,
  body .btp-app .btp-history-list article.btp-history-item time,
body .btp-app .btp-history-actions .btp-ghost,
body .btp-app .btp-prompt-filter label,
body .btp-app .btp-prompt-list-head span,
body .btp-app .btp-prompt-date-cell small,
body .btp-app .btp-prompt-category-badge,
body .btp-app .btp-message-filter label,
body .btp-app .btp-message-list-head span,
body .btp-app .btp-message-category-badge,
body .btp-app .btp-message-list-row .btp-message-channel,
body .btp-app .btp-service-focus-tag,
body .btp-app .btp-history-service,
body .btp-app .btp-library-toolbar>label:not(.btp-library-search),
body .btp-app .btp-library-meta small,
body .btp-app .btp-library-badges span,
body .btp-app .btp-library-badges em,
body .btp-app .btp-library-reader-head>span,
body .btp-app .btp-library-badges b.is-new,
body .btp-app .btp-commercial-context-preview span,
body .btp-app .btp-commercial-context-preview small,
body .btp-app .btp-message-service-badge,
body .btp-app .btp-service-focus-note>span,
body .btp-app .btp-message-viewer-meta span,
body .btp-app .btp-analysis-state,
body .btp-app .btp-intelligence-queue-note small,
.btp-best-service-tag,
.btp-matrix-head span,
.btp-matrix-item em,
.btp-matrix-item>small,
body .btp-app .btp-matrix-item em,
body .btp-app .btp-message-service-badge,
body .btp-app .btp-message-category-badge,
body .btp-app .btp-prompt-category-badge,
body .btp-app .btp-library-badges span,
body .btp-app .btp-library-badges em,
body .btp-app .btp-library-badges b.is-new,
body .btp-app .btp-field-confidence,
body .btp-app .btp-field-sources,
body .btp-app .btp-priority-tag,
body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td::before,
body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span[data-mobile]::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-primary-nav>span:last-child::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span[data-mobile]::after,
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle>span:last-child::after,
body .btp-app .btp-support-ticket-row-status,
  body .btp-app .btp-support-status-pill,
  body .btp-app .btp-support-resolved-badge,
  body .btp-app .btp-support-resolved-toggle,
body .btp-app .btp-message-channel,
  body .btp-app .btp-prompt-date-cell small,
body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row) td::before,
.btp-login-scene-metrics small,
.btp-login-trajectory-head span,
body .btp-app .btp-lead-decision-bar .btp-lead-score-hero div>small,
body .btp-app .btp-pipe-col h3 small,
body .btp-app .btp-subscription-meta small,
body .btp-app .btp-subscription-account small,
body .btp-app .btp-embedded-checkout-head em,
body .btp-app .btp-subscription-element-head em,
body .btp-app .btp-pipe-new-badge,
body .btp-app .btp-next-actions-head span,
body .btp-app .btp-lead-task-head span,
body .btp-app .btp-next-action-kpis small,
body .btp-app .btp-next-action-kpis span,
body .btp-app .btp-next-task-time span,
body .btp-app .btp-next-task-copy span,
body .btp-app .btp-next-task-copy small,
body .btp-app .btp-lead-task-head em,
body .btp-app .btp-lead-task-item>div:first-child span,
body .btp-app .btp-lead-task-item>div:first-child small,
body .btp-app .btp-task-form label,
body .btp-app .btp-matrix-method-note,
body .btp-app .btp-evidence-status span,
body .btp-app .btp-evidence-status strong,
body .btp-app .btp-evidence-status small,
body .btp-app .btp-action-queue-copy>span,
body .btp-app .btp-action-queue-copy>small,
body .btp-app .btp-lead-stage-card>div>span,
body .btp-app .btp-lead-stage-card label>span,
body .btp-app .btp-lead-stage-card>div>small,
body .btp-app .btp-lead-stage-card label>em,
body .btp-app .btp-service-focus-note--compact>p,
body .btp-app .btp-core-metrics span,
body .btp-app .btp-core-metrics small,
body .btp-app .btp-next-step-inline span,
body .btp-app .btp-matrix-intro,
body .btp-app .btp-workspace-control>span,
body .btp-app .btp-lead-mode-manage .btp-qualified-table th,
body .btp-app .btp-lead-mode-manage .btp-service-focus-tag,
body .btp-app .btp-lead-mode-manage .btp-analysis-state,
body .btp-app .btp-lead-mode-manage .btp-best-service-tag,
body .btp-app .btp-lead-mode-manage .btp-priority-tag,
body .btp-app .btp-lead-task-head-actions .btp-link-button,
body .btp-app .btp-commercial-recent-list span,
body .btp-app .btp-commercial-recent-list small,
body .btp-app .btp-commercial-activity-form label>span,
body .btp-app .btp-commercial-form-note,
body .btp-app .btp-followup-kpis span,
body .btp-app .btp-followup-kpis small,
body .btp-app .btp-followup-section-head>div>span,
body .btp-app .btp-followup-task-date span,
body .btp-app .btp-followup-task-date small,
body .btp-app .btp-followup-task-copy>span,
body .btp-app .btp-followup-task-copy>small,
body .btp-app .btp-followup-task-meta small,
body .btp-app .btp-commercial-report-kpis span,
body .btp-app .btp-commercial-report-kpis small,
body .btp-app .btp-report-card-head>span,
body .btp-app .btp-report-card-head p,
body .btp-app .btp-report-format-list span,
body .btp-app .btp-report-format-list small,
body .btp-app .btp-commercial-activity-list span,
body .btp-app .btp-commercial-activity-list small,
body .btp-app .btp-followup-visible-count,
body .btp-app .btp-followup-filter-empty p,
body .btp-app .btp-followup-completed summary strong,
body .btp-app .btp-followup-completed-list span,
body .btp-app .btp-followup-completed-list small,
body .btp-app .btp-report-channel-list span,
body .btp-app .btp-report-channel-list small,
body .btp-app .btp-report-format-list small,
body .btp-app .btp-report-channel-list small,
body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero div>small,
body .btp-app .btp-modal.is-lead-drawer .btp-core-metrics span,
body .btp-app .btp-nav-group-label,
body .btp-app .btp-nav-more .btp-nav-group-label,
body .btp-app .btp-task-history-group-head span,
body .btp-app .btp-task-history .btp-followup-completed-list span,
body .btp-app .btp-task-history .btp-followup-completed-list small{font-size:12px!important;line-height:1.35!important}

/* ==========================================================
   v0.57.0 · Production onboarding + operational notifications
   Keeps the Prospect black/gold/cream identity and reflows from
   desktop to split-screen/tablet/mobile without micro typography.
========================================================== */
body .btp-app .btp-notification-trigger{
  position:relative!important;display:inline-grid!important;place-items:center!important;
  width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;
  padding:0!important;border:1px solid rgba(217,195,153,.46)!important;border-radius:16px!important;
  background:rgba(255,255,255,.86)!important;color:#1a2736!important;box-shadow:0 10px 26px rgba(24,31,41,.05)!important;
  cursor:pointer!important;transition:border-color .18s ease,background .18s ease,transform .18s ease!important;
}
body .btp-app .btp-notification-trigger:hover{background:#fffaf0!important;border-color:#d6a34b!important;transform:translateY(-1px)!important}
body .btp-app .btp-notification-trigger .dashicons{width:20px!important;height:20px!important;font-size:20px!important;line-height:20px!important}
body .btp-app .btp-notification-trigger>b{
  position:absolute!important;right:-5px!important;top:-6px!important;display:grid!important;place-items:center!important;
  min-width:20px!important;height:20px!important;padding:0 5px!important;border:2px solid #fff!important;border-radius:999px!important;
  background:#dca83e!important;color:#122030!important;font-size:12px!important;line-height:1!important;font-weight:900!important;
}
body.btp-notifications-open,body.btp-onboarding-open{overflow:hidden!important}
body .btp-app .btp-notification-panel{
  position:fixed!important;inset:0!important;z-index:999992!important;display:grid!important;justify-items:end!important;
  pointer-events:none!important;opacity:0!important;visibility:hidden!important;transition:opacity .18s ease,visibility .18s ease!important;
}
body .btp-app .btp-notification-panel.is-open{pointer-events:auto!important;opacity:1!important;visibility:visible!important}
body .btp-app .btp-notification-backdrop{position:absolute!important;inset:0!important;border:0!important;background:rgba(7,12,19,.52)!important;backdrop-filter:blur(2px)!important}
body .btp-app .btp-notification-card{
  position:relative!important;z-index:2!important;width:min(440px,calc(100vw - 28px))!important;height:100%!important;max-height:100%!important;
  display:flex!important;flex-direction:column!important;background:#fffdf8!important;border-left:1px solid #eadfc8!important;
  box-shadow:-28px 0 70px rgba(5,11,18,.18)!important;transform:translateX(18px)!important;transition:transform .2s ease!important;
}
body .btp-app .btp-notification-panel.is-open .btp-notification-card{transform:none!important}
body .btp-app .btp-notification-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:18px!important;padding:28px 26px 20px!important;border-bottom:1px solid #eee5d7!important;background:#14202e!important}
body .btp-app .btp-notification-head>div{min-width:0!important}
body .btp-app .btp-notification-head span{display:block!important;margin-bottom:5px!important;color:#dfb457!important;font-size:12px!important;font-weight:900!important;letter-spacing:.12em!important}
body .btp-app .btp-notification-head h2{margin:0!important;color:#fff!important;font-size:26px!important;line-height:1.1!important;letter-spacing:-.03em!important}
body .btp-app .btp-notification-head p{margin:8px 0 0!important;color:#b7c0cb!important;font-size:13px!important;line-height:1.5!important}
body .btp-app .btp-notification-close{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;background:#0b131d!important;color:#f3cd70!important;font-size:24px!important;line-height:1!important;cursor:pointer!important}
body .btp-app .btp-notification-list{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:14px!important;scrollbar-width:thin!important;scrollbar-color:#d5ab5a #f7f0e4!important}
body .btp-app .btp-notification-list::-webkit-scrollbar{width:7px!important}
body .btp-app .btp-notification-list::-webkit-scrollbar-track{background:#f7f0e4!important;border-radius:999px!important}
body .btp-app .btp-notification-list::-webkit-scrollbar-thumb{background:#d5ab5a!important;border-radius:999px!important}
body .btp-app .btp-notification-item{
  width:100%!important;display:grid!important;grid-template-columns:10px minmax(0,1fr) 22px!important;align-items:center!important;gap:12px!important;
  padding:14px 13px!important;margin:0 0 8px!important;border:1px solid #eadfcf!important;border-radius:16px!important;background:#fff!important;color:#182536!important;text-align:left!important;cursor:pointer!important;
}
body .btp-app .btp-notification-item:hover{border-color:#d6ab54!important;background:#fffaf0!important}
body .btp-app .btp-notification-dot{width:9px!important;height:9px!important;border-radius:50%!important;background:#d8aa4d!important;box-shadow:0 0 0 4px rgba(216,170,77,.12)!important}
body .btp-app .btp-notification-item.is-overdue .btp-notification-dot,body .btp-app .btp-notification-item.is-billing .btp-notification-dot{background:#b66a38!important;box-shadow:0 0 0 4px rgba(182,106,56,.11)!important}
body .btp-app .btp-notification-item>div{min-width:0!important}
body .btp-app .btp-notification-item strong{display:block!important;color:#172333!important;font-size:14px!important;line-height:1.28!important}
body .btp-app .btp-notification-item p{margin:3px 0 0!important;color:#6f7a88!important;font-size:12.5px!important;line-height:1.42!important;overflow-wrap:anywhere!important}
body .btp-app .btp-notification-item small{display:block!important;margin-top:5px!important;color:#a06f18!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-notification-item>.dashicons{color:#a67620!important;width:18px!important;height:18px!important;font-size:18px!important}
body .btp-app .btp-notification-empty{display:grid!important;place-items:center!important;text-align:center!important;padding:54px 20px!important;color:#7a8592!important}
body .btp-app .btp-notification-empty .dashicons{width:40px!important;height:40px!important;font-size:40px!important;color:#d5aa50!important;margin-bottom:12px!important}
body .btp-app .btp-notification-empty strong{color:#172333!important;font-size:18px!important}
body .btp-app .btp-notification-empty p{margin:6px 0 0!important;font-size:13px!important;line-height:1.5!important}
body .btp-app .btp-notification-footer{padding:14px!important;border-top:1px solid #eee5d7!important;background:#fffaf2!important}
body .btp-app .btp-notification-footer .btp-mini{width:100%!important;min-height:44px!important;justify-content:center!important}

/* First-use onboarding. */
body .btp-app .btp-onboarding{
  position:fixed!important;inset:0!important;z-index:999995!important;display:grid!important;place-items:center!important;
  padding:24px!important;background:rgba(6,11,18,.82)!important;backdrop-filter:blur(8px)!important;overflow:auto!important;
}
body .btp-app .btp-onboarding-card{
  width:min(920px,100%)!important;max-height:calc(100vh - 48px)!important;overflow:auto!important;
  border:1px solid rgba(222,181,96,.34)!important;border-radius:28px!important;background:#fffdf9!important;
  box-shadow:0 30px 100px rgba(0,0,0,.36)!important;padding:28px!important;scrollbar-width:thin!important;scrollbar-color:#d6aa52 #f6efe3!important;
}
body .btp-app .btp-onboarding-card::-webkit-scrollbar{width:7px!important}
body .btp-app .btp-onboarding-card::-webkit-scrollbar-track{background:#f6efe3!important}
body .btp-app .btp-onboarding-card::-webkit-scrollbar-thumb{background:#d6aa52!important;border-radius:999px!important}
body .btp-app .btp-onboarding-brand{width:170px!important;margin:0 auto 14px!important}
body .btp-app .btp-onboarding-brand .btp-brand{min-height:0!important;padding:0!important}
body .btp-app .btp-onboarding-brand .btp-brand-image{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
body .btp-app .btp-onboarding-progress{display:flex!important;justify-content:center!important;gap:8px!important;margin:0 auto 24px!important}
body .btp-app .btp-onboarding-progress i{display:block!important;width:42px!important;height:4px!important;border-radius:99px!important;background:#e8e2d7!important;transition:background .18s ease!important}
body .btp-app .btp-onboarding-progress i.is-active{background:#d6a34b!important}
body .btp-app .btp-onboarding-step{max-width:820px!important;margin:0 auto!important}
body .btp-app .btp-onboarding-kicker{display:block!important;margin-bottom:7px!important;color:#a16c11!important;font-size:12px!important;font-weight:900!important;letter-spacing:.14em!important;text-align:center!important}
body .btp-app .btp-onboarding-step h2{margin:0!important;color:#111d2b!important;font-size:clamp(26px,3vw,36px)!important;line-height:1.08!important;letter-spacing:-.04em!important;text-align:center!important}
body .btp-app .btp-onboarding-step>p{max-width:680px!important;margin:10px auto 22px!important;color:#6f7b89!important;font-size:14px!important;line-height:1.55!important;text-align:center!important}
body .btp-app .btp-onboarding-field,body .btp-app .btp-onboarding-grid label{display:grid!important;gap:7px!important;color:#475467!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-onboarding-field{max-width:620px!important;margin:14px auto!important}
body .btp-app .btp-onboarding-field select,body .btp-app .btp-onboarding-grid :is(input,select){width:100%!important;min-height:48px!important;padding:0 14px!important;border:1px solid #dfe3e8!important;border-radius:15px!important;background:#fff!important;color:#172333!important;font-size:14px!important;font-weight:650!important;outline:0!important}
body .btp-app .btp-onboarding-field select:focus,body .btp-app .btp-onboarding-grid :is(input,select):focus{border-color:#d5a13f!important;box-shadow:0 0 0 4px rgba(213,161,63,.12)!important}
body .btp-app .btp-onboarding-services{margin:18px auto!important;max-width:820px!important}
body .btp-app .btp-onboarding-services>span{display:block!important;margin-bottom:8px!important;color:#475467!important;font-size:12px!important;font-weight:850!important}
body .btp-app .btp-onboarding-services>div{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
body .btp-app .btp-onboarding-service{position:relative!important;min-width:0!important;cursor:pointer!important}
body .btp-app .btp-onboarding-service>input{position:absolute!important;opacity:0!important;pointer-events:none!important}
body .btp-app .btp-onboarding-service>span{min-height:82px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:10px!important;border:1px solid #e5dfd3!important;border-radius:15px!important;background:#fff!important;text-align:center!important;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease!important}
body .btp-app .btp-onboarding-service input:checked+span{border-color:#d8a849!important;background:#fff6df!important;box-shadow:0 0 0 3px rgba(216,168,73,.10)!important}
body .btp-app .btp-onboarding-service .btp-figma-icon{width:20px!important;height:20px!important}
body .btp-app .btp-onboarding-service strong{color:#1f2b3a!important;font-size:12px!important;line-height:1.25!important;overflow-wrap:normal!important;word-break:normal!important}
body .btp-app .btp-onboarding-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;max-width:760px!important;margin:20px auto!important}
body .btp-app .btp-onboarding-flow{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:24px auto!important;max-width:820px!important}
body .btp-app .btp-onboarding-flow>div{min-width:0!important;padding:15px 12px!important;border:1px solid #eadfc9!important;border-radius:16px!important;background:#fffaf0!important;text-align:center!important}
body .btp-app .btp-onboarding-flow b{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;margin:0 auto 8px!important;border-radius:10px!important;background:#dca83e!important;color:#152230!important;font-size:13px!important}
body .btp-app .btp-onboarding-flow strong{display:block!important;color:#172333!important;font-size:13.5px!important;line-height:1.25!important}
body .btp-app .btp-onboarding-flow span{display:block!important;margin-top:4px!important;color:#7d8793!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-onboarding-reminder,body .btp-app .btp-notification-preference{display:flex!important;align-items:flex-start!important;gap:11px!important;padding:14px!important;border:1px solid #e8dfcf!important;border-radius:16px!important;background:#fffaf1!important;cursor:pointer!important}
body .btp-app .btp-onboarding-reminder{max-width:620px!important;margin:20px auto!important}
body .btp-app .btp-onboarding-reminder input,body .btp-app .btp-notification-preference input{width:18px!important;height:18px!important;min-width:18px!important;margin:2px 0 0!important;accent-color:#c99635!important}
body .btp-app .btp-onboarding-reminder span,body .btp-app .btp-notification-preference span{min-width:0!important}
body .btp-app .btp-onboarding-reminder strong,body .btp-app .btp-notification-preference strong{display:block!important;color:#172333!important;font-size:13px!important;line-height:1.3!important}
body .btp-app .btp-onboarding-reminder small,body .btp-app .btp-notification-preference small{display:block!important;margin-top:3px!important;color:#7d8793!important;font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-onboarding-feedback{min-height:20px!important;margin:4px auto!important;max-width:760px!important;color:#647181!important;font-size:12.5px!important;text-align:center!important}
body .btp-app .btp-onboarding-feedback.error{color:#a45f34!important}.btp-onboarding-feedback.success{color:#287859!important}
body .btp-app .btp-onboarding-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;max-width:820px!important;margin:20px auto 0!important;padding-top:18px!important;border-top:1px solid #ece4d6!important}
body .btp-app .btp-onboarding-actions>div{display:flex!important;gap:9px!important;align-items:center!important}
body .btp-app .btp-onboarding-actions button{min-height:44px!important;white-space:nowrap!important}
body .btp-app .btp-notification-preference{margin:2px 0 0!important;max-width:100%!important}

@media (max-width:1180px){
  body .btp-app .btp-onboarding-services>div{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-onboarding-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:760px){
  body .btp-app .btp-notification-trigger{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:14px!important}
  body .btp-app .btp-notification-card{width:100%!important;max-width:none!important;height:auto!important;max-height:88%!important;align-self:end!important;border-left:0!important;border-top:1px solid #eadfc8!important;border-radius:24px 24px 0 0!important;transform:translateY(20px)!important}
  body .btp-app .btp-notification-head{padding:20px 18px 15px!important}
  body .btp-app .btp-notification-head h2{font-size:23px!important}
  body .btp-app .btp-notification-list{padding:11px!important}
  body .btp-app .btp-onboarding{padding:0!important;align-items:end!important}
  body .btp-app .btp-onboarding-card{width:100%!important;max-height:94vh!important;border-radius:24px 24px 0 0!important;padding:20px 15px calc(18px + env(safe-area-inset-bottom))!important}
  body .btp-app .btp-onboarding-brand{width:145px!important;margin-bottom:10px!important}
  body .btp-app .btp-onboarding-step h2{font-size:27px!important}
  body .btp-app .btp-onboarding-step>p{font-size:13.5px!important;margin-bottom:18px!important}
  body .btp-app .btp-onboarding-services>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-onboarding-service>span{min-height:72px!important;padding:9px 7px!important}
  body .btp-app .btp-onboarding-grid{grid-template-columns:1fr!important;gap:10px!important}
  body .btp-app .btp-onboarding-grid :is(input,select),body .btp-app .btp-onboarding-field select{font-size:16px!important}
  body .btp-app .btp-onboarding-flow{grid-template-columns:1fr 1fr!important;gap:8px!important}
  body .btp-app .btp-onboarding-actions{align-items:stretch!important;flex-direction:column-reverse!important}
  body .btp-app .btp-onboarding-actions>div{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;width:100%!important}
  body .btp-app .btp-onboarding-actions>[data-btp-onboarding-skip]{width:100%!important}
  body .btp-app .btp-onboarding-actions .btp-primary{width:100%!important;justify-content:center!important}
}
@media (max-width:390px){
  body .btp-app .btp-onboarding-services>div{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body .btp-app .btp-onboarding-service strong{font-size:12px!important}
  body .btp-app .btp-onboarding-flow{grid-template-columns:1fr!important}
  body .btp-app .btp-notification-item{grid-template-columns:9px minmax(0,1fr)!important}
  body .btp-app .btp-notification-item>.dashicons{display:none!important}
}


/* v0.57.0 — production UI finishing: focus, topbar density and safe wrapping. */
body .btp-app .btp-userbox{column-gap:8px!important}
body .btp-app :is(.btp-notification-trigger,.btp-notification-close,.btp-notification-item,.btp-onboarding-actions button,.btp-onboarding-service>span):focus-visible{
  outline:2px solid rgba(214,163,75,.65)!important;outline-offset:3px!important;box-shadow:0 0 0 4px rgba(214,163,75,.10)!important
}
body .btp-app .btp-notification-item div,body .btp-app .btp-notification-item strong,body .btp-app .btp-notification-item p{min-width:0!important;overflow-wrap:break-word!important;word-break:normal!important}
body .btp-app .btp-onboarding-grid>*{min-width:0!important}
@media (max-width:1180px) and (min-width:761px){
  body .btp-app .btp-onboarding-card{width:min(900px,calc(100% - 48px))!important;padding:28px 24px!important}
  body .btp-app .btp-notification-card{width:min(390px,42vw)!important}
}
@media (max-width:600px){
  body .btp-app .btp-userbox{column-gap:6px!important}
  body .btp-app .btp-onboarding-service strong{font-size:12px!important}
  body .btp-app .btp-onboarding-reminder strong{font-size:14px!important}
  body .btp-app .btp-onboarding-reminder small{font-size:12.5px!important}
}


/* ==========================================================
   v0.58.0 · Commercial settings propagation
   Segment/location defaults are part of the same responsive
   settings system and never create a wider fixed card.
========================================================== */
body .btp-app .btp-prospecting-defaults-card{min-width:0!important}
body .btp-app .btp-prospecting-defaults-card .btp-form-grid{width:100%!important;min-width:0!important}
body .btp-app .btp-prospecting-defaults-card input{min-width:0!important;width:100%!important}
@media(max-width:760px){body .btp-app .btp-prospecting-defaults-card .btp-form-grid{grid-template-columns:1fr!important}}


/* ==========================================================
   v0.58.1 · Onboarding reliability + responsive finish
   The modal is hidden by semantic state; scrolling belongs to
   an inner surface so the gold scrollbar never escapes corners.
========================================================== */
body .btp-app .btp-onboarding[aria-hidden="true"],
body .btp-app .btp-onboarding:not(.is-open){
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}
body .btp-app .btp-onboarding-card{
  padding:0!important;overflow:hidden!important;max-height:calc(100vh - 48px)!important;
}
body .btp-app .btp-onboarding-scroll{
  width:100%!important;max-height:calc(100vh - 48px)!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:28px!important;box-sizing:border-box!important;overscroll-behavior:contain!important;
  scrollbar-width:thin!important;scrollbar-color:#d6aa52 transparent!important;scrollbar-gutter:stable!important;
}
body .btp-app .btp-onboarding-scroll::-webkit-scrollbar{width:7px!important}
body .btp-app .btp-onboarding-scroll::-webkit-scrollbar-track{background:transparent!important;margin:14px 0!important}
body .btp-app .btp-onboarding-scroll::-webkit-scrollbar-thumb{background:#d6aa52!important;border-radius:999px!important;border:2px solid #fffdf9!important}
body .btp-app .btp-onboarding-brand{width:210px!important;max-width:48vw!important;margin:0 auto 14px!important}
body .btp-app .btp-onboarding-brand .btp-brand--onboarding{width:100%!important;display:block!important}
body .btp-app .btp-onboarding-brand .btp-brand--onboarding .btp-brand-image{width:100%!important;height:auto!important;display:block!important}
body .btp-app .btp-onboarding-service strong{font-size:12px!important;line-height:1.28!important}
body .btp-app .btp-onboarding-field>span,
body .btp-app .btp-onboarding-grid label>span,
body .btp-app .btp-onboarding-services>span{font-size:12.5px!important;line-height:1.3!important}
body .btp-app .btp-onboarding-step>p{font-size:14.5px!important}
body .btp-app .btp-onboarding-feedback.success{color:#287859!important;font-weight:750!important}
@media (max-width:1180px) and (min-width:761px){
  body .btp-app .btp-onboarding-card{width:min(900px,calc(100% - 40px))!important}
  body .btp-app .btp-onboarding-scroll{padding:26px 24px!important}
  body .btp-app .btp-onboarding-brand{width:195px!important}
}
@media (max-width:760px){
  body .btp-app .btp-onboarding-card{max-height:94vh!important;padding:0!important}
  body .btp-app .btp-onboarding-scroll{max-height:94vh!important;padding:20px 15px calc(18px + env(safe-area-inset-bottom))!important}
  body .btp-app .btp-onboarding-brand{width:185px!important;max-width:62vw!important;margin-bottom:12px!important}
  body .btp-app .btp-onboarding-service>span{min-width:0!important}
  body .btp-app .btp-onboarding-service strong{font-size:12.5px!important}
  body .btp-app .btp-onboarding-actions button{min-height:46px!important;font-size:14px!important}
}
@media (max-width:390px){
  body .btp-app .btp-onboarding-scroll{padding-left:12px!important;padding-right:12px!important}
  body .btp-app .btp-onboarding-brand{width:170px!important}
  body .btp-app .btp-onboarding-step h2{font-size:25px!important;line-height:1.12!important}
  body .btp-app .btp-onboarding-services>div{gap:8px!important}
  body .btp-app .btp-onboarding-service>span{padding:10px 6px!important}
}


/* v0.58.3 · busca Free responsiva e feedback operacional */
.btp-search-feedback.is-visible{display:block!important;min-height:42px;margin-top:12px;padding:11px 13px;border:1px solid rgba(214,163,75,.24);border-radius:14px;background:#fffaf0;color:#5f6874;font-size:13px;line-height:1.45}
.btp-search-submit[aria-busy="true"]{cursor:wait!important;opacity:.88}
.btp-auto-analysis.is-pro-preview{cursor:default!important;align-items:flex-start!important;background:#fffaf0!important;border-color:rgba(214,163,75,.26)!important}
.btp-auto-analysis.is-pro-preview>.dashicons{flex:0 0 20px;width:20px;height:20px;font-size:20px;line-height:20px;margin-top:1px;color:#a56d0c}
@media(max-width:782px){.btp-search-feedback.is-visible{font-size:13.5px}.btp-auto-analysis.is-pro-preview small{font-size:12.5px!important}}

/* v0.58.5 · CTA vazio do Dashboard — proporção e responsividade */
body .btp-app .btp-next-actions-empty{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  min-height:108px!important;
  padding:18px 22px!important;
}
body .btp-app .btp-next-actions-empty strong{
  font-size:13px!important;
  line-height:1.35!important;
}
body .btp-app .btp-next-actions-empty p{
  max-width:680px!important;
  margin:5px auto 12px!important;
  font-size:12px!important;
  line-height:1.5!important;
}
body .btp-app .btp-next-actions-empty > button.btp-primary{
  width:auto!important;
  min-width:0!important;
  min-height:40px!important;
  height:40px!important;
  margin:0!important;
  padding:0 20px!important;
  border-radius:999px!important;
  font-size:12.5px!important;
  line-height:1!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
  box-shadow:0 8px 20px rgba(215,163,50,.18)!important;
}
@media (min-width:1440px){
  body .btp-app .btp-next-actions-empty{min-height:112px!important;padding:19px 24px!important}
  body .btp-app .btp-next-actions-empty > button.btp-primary{height:42px!important;min-height:42px!important;padding:0 22px!important;font-size:13px!important}
}
@media (max-width:1180px){
  body .btp-app .btp-next-actions-empty{min-height:104px!important;padding:16px 18px!important}
}
@media (max-width:820px){
  body .btp-app .btp-next-actions-empty{min-height:0!important;padding:17px 16px!important;border-radius:13px!important}
  body .btp-app .btp-next-actions-empty p{max-width:520px!important;margin-bottom:11px!important;font-size:12px!important}
  body .btp-app .btp-next-actions-empty > button.btp-primary{width:auto!important;max-width:100%!important;height:42px!important;min-height:42px!important;padding:0 20px!important;font-size:13px!important}
}
@media (max-width:520px){
  body .btp-app .btp-next-actions-empty{padding:16px 14px!important}
  body .btp-app .btp-next-actions-empty strong{font-size:13.5px!important}
  body .btp-app .btp-next-actions-empty p{font-size:12px!important;line-height:1.45!important;margin:5px auto 12px!important}
  body .btp-app .btp-next-actions-empty > button.btp-primary{width:100%!important;max-width:320px!important;height:auto!important;min-height:44px!important;padding:10px 18px!important;font-size:13px!important;line-height:1.2!important;white-space:normal!important}
}
@media (max-width:360px){
  body .btp-app .btp-next-actions-empty{padding:15px 12px!important}
  body .btp-app .btp-next-actions-empty > button.btp-primary{max-width:none!important}
}


/* ==========================================================
   v0.58.8 — service-aware diagnosis + adaptive workspace audit
========================================================== */
/* Use the real content width, not only the browser viewport. Side panels,
   browser sidebars and compact laptop windows therefore trigger card mode
   before the six-column lead table becomes unreadable. */
@container btp-content (max-width:1100px){
  body .btp-app .btp-lead-workspace .btp-qualified-table{min-width:0!important;width:100%!important;display:block!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table thead{display:none!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody{display:grid!important;gap:12px!important;padding:10px!important;width:100%!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px 18px!important;padding:16px 18px!important;border:1px solid #e7e1d7!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 22px rgba(17,25,36,.04)!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row[hidden]{display:none!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td{display:block!important;padding:0!important;border:0!important;min-width:0!important;text-align:left!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td::before{display:block!important;position:static!important;width:auto!important;margin:0 0 5px!important;content:attr(data-label)!important;color:#94681a!important;font-size:12px!important;line-height:1.2!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row .btp-select-col{display:none!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td:nth-child(n+2){grid-column:auto!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td:last-child{align-self:end!important}
  body .btp-app .btp-lead-workspace .btp-table-wrap{overflow-x:hidden!important;padding-inline:0!important}
  body .btp-app .btp-company-cell>strong{overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
  body .btp-app .btp-company-cell>small{white-space:normal!important}
}
@container btp-content (max-width:720px){
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row{grid-template-columns:minmax(0,1fr)!important;padding:15px!important;gap:11px!important}
  body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row td{grid-column:1!important}
}

/* Drawer scales with the available viewport and keeps natural words intact. */
body .btp-app .btp-modal.is-lead-drawer .btp-modal-card{width:min(720px,calc(100vw - 32px))!important;max-width:720px!important}
body .btp-app .btp-modal.is-lead-drawer :is(h2,h3,p,strong,small,span){word-break:normal!important;hyphens:none!important}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-suggestion p{overflow-wrap:break-word!important}
@media (max-width:900px){
  body .btp-app .btp-modal.is-lead-drawer{padding:12px!important;align-items:stretch!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-modal-card{width:100%!important;max-width:none!important;height:auto!important;max-height:calc(100dvh - 24px)!important;border-radius:22px!important;padding:20px 18px 24px!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-core-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar{align-items:flex-start!important;flex-direction:column!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-decision-meta{justify-content:flex-start!important}
}
@media (max-width:600px){
  body .btp-app .btp-modal.is-lead-drawer{padding:0!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-modal-card{height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:18px 15px 24px!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-core-metrics{grid-template-columns:1fr!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-lead-public-data{grid-template-columns:1fr!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-lead-detail-head h2{font-size:clamp(25px,8vw,32px)!important}
}

/* First-use monetary fields are intentionally empty: examples belong to
   placeholders, never to the user's commercial data. */
body .btp-app .btp-onboarding-grid input::placeholder{color:#a3acb6!important;opacity:1!important;font-weight:500!important}


/* ==========================================================
   v0.58.11 — Prospecting results spatial UX + empty state
   Cards use the available surface instead of stacking all information
   against the left edge. Container queries keep the layout tied to the
   real application width (including browser sidebars / split windows).
========================================================== */
body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row{
  min-width:0;
}
body .btp-app .btp-empty-row td.btp-empty{
  padding:0!important;
  height:auto!important;
  text-align:initial!important;
}
body .btp-app .btp-empty-state{
  min-height:190px;
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0,520px) auto;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:34px clamp(22px,4vw,52px);
  background:linear-gradient(145deg,#fffdf8 0%,#fbf7ef 100%);
  border:1px solid #eee4d2;
  border-radius:18px;
}
body .btp-app .btp-empty-state-icon{
  width:50px;height:50px;border-radius:16px;display:grid;place-items:center;
  background:#fff4d8;color:#a36f13;border:1px solid #ecd8aa;font-size:23px;
}
body .btp-app .btp-empty-state-copy{min-width:0;text-align:left}
body .btp-app .btp-empty-state-copy strong{display:block;color:#172334;font-size:18px;line-height:1.2;margin:0 0 5px}
body .btp-app .btp-empty-state-copy small{display:block;color:#7f8a98;font-size:12.5px;line-height:1.5;max-width:48ch}
body .btp-app .btp-empty-state-action{white-space:nowrap!important}

@container btp-content (max-width:1100px) and (min-width:721px){
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row{
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;
    grid-template-areas:
      "company contact"
      "site reviews"
      "opportunity opportunity"
      "actions actions"!important;
    align-content:start!important;
    gap:15px 20px!important;
    height:100%!important;
    padding:18px!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(1){grid-area:company!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(2){grid-area:contact!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(3){grid-area:site!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(4){grid-area:reviews!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(5){grid-area:opportunity!important;padding-top:13px!important;border-top:1px solid #eee7dc!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(6){grid-area:actions!important;padding-top:2px!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row .btp-quick-actions{justify-content:flex-start!important}
  body .btp-app .btp-lead-mode-discovery .btp-opportunity-cell{display:grid!important;gap:7px!important}
}

@container btp-content (max-width:820px){
  body .btp-app .btp-empty-state{grid-template-columns:auto minmax(0,1fr);min-height:150px;padding:25px 22px;gap:14px}
  body .btp-app .btp-empty-state-action{grid-column:2;justify-self:start}
}
@container btp-content (max-width:720px){
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody{grid-template-columns:1fr!important;padding:8px!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:"company contact" "site reviews" "opportunity opportunity" "actions actions"!important;
    gap:13px 16px!important;padding:16px!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(1){grid-area:company!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(2){grid-area:contact!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(3){grid-area:site!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(4){grid-area:reviews!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(5){grid-area:opportunity!important;padding-top:12px!important;border-top:1px solid #eee7dc!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row>td:nth-child(6){grid-area:actions!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row .btp-quick-actions{justify-content:flex-start!important}
}
@container btp-content (max-width:480px){
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table tbody tr.btp-lead-row{
    grid-template-columns:1fr!important;
    grid-template-areas:"company" "contact" "site" "reviews" "opportunity" "actions"!important;
    gap:12px!important;padding:15px!important;
  }
  body .btp-app .btp-empty-state{grid-template-columns:1fr;justify-items:center;text-align:center;min-height:0;padding:24px 18px}
  body .btp-app .btp-empty-state-copy{text-align:center}
  body .btp-app .btp-empty-state-copy small{font-size:12px}
  body .btp-app .btp-empty-state-action{grid-column:1;width:100%!important;max-width:260px!important;justify-content:center!important}
}

/* Keep scrollbars inside the workspace and visually aligned with the brand. */
body .btp-app .btp-table-wrap{scrollbar-width:thin;scrollbar-color:#d5a73f #f3eee5}
body .btp-app .btp-table-wrap::-webkit-scrollbar{height:8px;width:8px}
body .btp-app .btp-table-wrap::-webkit-scrollbar-track{background:#f3eee5;border-radius:999px}
body .btp-app .btp-table-wrap::-webkit-scrollbar-thumb{background:#d5a73f;border-radius:999px;border:2px solid #f3eee5}
body .btp-app .btp-table-wrap::-webkit-scrollbar-thumb:hover{background:#b98622}


/* ==========================================================
   v0.58.12 — Responsive preservation audit
   Goal: fix the prospecting empty/result states without degrading
   layouts that already work at desktop widths. Breakpoints follow
   the REAL application container width, not the monitor width.
   The search glyph is the existing Figma-exported linear search.svg.
========================================================== */

/* Empty state: compact, deliberate and visually centered. Do not turn the
   table into a large decorative card when there is no data. */
body .btp-app .btp-qualified-table.is-empty thead{display:none!important}
body .btp-app .btp-qualified-table.is-empty tbody{display:table-row-group!important;padding:0!important}
body .btp-app .btp-qualified-table.is-empty tbody tr.btp-empty-row{display:table-row!important;background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important}
body .btp-app .btp-qualified-table.is-empty tbody tr.btp-empty-row>td{display:table-cell!important;padding:14px 0 0!important;border:0!important}
body .btp-app .btp-qualified-table.is-empty tbody tr.btp-empty-row>td::before{display:none!important;content:none!important}
body .btp-app .btp-empty-state{
  min-height:118px!important;
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:14px!important;
  padding:22px clamp(18px,3vw,34px)!important;
  background:#fffdf8!important;
  border:1px solid #eee4d2!important;
  border-radius:18px!important;
  text-align:left!important;
}
body .btp-app .btp-empty-state-icon.dashicons-search{
  width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;
  border-radius:14px!important;padding:10px!important;box-sizing:border-box!important;
  background-color:#a36f13!important;
  -webkit-mask-origin:content-box!important;mask-origin:content-box!important;
  -webkit-mask-clip:content-box!important;mask-clip:content-box!important;
}
body .btp-app .btp-empty-state-copy{min-width:0!important;text-align:left!important;max-width:520px!important}
body .btp-app .btp-empty-state-copy strong{font-size:17px!important;line-height:1.25!important;margin:0 0 4px!important}
body .btp-app .btp-empty-state-copy small{font-size:12.5px!important;line-height:1.45!important;max-width:none!important}
body .btp-app .btp-empty-state-action{margin-left:6px!important;flex:0 0 auto!important;white-space:nowrap!important}

/* Desktop / wide content: preserve the original table layout. */
@container btp-content (min-width:1101px){
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads{display:table!important;width:100%!important;table-layout:fixed!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads thead{display:table-header-group!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody{display:table-row-group!important;padding:0!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row{display:table-row!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td{display:table-cell!important;padding:14px 12px!important;vertical-align:middle!important;border-bottom:1px solid #eee9e1!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td::before{display:none!important;content:none!important}
}

/* Medium application widths: one lead per card. This is intentionally NOT a
   two-card grid: one card uses the available width and avoids the cramped
   left-heavy layout seen in split-window/browser-sidebar scenarios. */
@container btp-content (max-width:1100px) and (min-width:721px){
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody{grid-template-columns:1fr!important;padding:10px!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,.85fr)!important;
    grid-template-areas:"company contact site" "reviews opportunity opportunity" "actions opportunity opportunity"!important;
    gap:14px 20px!important;padding:18px 20px!important;height:auto!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td:nth-child(1){grid-area:company!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td:nth-child(2){grid-area:contact!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td:nth-child(3){grid-area:site!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td:nth-child(4){grid-area:reviews!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td:nth-child(5){grid-area:opportunity!important;padding:0 0 0 18px!important;border-top:0!important;border-left:1px solid #eee7dc!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td:nth-child(6){grid-area:actions!important;align-self:end!important}
}

/* Workspace controls: shrink progressively without forcing text into ugly
   breaks. */
@container btp-content (max-width:980px){
  body .btp-app .btp-workspace-head{align-items:flex-start!important;gap:16px!important}
  body .btp-app .btp-workspace-head .btp-workspace-context-action{flex:0 0 auto!important}
  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body .btp-app .btp-workspace-toolbar--refined{grid-template-columns:minmax(0,1fr) minmax(180px,.65fr)!important}
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{grid-column:1/-1!important}
}
@container btp-content (max-width:720px){
  body .btp-app .btp-workspace-head{flex-direction:column!important;align-items:stretch!important}
  body .btp-app .btp-workspace-head .btp-workspace-context-action{align-self:flex-start!important}
  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-workspace-toolbar--refined{grid-template-columns:1fr!important;gap:10px!important}
  body .btp-app .btp-workspace-toolbar--refined>*{grid-column:1!important;min-width:0!important}
  body .btp-app .btp-empty-state{min-height:0!important;padding:20px 18px!important;justify-content:flex-start!important}
  body .btp-app .btp-empty-state-action{margin-left:auto!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:"company contact" "site reviews" "opportunity opportunity" "actions actions"!important;
    gap:13px 16px!important;padding:16px!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td:nth-child(5){padding:12px 0 0!important;border-left:0!important;border-top:1px solid #eee7dc!important}
}
@container btp-content (max-width:520px){
  body .btp-app .btp-lead-kpis{grid-template-columns:1fr 1fr!important;gap:8px!important}
  body .btp-app .btp-empty-state{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;text-align:left!important}
  body .btp-app .btp-empty-state-copy{text-align:left!important}
  body .btp-app .btp-empty-state-action{grid-column:1/-1!important;width:100%!important;max-width:none!important;margin:2px 0 0!important;justify-content:center!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    grid-template-columns:1fr!important;
    grid-template-areas:"company" "contact" "site" "reviews" "opportunity" "actions"!important;
    gap:11px!important;padding:15px!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td:nth-child(5){padding-top:11px!important}
}

/* Scroll only when a component truly needs it; never let a scrollbar exceed
   the rounded panel. */
body .btp-app .btp-table-panel{overflow:hidden!important}
body .btp-app .btp-table-wrap{max-width:100%!important;overscroll-behavior-inline:contain!important;scrollbar-gutter:stable both-edges}

/* ============================================================================
   v0.58.13 — full responsive integrity audit
   Preserve wide layouts; adapt to the REAL content width on reduced windows.
   ============================================================================ */
body .btp-app .btp-view{container-type:inline-size;container-name:btp-page}
body .btp-app .btp-view :is(.btp-message-toolbar,.btp-library-toolbar,.btp-workspace-toolbar--refined,.btp-lead-kpis,.btp-message-list-shell,.btp-library-shell){width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}

/* Messages: at compact desktop widths the controls stack instead of overlapping
   the message list. Menus stay above cards and inside the available viewport. */
body .btp-app .btp-message-toolbar{position:relative!important;isolation:isolate!important;overflow:visible!important}
body .btp-app .btp-message-filter{position:relative!important;min-width:0!important}
body .btp-app .btp-message-filter .btp-brand-select{position:relative!important;z-index:auto!important}
body .btp-app .btp-message-filter .btp-brand-select.is-open{z-index:1000!important}
body .btp-app .btp-message-filter .btp-brand-select-menu{z-index:1001!important;max-width:100%!important}
body .btp-app .btp-message-list-shell{position:relative!important;z-index:1!important}
@container btp-page (max-width:900px){
 body .btp-app .btp-message-toolbar{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:12px!important}
 body .btp-app .btp-message-search,body .btp-app .btp-message-filter,body .btp-app .btp-message-count{grid-column:auto!important;width:100%!important;min-width:0!important}
 body .btp-app .btp-message-filter .btp-brand-select-trigger{width:100%!important}
 body .btp-app .btp-message-count{min-width:0!important}
}

/* Library: replace browser-native selects with the same neutral visual language
   without allowing OS highlight colors to become part of the platform surface. */
body .btp-app .btp-library-toolbar select{
 appearance:none!important;-webkit-appearance:none!important;
 background-color:#fff!important;color:#172334!important;border-color:#dfe3e7!important;
 background-image:linear-gradient(45deg,transparent 50%,#9a6b14 50%),linear-gradient(135deg,#9a6b14 50%,transparent 50%)!important;
 background-position:calc(100% - 18px) 21px,calc(100% - 13px) 21px!important;
 background-size:5px 5px,5px 5px!important;background-repeat:no-repeat!important;
 accent-color:#c99633!important;color-scheme:light!important;
}
body .btp-app .btp-library-toolbar select:focus{outline:0!important;border-color:#c99532!important;box-shadow:0 0 0 4px rgba(210,159,58,.12)!important}
@container btp-page (max-width:900px){
 body .btp-app .btp-library-toolbar{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:12px!important}
 body .btp-app .btp-library-search,body .btp-app .btp-library-toolbar>label,body .btp-app .btp-library-count{grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0!important}
 body .btp-app .btp-library-count{justify-self:stretch!important}
 body .btp-app .btp-library-item{grid-template-columns:42px minmax(0,1fr)!important;grid-template-areas:"icon copy" "actions actions"!important}
 body .btp-app .btp-library-actions{grid-area:actions!important;padding-left:54px!important;justify-content:flex-start!important;max-width:none!important}
}
@container btp-page (max-width:520px){
 body .btp-app .btp-library-actions{padding-left:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 body .btp-app .btp-library-actions>*{width:100%!important}
}

/* Prospect / Leads reduced-window layout: use the entire card width, but keep
   wide-screen table layouts untouched. */
@container btp-page (max-width:900px){
 body .btp-app .btp-workspace-toolbar--refined{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{grid-column:auto!important}
 body .btp-app .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .btp-app .btp-lead-workspace .btp-qualified-table tbody tr.btp-lead-row,
 body .btp-app .btp-lead-workspace--compact .btp-qualified-table tbody tr.btp-lead-row{width:100%!important;max-width:none!important}
}
@container btp-page (max-width:460px){body .btp-app .btp-lead-kpis{grid-template-columns:minmax(0,1fr)!important}}

/* Text integrity: wrap by words; dynamic long identifiers may break only as a
   last resort. */
body .btp-app .btp-view :is(h1,h2,h3,h4,p,strong,label,button){word-break:normal!important;overflow-wrap:normal!important}
body .btp-app .btp-view :is(small,.btp-library-meta,.btp-message-preview,.btp-company-cell,.btp-opportunity-cell){word-break:normal!important;overflow-wrap:break-word!important}

/* Scrollbars remain visually contained and use Prospect gold rather than OS UI. */
body .btp-app :is(.btp-brand-select-menu,.btp-library-list,.btp-message-list,.btp-prompt-list,.btp-table-wrap){scrollbar-color:rgba(174,124,30,.62) transparent!important;scrollbar-gutter:stable!important}
body .btp-app :is(.btp-brand-select-menu,.btp-library-list,.btp-message-list,.btp-prompt-list,.btp-table-wrap)::-webkit-scrollbar-track{background:transparent!important;margin-block:8px!important}

/* ==========================================================
   v0.58.14 · COMPACT SIDEBAR OPTICAL ALIGNMENT
   Corrige somente a navegação lateral compacta (split screen,
   notebook e janelas reduzidas). Desktop amplo e mobile mantêm
   o comportamento já aprovado. O ícone ocupa uma caixa fixa e
   é centralizado geometricamente no botão, independente de badge
   PRO, label oculto ou diferenças internas do SVG do Figma.
========================================================== */
@media (min-width:721px) and (max-width:1320px){
  body .btp-app .btp-sidebar nav.btp-nav button,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more button{
    position:relative!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    place-items:center!important;
    justify-items:center!important;
    align-items:center!important;
    padding-left:0!important;
    padding-right:0!important;
    text-align:center!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-icon,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-figma-icon{
    position:static!important;
    display:block!important;
    box-sizing:border-box!important;
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    max-width:22px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    transform:none!important;
    justify-self:center!important;
    align-self:center!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-icon svg,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-figma-icon svg{
    display:block!important;
    width:100%!important;
    height:100%!important;
    margin:0 auto!important;
  }
  /* Nesta versão compacta não exibimos selo PRO: além de reduzir ruído,
     ele não pode deslocar o centro óptico dos ícones. */
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-pro-badge{
    display:none!important;
    position:absolute!important;
  }
}

/* ==========================================================
   v0.58.15 · RESPONSIVE INTEGRITY MATRIX
   Objetivo: preservar desktop amplo já aprovado e adaptar apenas
   quando a largura REAL do conteúdo exigir. Split-screen e janelas
   reduzidas recebem um estágio intermediário antes do mobile.
========================================================== */

/* ---- Base de contenção: nenhum filho pode alargar a aba inteira. ---- */
body .btp-app .btp-view,
body .btp-app .btp-view > *,
body .btp-app .btp-panel,
body .btp-app .btp-table-panel,
body .btp-app .btp-table-wrap{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body .btp-app .btp-view :is(input,textarea,select,button,.btp-brand-select,.btp-brand-select-trigger){
  max-width:100%!important;
  box-sizing:border-box!important;
}
body .btp-app input[type="checkbox"],
body .btp-app input[type="radio"]{accent-color:#c99532!important}
body .btp-app :is(input,textarea,button,.btp-brand-select-trigger):focus-visible{
  outline:2px solid rgba(201,149,50,.42)!important;
  outline-offset:2px!important;
}

/* ---- Biblioteca: controles próprios da marca; nunca depender do menu cinza
        do sistema operacional. Mantém os IDs nativos ocultos para o JS. ---- */
body .btp-app .btp-library-filter{min-width:0!important;width:100%!important}
body .btp-app .btp-library-filter .btp-brand-select{
  width:100%!important;
  min-width:0!important;
  margin-top:0!important;
  z-index:auto!important;
}
body .btp-app .btp-library-filter .btp-brand-select.is-open{z-index:1300!important}
body .btp-app .btp-library-filter .btp-brand-select-trigger{
  width:100%!important;
  min-height:50px!important;
  height:50px!important;
  padding:0 14px!important;
  border:1px solid #e1e3e6!important;
  border-radius:15px!important;
  background:#fff!important;
  color:#24303e!important;
  font-size:12px!important;
  font-weight:800!important;
}
body .btp-app .btp-library-filter .btp-brand-select-trigger:hover{
  background:#fffdf8!important;
  border-color:#d4b36a!important;
}
body .btp-app .btp-library-filter .btp-brand-select-menu{
  width:100%!important;
  max-width:100%!important;
  max-height:min(320px,46dvh)!important;
  z-index:1301!important;
  border-color:#e7d8b5!important;
  background:#fffdf9!important;
  scrollbar-color:#c99a3c transparent!important;
}
body .btp-app .btp-library-filter .btp-brand-select-menu button{
  color:#253140!important;
  background:transparent!important;
}
body .btp-app .btp-library-filter .btp-brand-select-menu button:hover{
  color:#172334!important;
  background:#fbf3df!important;
}
body .btp-app .btp-library-filter .btp-brand-select-menu button.is-selected{
  color:#172334!important;
  background:#f6e7bd!important;
}

/* ---- Cabeçalhos e filtros: respeitam a largura útil sem criar quebras artificiais. ---- */
body .btp-app .btp-workspace-head > div,
body .btp-app .btp-messages-head > div,
body .btp-app .btp-library-head > div{min-width:0!important}
body .btp-app .btp-workspace-head h2,
body .btp-app .btp-messages-head h2,
body .btp-app .btp-library-head h2{
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
body .btp-app .btp-workspace-head p,
body .btp-app .btp-messages-head p,
body .btp-app .btp-library-head p{
  max-width:78ch!important;
  overflow-wrap:break-word!important;
}

/* ---- Leads/Prospectar: layout amplo original acima de 1100px. ---- */
@container btp-content (min-width:1101px){
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads{
    display:table!important;
    width:100%!important;
    table-layout:fixed!important;
  }
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads thead,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads thead{display:table-header-group!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tbody,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody{
    display:table-row-group!important;
    padding:0!important;
  }
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tbody tr.btp-lead-row,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    display:table-row!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tbody tr.btp-lead-row>td,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td{
    display:table-cell!important;
    padding:14px 12px!important;
    vertical-align:middle!important;
    border-bottom:1px solid #eee9e1!important;
  }
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tbody tr.btp-lead-row>td::before,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td::before{
    display:none!important;
    content:none!important;
  }
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads .btp-select-col{display:table-cell!important}
}

/* ---- Etapa intermediária 760–1100: UM card por lead e três zonas úteis.
        Evita tanto a tabela espremida quanto o card alto com metade vazia. ---- */
@container btp-content (max-width:1100px) and (min-width:760px){
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads thead{display:none!important}
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    width:100%!important;
    padding:10px!important;
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr) minmax(0,.95fr)!important;
    grid-template-areas:
      "company contact site"
      "reviews opportunity opportunity"
      "actions opportunity opportunity"!important;
    align-items:start!important;
    align-content:start!important;
    gap:14px 22px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    padding:18px 20px!important;
    border:1px solid #e7e1d7!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 8px 22px rgba(17,25,36,.04)!important;
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row>td{
    display:block!important;
    min-width:0!important;
    padding:0!important;
    border:0!important;
    text-align:left!important;
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row>td::before{
    display:block!important;
    position:static!important;
    width:auto!important;
    margin:0 0 5px!important;
    content:attr(data-label)!important;
    color:#94681a!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:900!important;
    letter-spacing:.08em!important;
    text-transform:uppercase!important;
  }
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads .btp-select-col{display:none!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(2){grid-area:company!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(3){grid-area:contact!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(4){grid-area:site!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(5){grid-area:reviews!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(6){grid-area:opportunity!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(7){grid-area:actions!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(1){grid-area:company!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(2){grid-area:contact!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(3){grid-area:site!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(4){grid-area:reviews!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(5){grid-area:opportunity!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(6){grid-area:actions!important}
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tr>td[data-label="Oportunidade"]{
    align-self:stretch!important;
    padding-left:20px!important;
    border-left:1px solid #eee7dc!important;
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads .btp-quick-actions{
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-table-wrap{overflow-x:hidden!important}
}

/* ---- 560–759: duas colunas; só o conteúdo naturalmente largo ocupa a linha. ---- */
@container btp-content (max-width:759px) and (min-width:560px){
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads{
    display:block!important;width:100%!important;min-width:0!important
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads thead{display:none!important}
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important;padding:8px!important
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:
      "company contact"
      "site reviews"
      "opportunity opportunity"
      "actions actions"!important;
    gap:13px 18px!important;
    width:100%!important;max-width:none!important;height:auto!important;
    padding:16px!important;
    border:1px solid #e7e1d7!important;border-radius:17px!important;background:#fff!important;
    box-shadow:0 7px 20px rgba(17,25,36,.04)!important
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row>td{
    display:block!important;min-width:0!important;padding:0!important;border:0!important;text-align:left!important
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row>td::before{
    display:block!important;position:static!important;width:auto!important;margin:0 0 5px!important;content:attr(data-label)!important;
    color:#94681a!important;font-size:12px!important;line-height:1.2!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important
  }
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads .btp-select-col{display:none!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(2){grid-area:company!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(3){grid-area:contact!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(4){grid-area:site!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(5){grid-area:reviews!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(6){grid-area:opportunity!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tr>td:nth-child(7){grid-area:actions!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(1){grid-area:company!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(2){grid-area:contact!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(3){grid-area:site!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(4){grid-area:reviews!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(5){grid-area:opportunity!important}
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tr>td:nth-child(6){grid-area:actions!important}
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tr>td[data-label="Oportunidade"]{
    padding-top:12px!important;border-top:1px solid #eee7dc!important
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads .btp-quick-actions{justify-content:flex-start!important;flex-wrap:wrap!important}
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-table-wrap{overflow-x:hidden!important}
}

/* ---- Celular real: uma coluna, sem sacrificar o split-screen maior. ---- */
@container btp-content (max-width:559px){
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody{
    display:grid!important;grid-template-columns:1fr!important;gap:10px!important;padding:7px!important
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important;gap:11px!important;padding:15px!important
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row>td{
    grid-area:auto!important;grid-column:1!important;display:block!important;min-width:0!important;padding:0!important;border:0!important
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row>td[data-label="Oportunidade"]{
    padding-top:11px!important;border-top:1px solid #eee7dc!important;border-left:0!important
  }
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads .btp-select-col{display:none!important}
}

/* Dynamic values can break only when the value itself is longer than the cell. */
body .btp-app .btp-qualified-table :is(.btp-company-cell>strong,.btp-opportunity-cell>strong){
  word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important
}
body .btp-app .btp-qualified-table td small,
body .btp-app .btp-qualified-table td a{
  word-break:normal!important;overflow-wrap:anywhere!important
}

/* ---- Workspace controls: one intermediate state before full stacking. ---- */
@container btp-page (max-width:1040px) and (min-width:760px){
  body .btp-app .btp-workspace-toolbar--refined{
    grid-template-columns:minmax(0,1fr) minmax(190px,.48fr) minmax(190px,.48fr)!important;
    gap:10px!important
  }
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{grid-column:auto!important}
}
@container btp-page (max-width:759px){
  body .btp-app .btp-workspace-toolbar--refined{
    grid-template-columns:minmax(0,1fr)!important;gap:9px!important;padding:10px!important
  }
  body .btp-app .btp-workspace-head{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:start!important
  }
  body .btp-app .btp-workspace-context-action{justify-self:start!important;width:auto!important;max-width:100%!important}
  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
}
@container btp-page (max-width:420px){
  body .btp-app .btp-lead-kpis{grid-template-columns:minmax(0,1fr)!important}
}

/* Empty state stays compact on every width; it should never look like a large
   empty table. */
body .btp-app .btp-qualified-table.is-empty + *{min-width:0!important}
@container btp-page (max-width:759px){
  body .btp-app .btp-empty-state{
    width:100%!important;min-height:118px!important;grid-template-columns:36px minmax(0,1fr)!important;
    gap:12px!important;padding:18px!important;border-radius:16px!important
  }
  body .btp-app .btp-empty-state-icon{width:36px!important;height:36px!important;border-radius:12px!important;font-size:18px!important}
  body .btp-app .btp-empty-state-copy strong{font-size:15px!important}
  body .btp-app .btp-empty-state-copy small{font-size:12px!important;max-width:52ch!important}
  body .btp-app .btp-empty-state-action{grid-column:2!important;justify-self:start!important;width:auto!important}
}
@container btp-page (max-width:440px){
  body .btp-app .btp-empty-state{grid-template-columns:32px minmax(0,1fr)!important;padding:15px!important}
  body .btp-app .btp-empty-state-icon{width:32px!important;height:32px!important}
  body .btp-app .btp-empty-state-action{grid-column:1/-1!important;width:100%!important}
}

/* ---- Mensagens: os filtros e menus ocupam o painel sem cobrir a lista. ---- */
body .btp-app .btp-message-toolbar{isolation:isolate!important}
body .btp-app .btp-message-filter{min-width:0!important}
body .btp-app .btp-message-filter .btp-brand-select-menu{max-width:min(100%,520px)!important}
@container btp-page (max-width:1080px) and (min-width:760px){
  body .btp-app .btp-message-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(190px,.48fr) minmax(190px,.48fr)!important;
    align-items:end!important;gap:10px!important
  }
  body .btp-app .btp-message-search{grid-column:1/-1!important}
  body .btp-app .btp-message-count{grid-column:1/-1!important}
  body .btp-app .btp-message-card.btp-message-list-row,
  body .btp-app .btp-message-list-row{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-areas:"main category channel" "actions actions actions"!important;
    height:auto!important;min-height:108px!important
  }
}
@container btp-page (max-width:759px){
  body .btp-app .btp-message-toolbar{grid-template-columns:minmax(0,1fr)!important;gap:9px!important;padding:10px!important}
  body .btp-app .btp-message-search,
  body .btp-app .btp-message-filter,
  body .btp-app .btp-message-count{grid-column:auto!important;width:100%!important}
  body .btp-app .btp-message-card.btp-message-list-row,
  body .btp-app .btp-message-list-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"main main" "category channel" "actions actions"!important;
    height:auto!important;min-height:0!important
  }
}
@container btp-page (max-width:480px){
  body .btp-app .btp-message-list-row .btp-message-row-actions{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-message-list-row .btp-message-category-cell,
  body .btp-app .btp-message-list-row .btp-message-channel-cell{justify-self:start!important}
}

/* ---- Biblioteca: 4 → 3 → 2 → 1 colunas de controle sem comprimir labels. ---- */
@container btp-page (max-width:1180px) and (min-width:900px){
  body .btp-app .btp-library-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(180px,.42fr) minmax(160px,.36fr)!important;
    gap:10px!important
  }
  body .btp-app .btp-library-count{grid-column:1/-1!important;width:100%!important;justify-self:stretch!important}
}
@container btp-page (max-width:899px) and (min-width:620px){
  body .btp-app .btp-library-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;padding:11px!important
  }
  body .btp-app .btp-library-search{grid-column:1/-1!important}
  body .btp-app .btp-library-count{grid-column:1/-1!important;width:100%!important}
  body .btp-app .btp-library-item{
    grid-template-columns:42px minmax(0,1fr)!important;
    grid-template-areas:"icon copy" "actions actions"!important
  }
  body .btp-app .btp-library-actions{grid-area:actions!important;padding-left:54px!important;justify-content:flex-start!important;max-width:none!important}
}
@container btp-page (max-width:619px){
  body .btp-app .btp-library-toolbar{grid-template-columns:minmax(0,1fr)!important;gap:9px!important;padding:10px!important}
  body .btp-app .btp-library-search,
  body .btp-app .btp-library-filter,
  body .btp-app .btp-library-count{grid-column:auto!important;width:100%!important}
  body .btp-app .btp-library-item{grid-template-columns:40px minmax(0,1fr)!important;grid-template-areas:"icon copy" "actions actions"!important}
  body .btp-app .btp-library-actions{grid-area:actions!important;padding-left:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important}
  body .btp-app .btp-library-actions>*{width:100%!important;max-width:100%!important}
}

/* ---- Acompanhamento e cards de dados: preserva o 2x2 do split-screen e só
        empilha quando realmente não houver largura. ---- */
@container btp-page (max-width:620px){
  body .btp-app .btp-followup-stats{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-pro-preview-notice,
  body .btp-app .btp-plan-notice{
    grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:start!important
  }
  body .btp-app .btp-pro-preview-notice :is(button,a),
  body .btp-app .btp-plan-notice :is(button,a){justify-self:start!important;width:auto!important;max-width:100%!important}
}

/* ---- Rolagem: somente componentes internos rolam, sempre dentro do raio. ---- */
body .btp-app :is(.btp-message-list-shell,.btp-library-shell,.btp-table-panel){overflow:hidden!important}
body .btp-app :is(.btp-brand-select-menu,.btp-message-list,.btp-library-list,.btp-table-wrap){
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(181,130,31,.62) transparent!important
}
body .btp-app :is(.btp-brand-select-menu,.btp-message-list,.btp-library-list,.btp-table-wrap)::-webkit-scrollbar{width:8px!important;height:8px!important}
body .btp-app :is(.btp-brand-select-menu,.btp-message-list,.btp-library-list,.btp-table-wrap)::-webkit-scrollbar-track{background:transparent!important;margin:8px!important}
body .btp-app :is(.btp-brand-select-menu,.btp-message-list,.btp-library-list,.btp-table-wrap)::-webkit-scrollbar-thumb{
  border:2px solid transparent!important;border-radius:999px!important;background:rgba(181,130,31,.58)!important;background-clip:padding-box!important
}

/* ==========================================================
   v0.58.20 — Responsive Quality System / WhatsApp Library
   This is the final responsive contract. It follows the same principles as
   the ByThomas Landing System: preserve approved wide layouts, reflow by the
   REAL content width, never mask broken text with clipping, and keep natural
   heights on compact screens.
========================================================== */

/* ---------- Core containment: every view must own its available width. ---------- */
body .btp-app .btp-main,
body .btp-app .btp-content,
body .btp-app .btp-view,
body .btp-app .btp-view>*,
body .btp-app :is(.btp-panel,.btp-card,.btp-table-panel,.btp-message-toolbar,.btp-message-safe-note,.btp-message-list-shell,.btp-library-shell,.btp-plan-card,.btp-account-card,.btp-settings-card,.btp-support-card){
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body .btp-app :is(.btp-section-head,.btp-workspace-head,.btp-dashboard-head,.btp-page-head)>div,
body .btp-app :is(.btp-message-main,.btp-message-list-copy,.btp-company-cell,.btp-opportunity-cell,.btp-site-cell,.btp-workspace-control){
  min-width:0!important;
}
body .btp-app :is(input,select,textarea,.btp-brand-select,.btp-brand-select-trigger,.btp-brand-select-menu){
  max-width:100%!important;
  box-sizing:border-box!important;
}
body .btp-app :is(h1,h2,h3,h4,.btp-company-cell>strong,.btp-message-title-line h3,.btp-library-copy strong){
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
body .btp-app :is(a[href^="mailto:"],.btp-profile-email,.btp-account-email,.btp-field-sources){overflow-wrap:anywhere!important}

/* ---------- Sidebar: the ellipsis entry exists only when navigation becomes mobile. ---------- */
@media (min-width:721px){
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle{display:none!important}
  body .btp-app .btp-sidebar .btp-nav-more{display:contents!important}
}
@media (max-width:720px){
  body .btp-app .btp-sidebar nav.btp-nav>.btp-mobile-more-toggle{display:flex!important}
}

/* ---------- Section headings: use the full line before intentionally stacking. ---------- */
body .btp-app :is(.btp-section-head,.btp-workspace-head){
  min-width:0!important;
  column-gap:20px!important;
}
body .btp-app :is(.btp-section-head,.btp-workspace-head) p{
  max-width:78ch!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
@container btp-page (max-width:760px){
  body .btp-app :is(.btp-section-head,.btp-workspace-head){
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    gap:12px!important;
  }
  body .btp-app :is(.btp-section-head,.btp-workspace-head)>.btp-workspace-context-action,
  body .btp-app :is(.btp-section-head,.btp-workspace-head)>button{
    justify-self:start!important;
    width:auto!important;
    max-width:100%!important;
  }
}

/* ========================================================================
   MESSAGES — desktop first, then intentional compact compositions.
   Dropdowns must float above the list instead of being clipped by siblings.
========================================================================= */
body .btp-app .btp-message-toolbar{
  position:relative!important;
  z-index:30!important;
  isolation:auto!important;
  overflow:visible!important;
  display:grid!important;
  grid-template-columns:minmax(300px,1fr) minmax(180px,220px) minmax(200px,240px) minmax(148px,max-content)!important;
  align-items:end!important;
  gap:12px!important;
}
body .btp-app .btp-message-toolbar:has(.btp-brand-select.is-open){z-index:300!important}
body .btp-app .btp-message-toolbar .btp-brand-select{position:relative!important;z-index:2!important}
body .btp-app .btp-message-toolbar .btp-brand-select.is-open{z-index:500!important}
body .btp-app .btp-message-toolbar .btp-brand-select-menu{
  z-index:510!important;
  max-height:min(360px,52vh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-shadow:0 18px 36px rgba(17,25,36,.16)!important;
}
body .btp-app .btp-message-safe-note{position:relative!important;z-index:10!important}
body .btp-app .btp-message-list-shell{position:relative!important;z-index:1!important;overflow:hidden!important}

/* Wide desktop: actions get enough real width; labels never need ellipsis. */
body .btp-app .btp-message-list-head,
body .btp-app .btp-message-card.btp-message-list-row{
  grid-template-columns:minmax(0,1.55fr) minmax(132px,160px) minmax(88px,105px) minmax(270px,320px)!important;
  column-gap:12px!important;
}
body .btp-app .btp-message-row-actions{
  min-width:0!important;
  overflow:visible!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(92px,.78fr)!important;
  gap:8px!important;
  align-items:center!important;
}
body .btp-app .btp-message-row-actions :is(button,a){
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body .btp-app .btp-message-row-actions button>span:last-child{
  min-width:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
@media (max-width:430px){
  body .btp-app .btp-message-row-actions .btp-personalize-message>span:last-child::after{
    content:"Abrir"!important;
    font-size:12px!important;
  }
}
body .btp-app .btp-message-title-line{min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}
body .btp-app .btp-message-title-line h3{min-width:0!important;margin:0!important}
body .btp-app .btp-message-preview{min-width:0!important;max-width:100%!important}

@container btp-page (max-width:1180px){
  body .btp-app .btp-message-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(150px,max-content)!important;
  }
  body .btp-app .btp-message-search{grid-column:1/-1!important}
  body .btp-app .btp-message-list-head{display:none!important}
  body .btp-app .btp-message-card.btp-message-list-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-areas:
      "main category channel"
      "main actions actions"!important;
    gap:8px 12px!important;
    align-items:center!important;
    padding:14px 15px!important;
  }
  body .btp-app .btp-message-list-row .btp-message-main{grid-area:main!important}
  body .btp-app .btp-message-list-row .btp-message-category-cell{grid-area:category!important;justify-self:end!important}
  body .btp-app .btp-message-list-row .btp-message-channel-cell{grid-area:channel!important;justify-self:end!important}
  body .btp-app .btp-message-list-row .btp-message-row-actions{
    grid-area:actions!important;
    justify-self:end!important;
    width:min(320px,100%)!important;
  }
}
@container btp-page (max-width:820px){
  body .btp-app .btp-message-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
  }
  body .btp-app .btp-message-count{grid-column:1/-1!important;justify-self:stretch!important;text-align:center!important}
  body .btp-app .btp-message-card.btp-message-list-row{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "main main"
      "category channel"
      "actions actions"!important;
    gap:10px 12px!important;
  }
  body .btp-app .btp-message-list-row .btp-message-category-cell{justify-self:start!important}
  body .btp-app .btp-message-list-row .btp-message-channel-cell{justify-self:end!important}
  body .btp-app .btp-message-list-row .btp-message-row-actions{justify-self:stretch!important;width:100%!important}
}
@container btp-page (max-width:560px){
  body .btp-app .btp-message-toolbar{grid-template-columns:minmax(0,1fr)!important;padding:10px!important}
  body .btp-app .btp-message-search,
  body .btp-app .btp-message-count{grid-column:1!important}
  body .btp-app .btp-message-card.btp-message-list-row{padding:13px!important}
  body .btp-app .btp-message-row-actions{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-message-title-line{align-items:flex-start!important}
}

/* ========================================================================
   LEADS / PROSPECTAR — wide table stays untouched. Only when the content
   area itself can no longer hold the columns does it become a semantic card.
========================================================================= */
body .btp-app .btp-lead-select-label{display:none!important}
@container btp-content (max-width:1080px){
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads{
    display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads thead{display:none!important}
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    padding:12px!important;
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    position:relative!important;
    display:grid!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:auto!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:
      "company contact"
      "site reviews"
      "opportunity opportunity"
      "actions actions"!important;
    gap:14px 22px!important;
    padding:18px!important;
    border:1px solid #e7e1d7!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 7px 20px rgba(17,25,36,.04)!important;
    box-sizing:border-box!important;
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row>td{
    display:block!important;
    min-width:0!important;
    width:auto!important;
    padding:0!important;
    border:0!important;
    text-align:left!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row>td::before{
    display:block!important;
    position:static!important;
    width:auto!important;
    margin:0 0 5px!important;
    content:attr(data-label)!important;
    color:#94681a!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:900!important;
    letter-spacing:.08em!important;
    text-transform:uppercase!important;
  }
  body .btp-app .btp-qualified-table.has-leads .btp-col-company{grid-area:company!important}
  body .btp-app .btp-qualified-table.has-leads .btp-col-contact{grid-area:contact!important}
  body .btp-app .btp-qualified-table.has-leads .btp-col-site{grid-area:site!important}
  body .btp-app .btp-qualified-table.has-leads .btp-col-reviews{grid-area:reviews!important}
  body .btp-app .btp-qualified-table.has-leads .btp-col-opportunity{
    grid-area:opportunity!important;
    padding-top:13px!important;
    border-top:1px solid #eee7dc!important;
  }
  body .btp-app .btp-qualified-table.has-leads .btp-col-actions{
    grid-area:actions!important;
    padding-top:2px!important;
  }
  body .btp-app .btp-qualified-table.has-leads .btp-quick-actions{justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important}
  body .btp-app .btp-table-wrap{overflow-x:hidden!important}

  /* Selection becomes a compact checkbox in the top-left corner of a manage
     card. The help bar already explains the action, so repeating the word
     Selecionar inside every card only steals width and creates awkward wraps. */
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tbody tr.btp-lead-row>.btp-col-select{
    display:block!important;
    position:absolute!important;
    z-index:8!important;
    top:14px!important;
    left:14px!important;
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
  }
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads .btp-col-select::before{display:none!important;content:none!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads .btp-col-company{padding-left:42px!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads .btp-lead-check{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0!important
  }
}
@container btp-content (max-width:620px){
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody{padding:8px!important;gap:10px!important}
  body .btp-app :is(.btp-lead-mode-manage,.btp-lead-mode-discovery) .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"company" "contact" "site" "reviews" "opportunity" "actions"!important;
    gap:12px!important;
    padding:16px!important;
  }
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads tbody tr.btp-lead-row>.btp-col-select{top:13px!important;left:13px!important}
  body .btp-app .btp-lead-mode-manage .btp-qualified-table.has-leads .btp-col-company{padding-left:40px!important}
}

/* Toolbar and KPI reflow use real workspace width instead of monitor width. */
@container btp-content (max-width:900px){
  body .btp-app .btp-workspace-toolbar--refined{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
  }
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{grid-column:1/-1!important}
  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@container btp-content (max-width:620px){
  body .btp-app .btp-workspace-toolbar--refined{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{grid-column:1!important}
  body .btp-app .btp-lead-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
}
@container btp-content (max-width:390px){
  body .btp-app .btp-lead-kpis{grid-template-columns:minmax(0,1fr)!important}
}

/* ---------- Empty states: centered composition with safe panel gutters. ---------- */
body .btp-app .btp-qualified-table.is-empty{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  table-layout:auto!important;
}
body .btp-app .btp-qualified-table.is-empty thead{display:none!important}
body .btp-app .btp-qualified-table.is-empty tbody,
body .btp-app .btp-qualified-table.is-empty .btp-empty-row,
body .btp-app .btp-qualified-table.is-empty .btp-empty-row>.btp-empty{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body .btp-app .btp-qualified-table.is-empty tbody{padding:0!important}
body .btp-app .btp-qualified-table.is-empty .btp-empty-row>.btp-empty{
  padding:clamp(20px,3vw,34px)!important;
  border:0!important;
}
body .btp-app .btp-qualified-table.is-empty .btp-empty-row>.btp-empty::before{display:none!important;content:none!important}
body .btp-app .btp-qualified-table.is-empty .btp-empty-state{
  width:min(700px,100%)!important;
  max-width:700px!important;
  min-height:150px!important;
  margin:0 auto!important;
  padding:26px clamp(22px,4vw,36px)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:12px!important;
  text-align:center!important;
  border:1px solid #eadfca!important;
  border-radius:20px!important;
  background:#fffdf8!important;
  box-sizing:border-box!important;
}
body .btp-app .btp-qualified-table.is-empty .btp-empty-state-icon{
  display:block!important;
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  padding:9px!important;
  box-sizing:border-box!important;
  border:1px solid #ead9b4!important;
  border-radius:14px!important;
  background:#fff7e6!important;
  color:#a97518!important;
}
body .btp-app .btp-qualified-table.is-empty .btp-empty-state-icon :is(path,circle,line,polyline,rect){stroke:currentColor!important}
body .btp-app .btp-qualified-table.is-empty .btp-empty-state-copy{
  min-width:0!important;
  width:min(100%,560px)!important;
  max-width:560px!important;
  text-align:center!important;
}
body .btp-app .btp-qualified-table.is-empty .btp-empty-state-copy strong{
  display:block!important;
  margin:0 0 5px!important;
  font-size:clamp(15px,1.2vw,17px)!important;
  line-height:1.25!important;
}
body .btp-app .btp-qualified-table.is-empty .btp-empty-state-copy small{
  display:block!important;
  margin:0 auto!important;
  max-width:58ch!important;
  font-size:12.5px!important;
  line-height:1.5!important;
}
body .btp-app .btp-qualified-table.is-empty .btp-empty-state-action{
  width:auto!important;
  max-width:100%!important;
  margin:1px 0 0!important;
  justify-content:center!important;
}
@container btp-page (max-width:600px){
  body .btp-app .btp-qualified-table.is-empty .btp-empty-row>.btp-empty{padding:14px 10px 18px!important}
  body .btp-app .btp-qualified-table.is-empty .btp-empty-state{min-height:0!important;padding:22px 18px!important;border-radius:17px!important}
}

/* ---------- Settings service grid: preserve 5 columns when they fit; reflow
   only as the configuration panel genuinely loses width. ---------- */
@container btp-page (max-width:1180px){
  body .btp-app .btp-service-picker{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@container btp-page (max-width:820px){
  body .btp-app .btp-service-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@container btp-page (max-width:520px){
  body .btp-app .btp-service-picker{grid-template-columns:minmax(0,1fr)!important}
}
body .btp-app .btp-service-option{min-width:0!important}
body .btp-app .btp-service-option>*{min-width:0!important}

/* ---------- Natural compact-page spacing across the remaining views. ---------- */
@container btp-page (max-width:980px){
  body .btp-app :is(.btp-form-grid,.btp-profile-grid,.btp-support-form-grid,.btp-plan-grid,.btp-results-grid){
    min-width:0!important;
  }
  body .btp-app :is(.btp-prompt-toolbar,.btp-support-toolbar,.btp-results-toolbar){max-width:100%!important}
  body .btp-app :is(.btp-pro-preview-notice,.btp-plan-notice,.btp-intelligence-queue-note){min-width:0!important;max-width:100%!important}
}
@container btp-page (max-width:680px){
  body .btp-app :is(.btp-pro-preview-notice,.btp-plan-notice){
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    align-items:start!important;
  }
  body .btp-app :is(.btp-pro-preview-notice,.btp-plan-notice) :is(button,a){justify-self:start!important;width:auto!important;max-width:100%!important}
}

/* ---------- Scrollbars remain inside components and in Prospect colors. ---------- */
body .btp-app :is(.btp-brand-select-menu,.btp-message-list,.btp-library-list,.btp-table-wrap){
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(181,130,31,.62) transparent!important;
}
body .btp-app :is(.btp-brand-select-menu,.btp-message-list,.btp-library-list,.btp-table-wrap)::-webkit-scrollbar{width:8px!important;height:8px!important}
body .btp-app :is(.btp-brand-select-menu,.btp-message-list,.btp-library-list,.btp-table-wrap)::-webkit-scrollbar-track{background:transparent!important;margin:8px!important}
body .btp-app :is(.btp-brand-select-menu,.btp-message-list,.btp-library-list,.btp-table-wrap)::-webkit-scrollbar-thumb{
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:rgba(181,130,31,.58)!important;
  background-clip:padding-box!important;
}


/* ==========================================================
   v0.58.22 — MESSAGES FILTER & ACTION UI POLISH
   Escopo intencionalmente limitado à Biblioteca de Mensagens.
   Mantém o layout aprovado das demais telas e melhora somente
   dropdowns/filtros e ações de cada mensagem.
========================================================== */
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-trigger{
  min-height:50px!important;
  height:50px!important;
  padding:0 15px!important;
  border:1px solid #ddd9d0!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fffdf9 100%)!important;
  color:#1b2838!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 7px 18px -18px rgba(17,25,36,.42)!important;
  transition:background .24s ease,border-color .24s ease,box-shadow .24s ease,transform .24s ease!important;
}
@media (hover:hover) and (pointer:fine){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-trigger:hover{
    background:#fffaf0!important;
    border-color:#d6b66f!important;
    box-shadow:inset 0 1px 0 #fff,0 10px 22px -18px rgba(126,87,20,.34)!important;
  }
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select.is-open .btp-brand-select-trigger,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-trigger:focus-visible{
  border-color:#c99532!important;
  outline:0!important;
  box-shadow:0 0 0 4px rgba(214,163,75,.13),inset 0 1px 0 #fff!important;
}

/* Dropdown: opções precisam parecer itens separados, não uma única faixa colada. */
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-menu{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  padding:9px!important;
  border:1px solid #e7dcc6!important;
  border-radius:17px!important;
  background:#fffdf9!important;
  box-shadow:0 22px 48px rgba(17,25,36,.16),0 2px 8px rgba(17,25,36,.05)!important;
  scrollbar-gutter:stable!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-menu[hidden]{display:none!important}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-menu button{
  width:100%!important;
  min-height:42px!important;
  margin:0!important;
  padding:10px 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  background:transparent!important;
  color:#687483!important;
  font-size:12.5px!important;
  font-weight:650!important;
  line-height:1.32!important;
  text-align:left!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  transition:background .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease!important;
}
@media (hover:hover) and (pointer:fine){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-menu button:hover{
    background:#fff6e2!important;
    border-color:#f0dfba!important;
    color:#1a2737!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.88)!important;
  }
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-menu button:focus-visible{
  outline:0!important;
  background:#fff6e2!important;
  border-color:#d5ad59!important;
  box-shadow:0 0 0 3px rgba(214,163,75,.13)!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-menu button.is-selected,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-menu button[aria-selected="true"]{
  background:linear-gradient(180deg,#fff2c9 0%,#f8e5b2 100%)!important;
  border-color:#ead49f!important;
  color:#172333!important;
  font-weight:800!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-menu button.is-selected::after,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-menu button[aria-selected="true"]::after{
  margin-left:auto!important;
  color:#9c6d16!important;
}

/* Ações: seguir o padrão premium da plataforma e usar o botão inteiro como superfície. */
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions{
  display:grid!important;
  grid-template-columns:minmax(136px,1.15fr) minmax(104px,.85fr)!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  overflow:visible!important;
  align-items:center!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions :is(.btp-personalize-message,.btp-view-message,.btp-copy-message){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:42px!important;
  height:42px!important;
  margin:0!important;
  padding:0 13px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-radius:12px!important;
  font-size:12.5px!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:-.01em!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  box-sizing:border-box!important;
  transform:none!important;
  filter:none!important;
  transition:transform .24s ease,background .24s ease,border-color .24s ease,box-shadow .24s ease!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions :is(.btp-personalize-message,.btp-view-message){
  background:linear-gradient(180deg,#ffffff 0%,#fbf8f1 100%)!important;
  color:#253244!important;
  border:1px solid #e4d9c6!important;
  box-shadow:inset 0 1px 0 #fff,0 8px 18px -18px rgba(17,25,36,.48)!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions .btp-copy-message{
  background:linear-gradient(180deg,#f2cf7d 0%,#dfa841 100%)!important;
  background-color:#dfa841!important;
  color:#17130d!important;
  border:1px solid rgba(158,108,16,.22)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 10px 20px -14px rgba(177,121,21,.52)!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions .btp-action-figma-icon{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  flex:0 0 16px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  object-fit:contain!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions button>span:last-child{
  display:inline!important;
  min-width:0!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  font-size:12.5px!important;
  line-height:1!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions button>span:last-child::after{content:none!important;display:none!important}

@media (hover:hover) and (pointer:fine){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions :is(.btp-personalize-message,.btp-view-message):hover{
    transform:translateY(-2px)!important;
    background:#fffaf0!important;
    border-color:#d8bd83!important;
    box-shadow:inset 0 1px 0 #fff,0 12px 22px -16px rgba(92,67,25,.28)!important;
  }
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions .btp-copy-message:hover{
    transform:translateY(-2px)!important;
    background:linear-gradient(180deg,#f6d98f 0%,#e2aa40 100%)!important;
    border-color:rgba(151,101,14,.32)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.64),0 14px 24px -15px rgba(177,121,21,.62)!important;
  }
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions :is(.btp-personalize-message,.btp-view-message,.btp-copy-message):focus-visible{
  outline:0!important;
  box-shadow:0 0 0 4px rgba(214,163,75,.15),inset 0 1px 0 rgba(255,255,255,.6)!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions :is(.btp-personalize-message,.btp-view-message,.btp-copy-message):active{
  transform:translateY(0)!important;
}

/* Reflow baseado na área real do componente: duas ações só empilham quando
   a largura não comporta os rótulos confortavelmente. */
@container btp-page (max-width:560px){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
}
@container btp-page (max-width:410px){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions :is(.btp-personalize-message,.btp-view-message,.btp-copy-message){
    min-height:44px!important;
    height:44px!important;
  }
}
@media (prefers-reduced-motion:reduce){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-trigger,
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-filter .btp-brand-select-menu button,
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions :is(.btp-personalize-message,.btp-view-message,.btp-copy-message){
    transition:none!important;
  }
}

/* ==========================================================
   v0.58.23 — Prospect empty-state desktop centering
   Keep tablet/mobile behavior untouched. On desktop and reduced
   desktop widths, center the discovery empty-state inside the
   complete results panel instead of anchoring it to the left.
========================================================== */
@container btp-content (min-width: 721px){
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.is-empty,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.is-empty tbody,
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.is-empty .btp-empty-row{
    width:100%!important;
    max-width:none!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.is-empty .btp-empty-row>.btp-empty{
    display:flex!important;
    width:100%!important;
    justify-content:center!important;
    align-items:center!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-qualified-table.is-empty .btp-empty-state{
    margin-inline:auto!important;
  }
}


/* ==========================================================
   v0.58.24 — Discovery empty-state structural centering
   ----------------------------------------------------------
   The previous fix centered the card inside the table cell, but on some
   desktop table layouts the table itself kept an intrinsic left-aligned
   width. Center the TABLE as a flex item of the full results track instead.
   This makes the visual center independent from table column calculations.
========================================================== */
body .btp-app .btp-lead-mode-discovery .btp-table-wrap--empty-discovery{
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:clamp(22px,2.6vw,38px) clamp(18px,3.5vw,46px)!important;
  overflow:hidden!important;
  scrollbar-gutter:auto!important;
}
body .btp-app .btp-lead-mode-discovery .btp-table-wrap--empty-discovery>.btp-qualified-table.is-empty{
  display:block!important;
  flex:0 1 700px!important;
  width:min(700px,100%)!important;
  min-width:0!important;
  max-width:700px!important;
  margin:0!important;
  table-layout:auto!important;
}
body .btp-app .btp-lead-mode-discovery .btp-table-wrap--empty-discovery>.btp-qualified-table.is-empty>tbody,
body .btp-app .btp-lead-mode-discovery .btp-table-wrap--empty-discovery>.btp-qualified-table.is-empty>tbody>.btp-empty-row,
body .btp-app .btp-lead-mode-discovery .btp-table-wrap--empty-discovery>.btp-qualified-table.is-empty>tbody>.btp-empty-row>.btp-empty{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
body .btp-app .btp-lead-mode-discovery .btp-table-wrap--empty-discovery .btp-empty-state{
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  align-items:center!important;
  justify-content:center!important;
}
@container btp-content (max-width:600px){
  body .btp-app .btp-lead-mode-discovery .btp-table-wrap--empty-discovery{
    padding:14px 10px 18px!important;
  }
  body .btp-app .btp-lead-mode-discovery .btp-table-wrap--empty-discovery>.btp-qualified-table.is-empty{
    flex-basis:100%!important;
    width:100%!important;
    max-width:100%!important;
  }
}


/* ==========================================================
   v0.58.25 — LEADS + SEARCH HISTORY RESPONSIVE INTEGRITY
   ----------------------------------------------------------
   Scope is intentionally limited to Leads and search history.
   Wide desktop layouts remain unchanged; reduced desktop/split
   windows recompose by the REAL content width.
========================================================== */

/* ---------- Leads: selection never competes visually with Empresa. ---------- */
body .btp-app .btp-view[data-view="leads"] .btp-lead-select-label{display:none!important}

@container btp-content (max-width:1080px){
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    position:relative!important;
    overflow:hidden!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads tbody tr.btp-lead-row>.btp-col-select{
    display:flex!important;
    position:absolute!important;
    z-index:8!important;
    top:14px!important;
    left:14px!important;
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0!important;
    margin:0!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads tbody tr.btp-lead-row>.btp-col-select::before{
    display:none!important;
    content:none!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-company{
    padding-left:48px!important;
    min-height:36px!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-company::before{
    margin-bottom:5px!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-company-cell,
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-company-cell>*{
    min-width:0!important;
    max-width:100%!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-company-cell strong{
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-actions .btp-quick-actions{
    display:flex!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    justify-content:flex-start!important;
    align-items:center!important;
    align-content:flex-start!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads tbody tr.btp-lead-row.is-selected{
    background:#fff9ec!important;
    border-color:#e3c57f!important;
    box-shadow:0 7px 20px rgba(17,25,36,.04),inset 3px 0 0 #d39b32!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads tbody tr.btp-lead-row.is-selected>td{
    background:transparent!important;
    box-shadow:none!important;
  }
}

/* Reduced desktop / split-screen: use BOTH halves of the card.
   Empresa/Contato, Site/Avaliações and Oportunidade/Ações each share a row. */
@container btp-content (min-width:621px) and (max-width:1080px){
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    grid-template-columns:minmax(0,1.15fr) minmax(230px,.85fr)!important;
    grid-template-areas:
      "company contact"
      "site reviews"
      "opportunity actions"!important;
    gap:14px 24px!important;
    padding:18px 20px!important;
    align-items:start!important;
    align-content:start!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-company{grid-area:company!important}
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-contact{grid-area:contact!important}
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-site{grid-area:site!important}
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-reviews{grid-area:reviews!important}
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-opportunity{grid-area:opportunity!important}
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-actions{grid-area:actions!important}
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-opportunity,
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-actions{
    padding-top:13px!important;
    border-top:1px solid #eee7dc!important;
  }
}

/* Narrow content: one clean column. */
@container btp-content (max-width:620px){
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"company" "contact" "site" "reviews" "opportunity" "actions"!important;
    gap:12px!important;
    padding:16px!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads tbody tr.btp-lead-row>.btp-col-select{
    top:12px!important;
    left:12px!important;
  }
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-company{padding-left:44px!important}
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-opportunity,
  body .btp-app .btp-view[data-view="leads"] .btp-qualified-table.has-leads .btp-col-actions{
    padding-top:11px!important;
    border-top:1px solid #eee7dc!important;
  }
}

/* ---------- Search history: use horizontal space before stacking. ---------- */
body .btp-app .btp-view[data-view="historico"] .btp-history-copy{min-width:0!important}

/* Real wide content keeps the premium three-zone desktop layout. */
@container btp-content (min-width:1081px){
  body .btp-app .btp-view[data-view="historico"] .btp-history-list article.btp-history-item{
    grid-template-columns:minmax(280px,1.15fr) minmax(300px,.9fr) auto!important;
    grid-template-areas:"main metrics actions"!important;
    align-items:center!important;
    gap:18px!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-main{grid-area:main!important;width:auto!important;max-width:100%!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-metrics{grid-area:metrics!important;width:auto!important;max-width:none!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-actions{grid-area:actions!important;width:auto!important;max-width:none!important;justify-content:flex-end!important}
}

/* Reduced desktop / split window: summary left, KPIs right, actions below. */
@container btp-content (min-width:700px) and (max-width:1080px){
  body .btp-app .btp-view[data-view="historico"] .btp-history-list article.btp-history-item{
    display:grid!important;
    grid-template-columns:minmax(0,1.15fr) minmax(270px,.85fr)!important;
    grid-template-areas:"main metrics" "actions actions"!important;
    align-items:center!important;
    gap:14px 18px!important;
    padding:18px!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-main{
    grid-area:main!important;
    width:100%!important;
    max-width:none!important;
    align-items:center!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    column-gap:9px!important;
    row-gap:6px!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>strong{
    flex:0 0 100%!important;
    width:100%!important;
    font-size:16px!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>small,
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>.btp-history-service,
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>time{
    display:inline-flex!important;
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
    flex:0 1 auto!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>small{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-service{margin-top:0!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>time{white-space:nowrap!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-metrics{
    grid-area:metrics!important;
    width:100%!important;
    max-width:none!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-metric{min-height:66px!important;padding:10px!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-actions{
    grid-area:actions!important;
    width:100%!important;
    max-width:none!important;
    justify-content:flex-start!important;
    align-self:auto!important;
  }
}

/* Smaller workspace: compact metadata, KPIs kept in a row while useful. */
@container btp-content (max-width:699px){
  body .btp-app .btp-view[data-view="historico"] .btp-history-list article.btp-history-item{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"main" "metrics" "actions"!important;
    gap:12px!important;
    padding:15px!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-main,
  body .btp-app .btp-view[data-view="historico"] .btp-history-metrics,
  body .btp-app .btp-view[data-view="historico"] .btp-history-actions{
    grid-column:1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:none!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    column-gap:8px!important;
    row-gap:5px!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>strong{flex:0 0 100%!important;width:100%!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>small,
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>.btp-history-service,
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>time{
    display:inline-flex!important;
    width:auto!important;
    margin:0!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-service{margin-top:0!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-metrics{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-actions .btp-ghost{
    width:100%!important;
    min-width:0!important;
  }
}
@container btp-content (max-width:430px){
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>small,
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>time{flex:0 0 100%!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-actions{grid-template-columns:minmax(0,1fr)!important}
}

/* =========================================================
   v0.58.26 — Prospect workspace contrast + decision hero stability
========================================================= */
body .btp-app .btp-prospect-results .btp-lead-mode-discovery{
  background:linear-gradient(180deg,rgba(255,255,255,.985) 0%,rgba(252,248,241,.985) 100%)!important;
  border:1px solid #e8dcc9!important;
  box-shadow:0 18px 38px rgba(20,31,48,.08)!important;
}
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-workspace-head,
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-lead-kpis,
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-workspace-toolbar,
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-bulkbar{
  position:relative;
  z-index:1;
}
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-table-wrap{
  background:linear-gradient(180deg,#fffdf9 0%,#fbf6eb 100%)!important;
  border-top:1px solid #eee3d2!important;
}
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-qualified-table,
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-qualified-table thead,
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-qualified-table tbody,
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-qualified-table tr,
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-qualified-table td{
  background:transparent!important;
}
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-qualified-table thead th{
  background:rgba(255,250,242,.92)!important;
}
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-qualified-table tbody tr{
  border-bottom:1px solid rgba(232,223,207,.86)!important;
}
@media (hover:hover){
  body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-qualified-table tbody tr:hover{
    background:rgba(255,249,237,.85)!important;
  }
}
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-table-wrap,
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-table-wrap::-webkit-scrollbar-track{
  background-color:#f4ebdb!important;
}
body .btp-app .btp-prospect-results .btp-lead-mode-discovery .btp-workspace-empty{
  background:linear-gradient(180deg,#fffdf8 0%,#fbf5e9 100%)!important;
  border-color:#e4d7c1!important;
}

/* Mantém o bloco de prioridade legível em notebooks e telas reduzidas. */
body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar{
  flex-wrap:wrap!important;
  align-items:flex-start!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero{
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:12px!important;
  width:min(100%,348px)!important;
  max-width:348px!important;
  min-width:0!important;
  min-height:68px!important;
  padding:10px 12px!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero>span{
  grid-column:1!important;
  grid-row:1!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero>div{
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero div>small{
  white-space:nowrap!important;
  font-size:12px!important;
  line-height:1.2!important;
  letter-spacing:.09em!important;
}
body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero strong{
  max-width:none!important;
  white-space:nowrap!important;
  font-size:15px!important;
  line-height:1.2!important;
}
@media (max-width:680px){
  body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero{
    width:100%!important;
    max-width:none!important;
  }
  body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero div>small,
  body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar .btp-lead-score-hero strong{
    white-space:normal!important;
  }
}

/* =========================================================
   v0.58.27 — Browser-consistent compact desktop
   Mantém a marca visível em Chrome/Edge com pouca altura útil e
   padroniza o Histórico pela largura REAL do conteúdo.
========================================================= */

/* A logo não deve desaparecer só porque o navegador perdeu altura útil
   (barra lateral, favoritos, zoom, taskbar ou split-screen). Em desktop
   compacto usamos apenas o símbolo; no mobile real continua oculto. */
@media (min-width:721px) and (max-width:1320px){
  body .btp-app .btp-sidebar .btp-brand-wrap{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    width:64px!important;
    min-height:50px!important;
    margin:0 auto 10px!important;
    padding:0!important;
  }
  body .btp-app .btp-sidebar .btp-brand--sidebar{
    display:block!important;
    width:52px!important;
    max-width:52px!important;
    margin:0 auto!important;
  }
  body .btp-app .btp-sidebar .btp-brand--sidebar .btp-brand-image{display:none!important}
  body .btp-app .btp-sidebar .btp-brand--sidebar .btp-brand-mark{
    display:block!important;
    width:46px!important;
    height:50px!important;
    max-width:46px!important;
    object-fit:contain!important;
    margin:0 auto!important;
    filter:drop-shadow(0 8px 16px rgba(214,163,75,.14))!important;
  }
  body .btp-app .btp-sidebar .btp-brand-tag{display:none!important}
}

/* Em janelas baixas, comprime a marca e os botões em vez de remover a marca. */
@media (min-width:721px) and (max-width:1320px) and (max-height:760px){
  body .btp-app .btp-sidebar{
    padding-top:7px!important;
    padding-bottom:7px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:none!important;
  }
  body .btp-app .btp-sidebar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
  body .btp-app .btp-sidebar .btp-brand-wrap{
    display:flex!important;
    width:46px!important;
    min-height:38px!important;
    margin-bottom:4px!important;
  }
  body .btp-app .btp-sidebar .btp-brand--sidebar{display:block!important;width:40px!important;max-width:40px!important}
  body .btp-app .btp-sidebar .btp-brand--sidebar .btp-brand-mark{
    display:block!important;
    width:36px!important;
    height:39px!important;
    max-width:36px!important;
  }
  body .btp-app .btp-sidebar .btp-brand-tag,
  body .btp-app .btp-sidebar .btp-sidebar-foot{display:none!important}
  body .btp-app .btp-sidebar nav.btp-nav{gap:2px!important}
  body .btp-app .btp-sidebar nav.btp-nav button{min-height:34px!important;padding:5px!important;border-radius:12px!important}
}

/* HISTÓRICO — entre tablet largo, notebook e split-screen, usa a mesma
   composição aprovada: identificação em cima, 3 métricas na linha seguinte
   e ações alinhadas abaixo. A troca depende do container, não do navegador. */
@container btp-content (min-width:621px) and (max-width:1080px){
  body .btp-app .btp-view[data-view="historico"] .btp-history-list article.btp-history-item{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"main" "metrics" "actions"!important;
    align-items:start!important;
    gap:12px!important;
    padding:16px!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-main{
    grid-area:main!important;
    width:100%!important;
    max-width:none!important;
    align-items:center!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    column-gap:8px!important;
    row-gap:5px!important;
    min-width:0!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>strong{
    flex:0 0 100%!important;
    width:100%!important;
    min-width:0!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>small,
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>.btp-history-service,
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>time{
    display:inline-flex!important;
    flex:0 1 auto!important;
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-service{margin-top:0!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-copy>time{white-space:nowrap!important}
  body .btp-app .btp-view[data-view="historico"] .btp-history-metrics{
    grid-area:metrics!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    max-width:none!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-metric{
    min-width:0!important;
    min-height:62px!important;
    padding:9px 10px!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-actions{
    grid-area:actions!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    max-width:none!important;
    justify-content:stretch!important;
  }
  body .btp-app .btp-view[data-view="historico"] .btp-history-actions .btp-ghost{
    width:100%!important;
    min-width:0!important;
    justify-content:center!important;
  }
}

/* =========================================================
   v0.58.28 — Plan entitlement sync + current feature catalog
========================================================= */
body .btp-app .btp-plan-overview-usage .btp-usage-meter,
body .btp-app .btp-dashboard-consumption .btp-usage-meter{
  min-width:0!important;
}
body .btp-app .btp-plan-overview-usage .btp-usage-meter>div,
body .btp-app .btp-dashboard-consumption .btp-usage-meter>div{
  min-width:0!important;
}
body .btp-app .btp-plan-overview-usage .btp-usage-meter span,
body .btp-app .btp-dashboard-consumption .btp-usage-meter span{
  min-width:0!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body .btp-app .btp-plan-overview-usage .btp-usage-meter strong,
body .btp-app .btp-dashboard-consumption .btp-usage-meter strong{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}
body .btp-app .btp-plan-feature-list{
  margin:4px 0 2px!important;
  gap:9px!important;
}
body .btp-app .btp-plan-feature-list li{
  min-width:0!important;
  padding-left:23px!important;
  line-height:1.48!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-wrap:pretty!important;
}
body .btp-app .btp-plan-option>div>p{
  max-width:62ch!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-wrap:pretty!important;
}

/* A página Plano reage à largura real do conteúdo, inclusive em split-screen
   e navegadores com sidebars/painéis, sem depender apenas da viewport. */
@container btp-content (max-width:1080px){
  body .btp-app .btp-plan-overview{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body .btp-app .btp-plan-overview-copy,
  body .btp-app .btp-plan-overview-usage{
    min-width:0!important;
  }
  body .btp-app .btp-plan-overview-copy p{
    max-width:70ch!important;
  }
}
@container btp-content (max-width:920px){
  body .btp-app .btp-plan-comparison-v2{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body .btp-app .btp-plan-option{
    min-width:0!important;
  }
}
@container btp-content (max-width:620px){
  body .btp-app .btp-plan-overview-copy,
  body .btp-app .btp-plan-overview-usage{
    padding:20px 18px!important;
  }
  body .btp-app .btp-plan-option{
    padding:20px 18px!important;
    border-radius:22px!important;
  }
  body .btp-app .btp-plan-option.is-pro{
    padding-top:56px!important;
  }
  body .btp-app .btp-plan-option h3{
    font-size:25px!important;
    line-height:1.12!important;
  }
  body .btp-app .btp-plan-feature-list li{
    font-size:13px!important;
    line-height:1.45!important;
  }
}

/* =========================================================
   v0.58.30 — Biblioteca Prospect · capas visuais e preview seguro
========================================================= */
body .btp-app .btp-library-item.has-cover{
  grid-template-columns:112px minmax(0,1fr) minmax(210px,auto)!important;
  grid-template-areas:"cover copy actions"!important;
  align-items:center!important;
  min-height:140px!important;
  padding:14px 16px!important;
  gap:14px!important;
}
body .btp-app .btp-library-item.has-cover .btp-library-cover{
  grid-area:cover!important;
}
body .btp-app .btp-library-item.has-cover .btp-library-meta{
  grid-area:copy!important;
}
body .btp-app .btp-library-item.has-cover .btp-library-actions{
  grid-area:actions!important;
}
body .btp-app .btp-library-cover{
  position:relative!important;
  display:block!important;
  width:112px!important;
  height:112px!important;
  min-width:112px!important;
  min-height:112px!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #e7d9bd!important;
  border-radius:18px!important;
  background:#f7f1e5!important;
  box-shadow:0 10px 24px rgba(19,29,42,.07)!important;
  cursor:pointer!important;
  appearance:none!important;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important;
}
body .btp-app .btp-library-cover-frame{
  display:block!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,#f6efe1,#fffaf2)!important;
}
body .btp-app .btp-library-cover-frame img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  transition:transform .24s ease,filter .24s ease!important;
}
body .btp-app .btp-library-cover::after{
  content:"";
  position:absolute!important;
  inset:0!important;
  pointer-events:none!important;
  background:linear-gradient(180deg,rgba(8,17,29,0) 44%,rgba(8,17,29,.56) 100%)!important;
}
body .btp-app .btp-library-cover.is-protected::after{
  background:linear-gradient(180deg,rgba(14,24,38,.08) 10%,rgba(14,24,38,.72) 100%)!important;
}
body .btp-app .btp-library-cover.is-protected .btp-library-cover-frame img{
  filter:saturate(.88) contrast(.96)!important;
}
body .btp-app .btp-library-cover-zoom,
body .btp-app .btp-library-cover-lock{
  position:absolute!important;
  left:9px!important;
  right:9px!important;
  bottom:8px!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-height:28px!important;
  padding:5px 8px!important;
  border:1px solid rgba(255,255,255,.24)!important;
  border-radius:999px!important;
  background:rgba(13,24,38,.84)!important;
  color:#fff!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:.02em!important;
  white-space:nowrap!important;
  backdrop-filter:blur(8px)!important;
}
body .btp-app .btp-library-cover-lock{
  color:#f3cb72!important;
  border-color:rgba(229,184,82,.36)!important;
}
body .btp-app .btp-library-cover-zoom svg,
body .btp-app .btp-library-cover-zoom .dashicons,
body .btp-app .btp-library-cover-lock .dashicons{
  width:13px!important;
  height:13px!important;
  min-width:13px!important;
  font-size:13px!important;
  line-height:13px!important;
}
@media (hover:hover){
  body .btp-app .btp-library-cover:hover{
    transform:translateY(-2px)!important;
    border-color:#d8b86f!important;
    box-shadow:0 14px 28px rgba(128,89,18,.13)!important;
  }
  body .btp-app .btp-library-cover:hover .btp-library-cover-frame img{transform:scale(1.035)!important}
}
body .btp-app .btp-library-cover:focus-visible{
  outline:0!important;
  box-shadow:0 0 0 4px rgba(210,159,58,.16),0 14px 28px rgba(128,89,18,.12)!important;
  border-color:#c99532!important;
}
body .btp-app .btp-library-item.has-cover .btp-library-meta h3{
  font-size:15px!important;
  line-height:1.28!important;
  text-wrap:pretty!important;
}
body .btp-app .btp-library-item.has-cover .btp-library-meta p{
  -webkit-line-clamp:3!important;
  font-size:12px!important;
  line-height:1.45!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
}

/* Preview ampliado: somente materiais liberados recebem URL de imagem grande no HTML. */
body .btp-app .btp-library-image-preview{
  position:fixed!important;
  inset:0!important;
  z-index:100140!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:30px!important;
  background:rgba(7,14,23,.76)!important;
  backdrop-filter:blur(10px)!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .18s ease,visibility .18s ease!important;
}
body .btp-app .btp-library-image-preview.is-open{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
body .btp-app .btp-library-image-preview-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:min(1080px,94vw)!important;
  max-height:min(90dvh,920px)!important;
  overflow:hidden!important;
  border:1px solid rgba(228,205,157,.72)!important;
  border-radius:28px!important;
  background:#fffdf9!important;
  box-shadow:0 34px 100px rgba(4,10,18,.34)!important;
}
body .btp-app .btp-library-image-preview-media{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:0!important;
  max-height:72dvh!important;
  padding:18px!important;
  overflow:auto!important;
  background:linear-gradient(145deg,#0d1724,#172638)!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(224,174,70,.62) transparent!important;
}
body .btp-app .btp-library-image-preview-media img{
  display:block!important;
  max-width:100%!important;
  max-height:calc(72dvh - 36px)!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain!important;
  border-radius:16px!important;
  box-shadow:0 18px 48px rgba(0,0,0,.26)!important;
}
body .btp-app .btp-library-image-preview-copy{
  min-width:0!important;
  padding:18px 72px 20px 22px!important;
  border-top:1px solid #eee3d2!important;
  background:#fffdf9!important;
}
body .btp-app .btp-library-image-preview-copy>span{
  display:block!important;
  color:#9e6c13!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
}
body .btp-app .btp-library-image-preview-copy h3{
  margin:6px 0 4px!important;
  color:#14202f!important;
  font-size:21px!important;
  line-height:1.22!important;
  font-weight:700!important;
  text-wrap:pretty!important;
}
body .btp-app .btp-library-image-preview-copy p{
  max-width:82ch!important;
  margin:0!important;
  color:#7d8997!important;
  font-size:12.5px!important;
  line-height:1.5!important;
}
body .btp-app .btp-library-image-preview-close{
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  z-index:5!important;
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  height:44px!important;
  padding:0!important;
  border:1px solid rgba(219,175,78,.4)!important;
  border-radius:50%!important;
  background:#101b29!important;
  color:#edc66e!important;
  font-size:20px!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:0 10px 28px rgba(7,15,24,.18)!important;
}

/* A largura REAL da aba decide a recomposição, não a largura total do monitor. */
@container btp-page (max-width:980px){
  body .btp-app .btp-library-item.has-cover{
    grid-template-columns:96px minmax(0,1fr)!important;
    grid-template-areas:"cover copy" "actions actions"!important;
    align-items:start!important;
    min-height:0!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-cover{
    width:96px!important;height:96px!important;min-width:96px!important;min-height:96px!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-actions{
    padding-left:110px!important;
    padding-top:10px!important;
    border-top:1px solid #f0ece4!important;
    justify-content:flex-start!important;
    max-width:none!important;
  }
}
@container btp-page (max-width:680px){
  body .btp-app .btp-library-item.has-cover{
    grid-template-columns:84px minmax(0,1fr)!important;
    gap:11px!important;
    padding:12px!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-cover{
    width:84px!important;height:84px!important;min-width:84px!important;min-height:84px!important;border-radius:15px!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-actions{
    padding-left:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-actions>*{width:100%!important;max-width:100%!important}
  body .btp-app .btp-library-cover-zoom span{display:none!important}
  body .btp-app .btp-library-cover-zoom,
  body .btp-app .btp-library-cover-lock{left:6px!important;right:6px!important;bottom:6px!important;min-height:25px!important;font-size:12px!important}
  body .btp-app .btp-library-image-preview{padding:14px!important}
  body .btp-app .btp-library-image-preview-card{width:100%!important;max-height:calc(100dvh - 28px)!important;border-radius:22px!important}
  body .btp-app .btp-library-image-preview-media{max-height:70dvh!important;padding:12px!important}
  body .btp-app .btp-library-image-preview-media img{max-height:calc(70dvh - 24px)!important;border-radius:12px!important}
  body .btp-app .btp-library-image-preview-copy{padding:16px 58px 17px 16px!important}
  body .btp-app .btp-library-image-preview-copy h3{font-size:18px!important}
  body .btp-app .btp-library-image-preview-close{top:11px!important;right:11px!important;width:40px!important;height:40px!important}
}
@container btp-page (max-width:390px){
  body .btp-app .btp-library-item.has-cover{
    grid-template-columns:76px minmax(0,1fr)!important;
    gap:10px!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-cover{
    width:76px!important;height:76px!important;min-width:76px!important;min-height:76px!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-meta p{-webkit-line-clamp:2!important;font-size:12px!important}
}
body .btp-app .btp-library-cover-lock svg{width:13px!important;height:13px!important;min-width:13px!important}
body .btp-app .btp-library-image-preview-close svg{width:18px!important;height:18px!important;display:block!important}

/* =========================================================
   v0.58.31 — Biblioteca Prospect · preview accessibility polish
   Ícones: Close Circle + Full Screen do arquivo Figma "Criação de ÍCONES".
========================================================= */
body .btp-app .btp-library-cover-zoom{
  min-height:30px!important;
  padding:6px 9px!important;
  border-color:rgba(208,159,63,.62)!important;
  background:rgba(255,249,236,.96)!important;
  color:#14202f!important;
  box-shadow:0 6px 18px rgba(5,13,23,.16)!important;
  backdrop-filter:blur(9px)!important;
}
body .btp-app .btp-library-cover-zoom .btp-action-figma-icon{
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  opacity:1!important;
  filter:none!important;
}
@media (hover:hover){
  body .btp-app .btp-library-cover:hover .btp-library-cover-zoom{
    background:#fff7e4!important;
    border-color:#c99532!important;
    box-shadow:0 8px 22px rgba(107,75,16,.2)!important;
  }
}

body .btp-app .btp-library-image-preview-card{
  width:min(1120px,94vw)!important;
  max-height:min(92dvh,960px)!important;
}
body .btp-app .btp-library-image-preview-media{
  max-height:69dvh!important;
  padding:20px!important;
}
body .btp-app .btp-library-image-preview-media img{
  max-height:calc(69dvh - 40px)!important;
}
body .btp-app .btp-library-image-preview-copy{
  padding:22px 78px 24px 24px!important;
}
body .btp-app .btp-library-image-preview-copy>span{
  font-size:12px!important;
  line-height:1.25!important;
  letter-spacing:.14em!important;
}
body .btp-app .btp-library-image-preview-copy h3{
  max-width:44ch!important;
  margin:7px 0 7px!important;
  font-size:clamp(21px,1.55vw,25px)!important;
  line-height:1.22!important;
  text-wrap:balance!important;
}
body .btp-app .btp-library-image-preview-copy p{
  max-width:96ch!important;
  margin:0!important;
  color:#667585!important;
  font-size:15.5px!important;
  line-height:1.62!important;
  font-weight:450!important;
  text-wrap:pretty!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body .btp-app .btp-library-image-preview-close{
  top:18px!important;
  right:18px!important;
  width:48px!important;
  height:48px!important;
  border:1px solid rgba(191,139,40,.58)!important;
  background:linear-gradient(145deg,#fffaf0,#f4d787)!important;
  color:#14202f!important;
  box-shadow:0 10px 28px rgba(6,14,24,.22),inset 0 1px 0 rgba(255,255,255,.88)!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
body .btp-app .btp-library-image-preview-close .btp-action-figma-icon{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  opacity:1!important;
  filter:none!important;
}
@media (hover:hover){
  body .btp-app .btp-library-image-preview-close:hover{
    transform:translateY(-2px)!important;
    border-color:#b57d19!important;
    background:linear-gradient(145deg,#fffdf8,#efc962)!important;
    box-shadow:0 14px 32px rgba(6,14,24,.28),inset 0 1px 0 rgba(255,255,255,.92)!important;
  }
}
body .btp-app .btp-library-image-preview-close:focus-visible{
  outline:0!important;
  box-shadow:0 0 0 4px rgba(216,167,72,.24),0 12px 30px rgba(6,14,24,.24)!important;
}

/* Aba útil menor: mantém leitura confortável sem roubar espaço da imagem. */
@container btp-page (max-width:980px){
  body .btp-app .btp-library-image-preview{padding:20px!important}
  body .btp-app .btp-library-image-preview-card{
    width:100%!important;
    max-height:calc(100dvh - 40px)!important;
    border-radius:24px!important;
  }
  body .btp-app .btp-library-image-preview-media{
    max-height:66dvh!important;
    padding:16px!important;
  }
  body .btp-app .btp-library-image-preview-media img{
    max-height:calc(66dvh - 32px)!important;
  }
  body .btp-app .btp-library-image-preview-copy{
    padding:20px 72px 22px 20px!important;
  }
  body .btp-app .btp-library-image-preview-copy p{
    font-size:14.5px!important;
    line-height:1.58!important;
  }
}
@container btp-page (max-width:680px){
  body .btp-app .btp-library-image-preview{padding:10px!important}
  body .btp-app .btp-library-image-preview-card{
    max-height:calc(100dvh - 20px)!important;
    border-radius:20px!important;
  }
  body .btp-app .btp-library-image-preview-media{
    max-height:60dvh!important;
    padding:10px!important;
  }
  body .btp-app .btp-library-image-preview-media img{
    max-height:calc(60dvh - 20px)!important;
    border-radius:11px!important;
  }
  body .btp-app .btp-library-image-preview-copy{
    padding:17px 18px 19px!important;
  }
  body .btp-app .btp-library-image-preview-copy>span{font-size:12px!important}
  body .btp-app .btp-library-image-preview-copy h3{
    max-width:100%!important;
    margin:6px 50px 6px 0!important;
    font-size:19px!important;
    line-height:1.26!important;
    text-wrap:pretty!important;
  }
  body .btp-app .btp-library-image-preview-copy p{
    font-size:14px!important;
    line-height:1.56!important;
  }
  body .btp-app .btp-library-image-preview-close{
    top:10px!important;
    right:10px!important;
    width:42px!important;
    height:42px!important;
  }
  body .btp-app .btp-library-image-preview-close .btp-action-figma-icon{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
  }
  body .btp-app .btp-library-cover-zoom{
    min-height:27px!important;
    padding:5px 7px!important;
  }
}
@container btp-page (max-width:430px){
  body .btp-app .btp-library-image-preview-media{max-height:54dvh!important}
  body .btp-app .btp-library-image-preview-media img{max-height:calc(54dvh - 20px)!important}
  body .btp-app .btp-library-image-preview-copy h3{
    margin-right:46px!important;
    font-size:18px!important;
  }
  body .btp-app .btp-library-image-preview-copy p{
    font-size:14px!important;
    line-height:1.55!important;
  }
}


/* =========================================================
   v0.58.32 — Biblioteca Prospect · preview fidelity + card polish
   Mantém miniaturas leves no índice e carrega uma versão 1536/2048 apenas
   quando o usuário autorizado abre a prévia ampliada.
========================================================= */
body .btp-app .btp-library-item.has-cover{
  grid-template-columns:136px minmax(0,1fr) minmax(160px,auto)!important;
  min-height:164px!important;
  gap:16px!important;
  padding:14px 16px!important;
}
body .btp-app .btp-library-item.has-cover .btp-library-cover{
  width:136px!important;
  height:136px!important;
  min-width:136px!important;
  min-height:136px!important;
  border-radius:19px!important;
}
body .btp-app .btp-library-item.has-cover .btp-library-meta h3{
  max-width:none!important;
  margin-top:7px!important;
  font-size:15px!important;
  line-height:1.28!important;
  white-space:normal!important;
  text-wrap:wrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body .btp-app .btp-library-item.has-cover .btp-library-meta p{
  max-width:104ch!important;
  font-size:12px!important;
  line-height:1.46!important;
}

/* O lock do SVG do Figma é navy. Em fundo escuro ele praticamente sumia. */
body .btp-app .btp-library-cover-lock{
  left:10px!important;
  right:10px!important;
  bottom:9px!important;
  min-width:0!important;
  min-height:31px!important;
  padding:6px 9px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  border:1px solid rgba(215,164,65,.72)!important;
  background:rgba(255,247,226,.97)!important;
  color:#14202f!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  box-shadow:0 7px 20px rgba(4,12,22,.22)!important;
  backdrop-filter:blur(10px)!important;
}
body .btp-app .btp-library-cover-lock .btp-action-figma-icon{
  display:block!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  flex:0 0 14px!important;
  opacity:1!important;
  filter:none!important;
}
body .btp-app .btp-library-cover-lock>span{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* A área da imagem vira full-bleed: a própria imagem define a altura e não
   fica "flutuando" dentro de uma moldura azul com padding. */
body .btp-app .btp-library-image-preview-card{
  width:min(1200px,94vw)!important;
  max-height:92dvh!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(190,138,39,.46) transparent!important;
}
body .btp-app .btp-library-image-preview-card::-webkit-scrollbar{width:8px!important}
body .btp-app .btp-library-image-preview-card::-webkit-scrollbar-thumb{background:rgba(190,138,39,.42)!important;border:2px solid transparent!important;background-clip:padding-box!important;border-radius:999px!important}
body .btp-app .btp-library-image-preview-media{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-height:none!important;
  padding:0!important;
  overflow:hidden!important;
  background:#0d1724!important;
}
body .btp-app .btp-library-image-preview-media::before{
  content:"";
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  pointer-events:none!important;
  opacity:0!important;
  background:linear-gradient(90deg,rgba(255,255,255,.02),rgba(235,188,86,.12),rgba(255,255,255,.02))!important;
  transform:translateX(-100%)!important;
}
body .btp-app .btp-library-image-preview-media.is-loading::before{
  opacity:1!important;
  animation:btp-library-preview-shimmer 1.15s linear infinite!important;
}
@keyframes btp-library-preview-shimmer{to{transform:translateX(100%)}}
body .btp-app .btp-library-image-preview-media img{
  position:relative!important;
  z-index:1!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:100%!important;
  max-height:none!important;
  margin:0!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
  box-shadow:none!important;
  image-rendering:auto!important;
}
body .btp-app .btp-library-image-preview-copy{
  padding:22px 26px 25px!important;
}
body .btp-app .btp-library-image-preview-copy h3{
  width:auto!important;
  max-width:none!important;
  margin:7px 0 7px!important;
  padding-right:0!important;
  font-size:clamp(21px,1.35vw,25px)!important;
  line-height:1.18!important;
  white-space:normal!important;
  text-wrap:wrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
body .btp-app .btp-library-image-preview-copy p{
  max-width:108ch!important;
  font-size:15.5px!important;
  line-height:1.6!important;
}

@container btp-page (max-width:980px){
  body .btp-app .btp-library-item.has-cover{
    grid-template-columns:108px minmax(0,1fr)!important;
    grid-template-areas:"cover copy" "actions actions"!important;
    gap:13px!important;
    min-height:0!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-cover{
    width:108px!important;height:108px!important;min-width:108px!important;min-height:108px!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-actions{
    padding-left:121px!important;
  }
  body .btp-app .btp-library-cover-lock{
    left:7px!important;right:7px!important;bottom:7px!important;min-height:28px!important;padding:5px 7px!important;font-size:12px!important;
  }
  body .btp-app .btp-library-cover-lock .btp-action-figma-icon{width:13px!important;height:13px!important;min-width:13px!important;flex-basis:13px!important}
  body .btp-app .btp-library-image-preview-card{width:100%!important;max-height:calc(100dvh - 40px)!important}
  body .btp-app .btp-library-image-preview-copy{padding:20px 22px 22px!important}
  body .btp-app .btp-library-image-preview-copy h3{font-size:21px!important}
  body .btp-app .btp-library-image-preview-copy p{font-size:14.5px!important;line-height:1.58!important}
}
@container btp-page (max-width:680px){
  body .btp-app .btp-library-item.has-cover{
    grid-template-columns:96px minmax(0,1fr)!important;
    gap:12px!important;
    padding:12px!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-cover{
    width:96px!important;height:96px!important;min-width:96px!important;min-height:96px!important;border-radius:16px!important;
  }
  body .btp-app .btp-library-item.has-cover .btp-library-actions{padding-left:0!important}
  body .btp-app .btp-library-cover-lock{left:6px!important;right:6px!important;bottom:6px!important;font-size:12px!important}
  body .btp-app .btp-library-image-preview{padding:10px!important}
  body .btp-app .btp-library-image-preview-card{max-height:calc(100dvh - 20px)!important;border-radius:20px!important}
  body .btp-app .btp-library-image-preview-media img{
    width:100%!important;
    height:auto!important;
    max-height:58dvh!important;
    object-fit:contain!important;
  }
  body .btp-app .btp-library-image-preview-copy{padding:17px 18px 20px!important}
  body .btp-app .btp-library-image-preview-copy h3{
    margin-right:0!important;
    padding-right:44px!important;
    font-size:19px!important;
    line-height:1.24!important;
  }
  body .btp-app .btp-library-image-preview-copy p{font-size:14px!important;line-height:1.55!important}
}
@container btp-page (max-width:430px){
  body .btp-app .btp-library-item.has-cover{grid-template-columns:90px minmax(0,1fr)!important;gap:10px!important}
  body .btp-app .btp-library-item.has-cover .btp-library-cover{width:90px!important;height:90px!important;min-width:90px!important;min-height:90px!important}
  body .btp-app .btp-library-cover-lock{font-size:12px!important;padding:5px 6px!important;gap:4px!important}
  body .btp-app .btp-library-image-preview-media img{max-height:52dvh!important}
  body .btp-app .btp-library-image-preview-copy h3{font-size:18px!important}
}

/* ==========================================================
   v0.58.37 — Unified filter system + Biblioteca responsive polish
   Visual-only filter hardening. The hidden native selects remain the source
   of truth, so existing change listeners and filtering logic are preserved.
========================================================== */

/* Biblioteca: remove artificial text-width constraints that produced a lonely
   final word on desktop. Keep the heading compact and let real content width
   decide when the description wraps. */
body .btp-app .btp-view[data-view="biblioteca"] .btp-library-head{
  margin-top:0!important;
  margin-bottom:12px!important;
  align-items:flex-start!important;
}
body .btp-app .btp-view[data-view="biblioteca"] .btp-library-head>div{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body .btp-app .btp-view[data-view="biblioteca"] .btp-library-head p{
  width:100%!important;
  max-width:none!important;
  margin-top:0!important;
  text-wrap:pretty!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
@container btp-page (min-width:940px){
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-head p{
    white-space:nowrap!important;
  }
}
@container btp-page (max-width:939px){
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-head p{
    white-space:normal!important;
    max-width:76ch!important;
  }
}
@container btp-page (max-width:620px){
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-head{
    margin-bottom:10px!important;
  }
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-head p{
    max-width:100%!important;
    text-wrap:balance!important;
  }
}

/* The four filter surfaces below share one interaction language. */
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select.is-open{
  z-index:1600!important;
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-trigger{
  width:100%!important;
  min-width:0!important;
  min-height:50px!important;
  height:50px!important;
  padding:0 15px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  border:1px solid #ddd9d0!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#fff 0%,#fffdf9 100%)!important;
  color:#1b2838!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96),0 7px 18px -18px rgba(17,25,36,.42)!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1.25!important;
  text-align:left!important;
  overflow:hidden!important;
  transition:background .22s ease,border-color .22s ease,box-shadow .22s ease,transform .22s ease!important;
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-trigger [data-btp-brand-select-label]{
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  word-break:normal!important;
}
@media (hover:hover) and (pointer:fine){
  body .btp-app :is(
    .btp-message-filter,
    .btp-library-filter,
    .btp-workspace-control,
    .btp-prompt-filter
  ) .btp-brand-select-trigger:hover{
    background:#fffaf0!important;
    border-color:#d6b66f!important;
    color:#172333!important;
    box-shadow:inset 0 1px 0 #fff,0 10px 22px -18px rgba(126,87,20,.34)!important;
  }
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select.is-open .btp-brand-select-trigger,
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-trigger:focus-visible{
  border-color:#c99532!important;
  outline:0!important;
  background:#fffdf8!important;
  box-shadow:0 0 0 4px rgba(214,163,75,.13),inset 0 1px 0 #fff!important;
}

/* Each option is a separate card-like row, matching the approved Messages
   dropdown instead of looking like one continuous block. */
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-menu{
  top:calc(100% + 7px)!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:100%!important;
  max-height:min(340px,48dvh)!important;
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  padding:9px!important;
  border:1px solid #e7dcc6!important;
  border-radius:17px!important;
  background:#fffdf9!important;
  box-shadow:0 22px 48px rgba(17,25,36,.16),0 2px 8px rgba(17,25,36,.05)!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;
  scrollbar-color:#c99a3c transparent!important;
  z-index:1610!important;
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-menu[hidden]{
  display:none!important;
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-menu button{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:42px!important;
  height:auto!important;
  margin:0!important;
  padding:10px 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  background:transparent!important;
  background-color:transparent!important;
  color:#687483!important;
  font-size:12.5px!important;
  font-weight:650!important;
  line-height:1.32!important;
  text-align:left!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  overflow:hidden!important;
  box-shadow:none!important;
  transition:background .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease!important;
}
@media (hover:hover) and (pointer:fine){
  body .btp-app :is(
    .btp-message-filter,
    .btp-library-filter,
    .btp-workspace-control,
    .btp-prompt-filter
  ) .btp-brand-select-menu button:hover{
    background:#fff6e2!important;
    background-color:#fff6e2!important;
    border-color:#f0dfba!important;
    color:#1a2737!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.88)!important;
  }
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-menu button:focus-visible{
  outline:0!important;
  background:#fff6e2!important;
  background-color:#fff6e2!important;
  border-color:#d5ad59!important;
  color:#172333!important;
  box-shadow:0 0 0 3px rgba(214,163,75,.13)!important;
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-menu button:is(.is-selected,[aria-selected="true"]){
  background:linear-gradient(180deg,#fff2c9 0%,#f8e5b2 100%)!important;
  background-color:#f8e5b2!important;
  border-color:#ead49f!important;
  color:#172333!important;
  font-weight:800!important;
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-menu button:is(.is-selected,[aria-selected="true"])::after{
  content:"✓"!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
  color:#9c6d16!important;
  font-weight:900!important;
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-menu::-webkit-scrollbar{width:8px!important}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-menu::-webkit-scrollbar-track{background:transparent!important;margin-block:7px!important}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-workspace-control,
  .btp-prompt-filter
) .btp-brand-select-menu::-webkit-scrollbar-thumb{
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:#c99a3c!important;
  background-clip:padding-box!important;
}

/* Prompt toolbar now uses the branded selector too. The native select remains
   hidden inside the component and still owns #btp-prompt-category-filter. */
body .btp-app .btp-prompt-filter .btp-brand-select{
  margin:0!important;
}
body .btp-app .btp-prompt-filter .btp-brand-select-native{
  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;
}

/* Toolbars reflow using real content width, including split-screen and browser
   side panels. Wide layouts stay compact; smaller surfaces stop compressing
   labels before they overflow. */
@container btp-page (max-width:1080px) and (min-width:760px){
  body .btp-app .btp-library-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(180px,.52fr) minmax(180px,.52fr)!important;
    gap:10px!important;
  }
  body .btp-app .btp-library-search{grid-column:1/-1!important}
  body .btp-app .btp-library-count{grid-column:1/-1!important;width:100%!important;justify-self:stretch!important}
  body .btp-app .btp-prompt-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(220px,.55fr)!important;
    gap:10px!important;
  }
  body .btp-app .btp-prompt-search{grid-column:1/-1!important}
  body .btp-app .btp-prompt-count{grid-column:1/-1!important;width:100%!important;justify-self:stretch!important}
}
@container btp-page (max-width:759px){
  body .btp-app :is(.btp-library-toolbar,.btp-prompt-toolbar,.btp-workspace-toolbar--refined){
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
  }
  body .btp-app :is(
    .btp-library-search,.btp-library-filter,.btp-library-count,
    .btp-prompt-search,.btp-prompt-filter,.btp-prompt-count,
    .btp-workspace-search,.btp-workspace-control
  ){
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
  }
}

/* Phone/tablet dropdowns become a safe bottom sheet above the app navigation,
   preventing long menus from escaping the viewport or being clipped by cards. */
@media (max-width:720px){
  body .btp-app :is(
    .btp-message-filter,
    .btp-library-filter,
    .btp-workspace-control,
    .btp-prompt-filter
  ) .btp-brand-select-menu{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    top:auto!important;
    bottom:calc(82px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-width:none!important;
    max-height:min(52dvh,390px)!important;
    padding:10px!important;
    border-radius:18px!important;
    z-index:2147482000!important;
  }
  body .btp-app :is(
    .btp-message-filter,
    .btp-library-filter,
    .btp-workspace-control,
    .btp-prompt-filter
  ) .btp-brand-select-menu button{
    min-height:44px!important;
    padding:11px 12px!important;
    font-size:13px!important;
  }
}

@media (prefers-reduced-motion:reduce){
  body .btp-app :is(
    .btp-message-filter,
    .btp-library-filter,
    .btp-workspace-control,
    .btp-prompt-filter
  ) :is(.btp-brand-select-trigger,.btp-brand-select-menu button){transition:none!important}
}

/* ==========================================================
   v0.58.38 — Full filter audit / reduced-window hardening
   One responsive contract for every filtering surface. Menus are positioned
   by app.js against the real viewport, so split-screen/browser sidebars no
   longer make absolute dropdowns overflow or get clipped.
========================================================== */

/* Universal branded-select safety. app.js provides the final viewport geometry
   with inline !important values while a menu is open. */
body .btp-app .btp-brand-select{
  min-width:0!important;
  max-width:100%!important;
}
body .btp-app .btp-brand-select-trigger{
  min-width:0!important;
  max-width:100%!important;
  -webkit-tap-highlight-color:transparent!important;
  touch-action:manipulation!important;
}
body .btp-app .btp-brand-select-trigger [data-btp-brand-select-label]{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body .btp-app .btp-brand-select-menu{
  position:fixed!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  z-index:2147482000!important;
}
body .btp-app .btp-brand-select-menu.is-viewport-sheet{
  border-radius:20px!important;
  padding:10px!important;
  box-shadow:0 24px 70px rgba(6,14,24,.28),0 0 0 1px rgba(214,163,75,.08)!important;
}
body .btp-app .btp-brand-select-menu button{
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  -webkit-tap-highlight-color:transparent!important;
}
body .btp-app .btp-brand-select-menu button:hover,
body .btp-app .btp-brand-select-menu button:focus,
body .btp-app .btp-brand-select-menu button:focus-visible{
  background-color:#fff6e2!important;
  color:#172333!important;
}
body .btp-app .btp-brand-select-menu button:is(.is-selected,[aria-selected="true"]){
  background:linear-gradient(180deg,#fff1c8 0%,#f6e1aa 100%)!important;
  color:#172333!important;
  border-color:#e7cf97!important;
}

/* Toolbars that own floating menus must never clip them. */
body .btp-app :is(
  .btp-message-toolbar,
  .btp-library-toolbar,
  .btp-prompt-toolbar,
  .btp-workspace-toolbar--refined,
  .btp-search-panel,
  .btp-search-core,
  .btp-search-filters,
  .btp-support-history-filters
){
  min-width:0!important;
  max-width:100%!important;
  overflow:visible!important;
}
body .btp-app :is(
  .btp-message-filter,
  .btp-library-filter,
  .btp-prompt-filter,
  .btp-workspace-control,
  .btp-search-core>label,
  .btp-search-filter-grid>label,
  .btp-support-filter-select
){
  min-width:0!important;
  max-width:100%!important;
}

/* Prospectar: every select used as a search/qualification filter now reuses
   the same custom selector as Mensagens. */
body .btp-app :is(.btp-search-core,.btp-search-filter-grid) .btp-brand-select{
  margin-top:0!important;
  width:100%!important;
}
body .btp-app :is(.btp-search-core,.btp-search-filter-grid) .btp-brand-select-trigger{
  width:100%!important;
  height:52px!important;
  min-height:52px!important;
  border-radius:16px!important;
  padding:0 14px!important;
  background:#fff!important;
  border-color:#dcdfe3!important;
  font-size:13px!important;
  font-weight:700!important;
}
body .btp-app :is(.btp-search-core,.btp-search-filter-grid) .btp-brand-select.is-open .btp-brand-select-trigger,
body .btp-app :is(.btp-search-core,.btp-search-filter-grid) .btp-brand-select-trigger:focus-visible{
  border-color:#c99532!important;
  box-shadow:0 0 0 4px rgba(214,163,75,.11)!important;
}

/* Support history filters use the same control instead of OS-native selects. */
body .btp-app .btp-support-history-filters .btp-support-filter-select .btp-brand-select{
  margin-top:0!important;
}
body .btp-app .btp-support-history-filters .btp-support-filter-select .btp-brand-select-trigger{
  width:100%!important;
  min-height:43px!important;
  height:43px!important;
  padding:0 12px!important;
  border:1px solid #dde1e5!important;
  border-radius:12px!important;
  background:#fff!important;
  font-size:12px!important;
  font-weight:700!important;
}

/* Intermediate widths: do not jump from desktop directly to a giant one-column
   filter stack. Search occupies one row; paired controls stay side by side. */
@container btp-page (max-width:980px) and (min-width:541px){
  body .btp-app .btp-library-toolbar,
  body .btp-app .btp-message-toolbar{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    padding:11px!important;
  }
  body .btp-app .btp-library-search,
  body .btp-app .btp-message-search{
    grid-column:1/-1!important;
  }
  body .btp-app .btp-library-filter,
  body .btp-app .btp-message-filter{
    grid-column:auto!important;
    width:100%!important;
  }
  body .btp-app .btp-library-count,
  body .btp-app .btp-message-count{
    grid-column:1/-1!important;
    width:100%!important;
    justify-self:stretch!important;
  }

  body .btp-app .btp-prompt-toolbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,.62fr)!important;
    gap:10px!important;
    padding:11px!important;
  }
  body .btp-app .btp-prompt-search{grid-column:1/-1!important}
  body .btp-app .btp-prompt-filter,
  body .btp-app .btp-prompt-count{grid-column:auto!important;width:100%!important}

  body .btp-app .btp-workspace-toolbar--refined{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    margin-inline:0!important;
    padding:11px!important;
  }
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-search{
    grid-column:1/-1!important;
    width:100%!important;
  }
  body .btp-app .btp-workspace-toolbar--refined .btp-workspace-control{
    grid-column:auto!important;
    width:100%!important;
  }

  body .btp-app .btp-search-core{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body .btp-app .btp-search-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body .btp-app .btp-search-filter-grid>label:last-child{grid-column:1/-1!important}

  body .btp-app .btp-support-history-filters{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body .btp-app .btp-support-history-search{grid-column:1/-1!important}
  body .btp-app .btp-support-history-filter-actions{grid-column:1/-1!important;justify-content:flex-end!important}

  body .btp-app .btp-followup-filterbar{
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
  }
  body .btp-app .btp-followup-filterchips{
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    max-width:100%!important;
    padding-bottom:3px!important;
    scrollbar-width:none!important;
  }
  body .btp-app .btp-followup-filterchips::-webkit-scrollbar{display:none!important}
  body .btp-app .btp-followup-filterchips button{flex:0 0 auto!important;white-space:nowrap!important}
  body .btp-app .btp-followup-visible-count{text-align:left!important}
}

/* Compact phone/small split surface: stack only when two readable controls no
   longer fit. All labels and triggers keep natural height and full width. */
@container btp-page (max-width:540px){
  body .btp-app :is(
    .btp-library-toolbar,
    .btp-message-toolbar,
    .btp-prompt-toolbar,
    .btp-workspace-toolbar--refined,
    .btp-search-core,
    .btp-search-filter-grid,
    .btp-support-history-filters,
    .btp-followup-filterbar
  ){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
  }
  body .btp-app :is(
    .btp-library-search,.btp-library-filter,.btp-library-count,
    .btp-message-search,.btp-message-filter,.btp-message-count,
    .btp-prompt-search,.btp-prompt-filter,.btp-prompt-count,
    .btp-workspace-search,.btp-workspace-control,
    .btp-support-history-search,.btp-support-filter-select,.btp-support-history-filter-actions
  ){
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
  }
  body .btp-app .btp-search-filter-grid>label:last-child{grid-column:auto!important}
  body .btp-app .btp-workspace-toolbar--refined{margin-inline:0!important;padding:10px!important}
  body .btp-app .btp-support-history-filter-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .btp-app .btp-support-history-filter-actions>*{width:100%!important}
  body .btp-app .btp-followup-filterchips{
    display:flex!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    gap:7px!important;
    padding:1px 1px 4px!important;
    scrollbar-width:none!important;
  }
  body .btp-app .btp-followup-filterchips::-webkit-scrollbar{display:none!important}
  body .btp-app .btp-followup-filterchips button{
    flex:0 0 auto!important;
    white-space:nowrap!important;
    text-align:center!important;
  }
  body .btp-app .btp-followup-visible-count{text-align:left!important}
}

/* Very narrow devices: preserve usable touch targets without giant typography. */
@media (max-width:640px){
  body .btp-app .btp-brand-select-menu.is-viewport-sheet button{
    min-height:46px!important;
    padding:11px 12px!important;
    font-size:13px!important;
  }
  body .btp-app :is(.btp-library-filter,.btp-message-filter,.btp-prompt-filter,.btp-workspace-control) .btp-brand-select-trigger{
    min-height:48px!important;
    height:48px!important;
  }
}
body .btp-app :is(
  .btp-message-toolbar,
  .btp-library-toolbar,
  .btp-prompt-toolbar,
  .btp-workspace-toolbar--refined,
  .btp-search-panel,
  .btp-support-history-filters
):has(.btp-brand-select.is-open){
  position:relative!important;
  z-index:2147481000!important;
}
body .btp-app .btp-brand-select-menu{
  display:flex!important;
  flex-direction:column!important;
  gap:5px!important;
  padding:9px!important;
  border:1px solid #e7dcc6!important;
  border-radius:17px!important;
  background:#fffdf9!important;
  scrollbar-color:#c99a3c transparent!important;
}
body .btp-app .btp-brand-select-menu[hidden]{display:none!important}
body .btp-app .btp-brand-select-menu button{
  min-height:42px!important;
  height:auto!important;
  margin:0!important;
  padding:10px 12px!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  font-size:12.5px!important;
  line-height:1.32!important;
}
body .btp-app .btp-brand-select-menu button:hover{
  border-color:#f0dfba!important;
  background:#fff6e2!important;
}

/* ==========================================================
   v0.58.39 — Biblioteca Prospect · compact filter composition
   In reduced windows the search owns the full first row, while Categoria
   and Tipo remain paired on the second row. The count occupies a third row.
   This explicitly neutralizes the older viewport rule that could place
   search + Categoria on the same row when the app viewport was narrow but
   the internal content container was still wider than 980px.
========================================================== */
@media (max-width:1180px){
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-toolbar{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:end!important;
    gap:10px!important;
    padding:12px!important;
  }
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-search{
    grid-column:1/-1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:none!important;
    justify-self:stretch!important;
  }
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-toolbar>label.btp-library-filter{
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-toolbar>label.btp-library-filter:nth-of-type(2){
    grid-column:1!important;
  }
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-toolbar>label.btp-library-filter:nth-of-type(3){
    grid-column:2!important;
  }
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-count{
    grid-column:1/-1!important;
    grid-row:auto!important;
    width:100%!important;
    min-width:0!important;
    justify-self:stretch!important;
  }
}

/* Container fallback for reduced app canvases produced by browser sidebars,
   split-screen or application chrome even when the outer viewport is wider. */
@container btp-page (max-width:1120px){
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-toolbar{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:end!important;
    gap:10px!important;
    padding:12px!important;
  }
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-search{
    grid-column:1/-1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:none!important;
  }
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-toolbar>label.btp-library-filter:nth-of-type(2){grid-column:1!important}
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-toolbar>label.btp-library-filter:nth-of-type(3){grid-column:2!important}
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-count{
    grid-column:1/-1!important;
    grid-row:auto!important;
    width:100%!important;
  }
}

/* Keep the same two-filter composition on phones. Controls shrink inside the
   grid rather than stacking into a long vertical column. */
@media (max-width:720px){
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-toolbar{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:10px!important;
  }
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-search{
    grid-column:1/-1!important;
    min-height:48px!important;
  }
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-toolbar>label.btp-library-filter:nth-of-type(2){grid-column:1!important}
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-toolbar>label.btp-library-filter:nth-of-type(3){grid-column:2!important}
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-count{grid-column:1/-1!important}
  body .btp-app .btp-view[data-view="biblioteca"] .btp-library-filter .btp-brand-select-trigger{
    padding-inline:12px!important;
    gap:8px!important;
  }
}

/* ==========================================================
   v0.58.40 — settings composition + dropdown stability audit
   - Configurações no desktop usam uma malha 2x2 real, sem painel da meta
     artificialmente esticado pela coluna da direita.
   - Todos os branded selects fecham quando a página/viewport se move; menus
     não "flutuam" pela tela durante scroll.
   - Prospectar reage à largura REAL do formulário, não à viewport inteira.
   - Estados fechado/aberto mantêm a mesma superfície viva, sem halo luminoso.
========================================================== */

/* 1) Configurações: remover a dependência do grid-row:span e distribuir os
      quatro cards iniciais em duas linhas equilibradas. */
body .btp-app .btp-view[data-view="configuracoes"] .btp-settings-layout--user{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-areas:
    "goal profile"
    "identity defaults"
    "services services"
    "recurring recurring"
    "save save"!important;
  gap:16px!important;
  align-items:start!important;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-settings-side-stack{
  display:contents!important;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-goal-calculator{
  grid-area:goal!important;
  grid-row:auto!important;
  height:auto!important;
  min-height:0!important;
  align-self:start!important;
  margin:0!important;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-commercial-profile-card{
  grid-area:profile!important;
  align-self:start!important;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-sales-identity-card{
  grid-area:identity!important;
  align-self:start!important;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-prospecting-defaults-card{
  grid-area:defaults!important;
  align-self:start!important;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-services-card{
  grid-area:services!important;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-recurring-values-card{
  grid-area:recurring!important;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-settings-savebar{
  grid-area:save!important;
  grid-column:auto!important;
}

/* Cards de configuração permanecem sólidos e com contraste estável. Abrir um
   seletor não altera a luminosidade do painel ao redor. */
body .btp-app .btp-view[data-view="configuracoes"] :is(
  .btp-goal-calculator,
  .btp-settings-card,
  .btp-prospecting-defaults-card,
  .btp-services-card,
  .btp-recurring-values-card
){
  background:linear-gradient(145deg,#ffffff 0%,#fffefb 64%,#fff8e9 100%)!important;
  border-color:#eadfcb!important;
  box-shadow:0 14px 34px rgba(18,27,38,.065)!important;
}
body .btp-app .btp-view[data-view="configuracoes"] :is(
  .btp-commercial-profile-card,
  .btp-sales-identity-card,
  .btp-prospecting-defaults-card,
  .btp-services-card
){
  overflow:visible!important;
}

/* 2) Branded select: a cor do controle não muda de "apagada" para brilhante.
      O estado aberto usa apenas borda dourada + sombra neutra e curta. */
body .btp-app .btp-brand-select-trigger{
  background:linear-gradient(180deg,#ffffff 0%,#fffdf8 100%)!important;
  border-color:#ddd4c4!important;
  box-shadow:0 1px 0 rgba(17,28,40,.025)!important;
}
body .btp-app .btp-brand-select-trigger:hover{
  background:#fffaf0!important;
  border-color:#d5b56f!important;
  box-shadow:0 2px 8px rgba(18,28,40,.045)!important;
}
body .btp-app .btp-brand-select.is-open .btp-brand-select-trigger,
body .btp-app .btp-brand-select-trigger:focus-visible{
  background:#fffdf8!important;
  border-color:#c99532!important;
  box-shadow:0 4px 14px rgba(17,28,40,.075)!important;
  outline:0!important;
}
body .btp-app .btp-brand-select-menu,
body .btp-app .btp-brand-select-menu.is-viewport-sheet{
  background:#fffdf9!important;
  border-color:#e4d7bf!important;
  box-shadow:0 16px 34px rgba(8,17,28,.16)!important;
}

/* Um menu fixo já vive no topo da pilha; elevar toda a toolbar/card cria
   mudanças visuais desnecessárias em superfícies translúcidas. */
body .btp-app :is(
  .btp-message-toolbar,
  .btp-library-toolbar,
  .btp-prompt-toolbar,
  .btp-workspace-toolbar--refined,
  .btp-search-panel,
  .btp-support-history-filters
):has(.btp-brand-select.is-open){
  z-index:auto!important;
}
body .btp-app :is(.btp-commercial-profile-card,.btp-services-card):has(.btp-brand-select.is-open){
  z-index:auto!important;
}

/* 3) Prospectar: o formulário é o próprio container de responsividade.
      Assim um desktop com sidebar/split-screen não usa a composição errada. */
body .btp-app .btp-search-panel{
  container-type:inline-size!important;
  container-name:btp-prospect-form!important;
  background:linear-gradient(145deg,#ffffff 0%,#fffefb 67%,#fff8e9 100%)!important;
  border-color:#eadfcb!important;
  box-shadow:0 16px 38px rgba(18,27,38,.07)!important;
}
body .btp-app .btp-search-filters{
  background:linear-gradient(180deg,#fffaf0 0%,#fff5e3 100%)!important;
  border-color:#ead8b5!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72)!important;
}
body .btp-app .btp-auto-analysis{
  background:#fffdf8!important;
  border-color:#eadfcb!important;
}
body .btp-app .btp-search-filter-grid>label:last-child,
body .btp-app .btp-search-core>label:last-child{
  grid-column:auto!important;
}

/* Formulário amplo: quatro campos principais e três filtros de qualificação. */
@container btp-prospect-form (min-width:900px){
  body .btp-app .btp-search-core{
    grid-template-columns:minmax(190px,1.18fr) minmax(170px,1fr) minmax(170px,1fr) minmax(130px,.58fr)!important;
    gap:12px!important;
  }
  body .btp-app .btp-search-filter-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
  }
}

/* Notebook, janela reduzida e painel lateral: 2x2 no topo, mas os três filtros
   de qualificação continuam alinhados na mesma linha enquanto forem legíveis. */
@container btp-prospect-form (min-width:620px) and (max-width:899px){
  body .btp-app .btp-search-core{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body .btp-app .btp-search-filter-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body .btp-app .btp-search-core>label,
  body .btp-app .btp-search-filter-grid>label{
    grid-column:auto!important;
  }
}

/* Superfície estreita: empilhar de verdade é mais legível do que criar um
   terceiro controle órfão e gigante ou comprimir textos. */
@container btp-prospect-form (max-width:619px){
  body .btp-app .btp-search-core,
  body .btp-app .btp-search-filter-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
  }
  body .btp-app .btp-search-core>label,
  body .btp-app .btp-search-filter-grid>label{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
  }
  body .btp-app .btp-search-filters-title{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:5px!important;
  }
}

/* 4) Todos os menus: opções têm ritmo consistente e nunca encostam. */
body .btp-app .btp-brand-select-menu{
  gap:6px!important;
  padding:9px!important;
}
body .btp-app .btp-brand-select-menu button{
  min-height:42px!important;
  margin:0!important;
  padding:10px 12px!important;
  border-radius:11px!important;
}

/* 5) Configurações em largura reduzida: manter duas colunas enquanto há espaço
      real; só virar uma coluna quando os cards deixariam de ser legíveis. */
@container btp-page (max-width:760px){
  body .btp-app .btp-view[data-view="configuracoes"] .btp-settings-layout--user{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:
      "goal"
      "profile"
      "identity"
      "defaults"
      "services"
      "recurring"
      "save"!important;
    gap:12px!important;
  }
}

/* Mobile: menu permanece dentro do viewport. O JS o fecha se a página rolar,
   portanto não existe menu "solto" acompanhando outra seção. */
@media (max-width:640px){
  body .btp-app .btp-brand-select-menu.is-viewport-sheet{
    left:12px!important;
    right:12px!important;
    width:auto!important;
    max-width:none!important;
    bottom:calc(82px + env(safe-area-inset-bottom))!important;
    max-height:min(52dvh,390px)!important;
  }
}

/* Stacking stays constant before/after opening a menu. The menu itself is fixed
   at the viewport layer, so parent controls do not need to jump z-index. */
body .btp-app .btp-message-toolbar:has(.btp-brand-select.is-open){z-index:30!important}
body .btp-app .btp-message-filter .btp-brand-select.is-open{z-index:2!important}
body .btp-app .btp-message-toolbar .btp-brand-select.is-open{z-index:2!important}
body .btp-app .btp-library-filter .btp-brand-select.is-open{z-index:auto!important}
body .btp-app .btp-search-service-select.is-open{z-index:90!important}
body .btp-app .btp-commercial-profile-card:has(.btp-brand-select.is-open){z-index:45!important}
body .btp-app .btp-services-card:has(.btp-brand-select.is-open){z-index:auto!important}

/* ==========================================================
   v0.58.41 — Prospectar field alignment + dropdown portal hardening
   - Alinha Segmento/Localização/Quantidade pela linha do controle, sem que
     o texto de ajuda do serviço estique o campo vizinho.
   - O menu aberto é portado para a raiz da aplicação por app.js, escapando
     de stacking contexts, overflow e cartões irmãos em qualquer tela.
   - A malha responde à largura REAL do formulário via container queries.
========================================================== */

/* Campo principal: rótulo e controle sempre começam na mesma referência
   vertical. O texto de ajuda deixa de participar da altura do label. */
body .btp-app .btp-search-core{
  align-items:start!important;
  grid-auto-flow:row!important;
}
body .btp-app .btp-search-core>.btp-search-field{
  display:grid!important;
  grid-template-rows:auto 52px!important;
  align-content:start!important;
  align-self:start!important;
  gap:8px!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
}
body .btp-app .btp-search-core>.btp-search-field>input,
body .btp-app .btp-search-core>.btp-search-field>.btp-brand-select{
  align-self:start!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
}
body .btp-app .btp-search-service-hint{
  display:block!important;
  grid-area:hint!important;
  margin:0 2px!important;
  max-width:78ch!important;
  color:#7f8b98!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:1.5!important;
  text-wrap:pretty!important;
  overflow-wrap:break-word!important;
}
body .btp-app .btp-search-field--service{grid-area:service!important}
body .btp-app .btp-search-field--segment{grid-area:segment!important}
body .btp-app .btp-search-field--location{grid-area:location!important}
body .btp-app .btp-search-field--count{grid-area:count!important}

@container btp-prospect-form (min-width:900px){
  body .btp-app .btp-search-core{
    grid-template-columns:minmax(190px,1.18fr) minmax(170px,1fr) minmax(170px,1fr) minmax(130px,.58fr)!important;
    grid-template-areas:
      "service segment location count"
      "hint hint hint hint"!important;
    gap:8px 12px!important;
  }
}
@container btp-prospect-form (min-width:620px) and (max-width:899px){
  body .btp-app .btp-search-core{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-areas:
      "service segment"
      "hint hint"
      "location count"!important;
    gap:8px 12px!important;
  }
}
@container btp-prospect-form (max-width:619px){
  body .btp-app .btp-search-core{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:
      "service"
      "hint"
      "segment"
      "location"
      "count"!important;
    gap:9px!important;
  }
  body .btp-app .btp-search-service-hint{
    margin-top:-2px!important;
    font-size:12px!important;
  }
}

/* Qualificação: os labels não esticam entre si e cada controle mantém uma
   área de clique consistente. */
body .btp-app .btp-search-filter-grid{
  align-items:start!important;
}
body .btp-app .btp-search-filter-grid>label{
  display:grid!important;
  grid-template-rows:auto 52px!important;
  align-content:start!important;
  align-self:start!important;
  gap:8px!important;
  min-width:0!important;
  margin:0!important;
}
body .btp-app .btp-search-filter-grid>label>.btp-brand-select{
  min-width:0!important;
  width:100%!important;
}

/* Menus portados: o dropdown deixa de competir com z-index/overflow do card
   que o originou. A geometria final continua sendo aplicada inline pelo JS. */
body .btp-app>.btp-brand-select-menu.is-portaled{
  position:fixed!important;
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  margin:0!important;
  padding:9px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  border:1px solid #e4d7bf!important;
  border-radius:17px!important;
  background:#fffdf9!important;
  box-shadow:0 20px 46px rgba(8,17,28,.18),0 2px 8px rgba(8,17,28,.05)!important;
  isolation:isolate!important;
  z-index:2147483000!important;
}
body .btp-app>.btp-brand-select-menu.is-portaled[hidden]{display:none!important}
body .btp-app>.btp-brand-select-menu.is-portaled button{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:42px!important;
  height:auto!important;
  margin:0!important;
  padding:10px 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  background:transparent!important;
  color:#687483!important;
  font-size:12.5px!important;
  font-weight:680!important;
  line-height:1.32!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  box-shadow:none!important;
}
@media (hover:hover) and (pointer:fine){
  body .btp-app>.btp-brand-select-menu.is-portaled button:hover{
    background:#fff6e2!important;
    border-color:#f0dfba!important;
    color:#172333!important;
  }
}
body .btp-app>.btp-brand-select-menu.is-portaled button:focus-visible{
  outline:0!important;
  background:#fff6e2!important;
  border-color:#d5ad59!important;
  color:#172333!important;
  box-shadow:0 0 0 3px rgba(214,163,75,.13)!important;
}
body .btp-app>.btp-brand-select-menu.is-portaled button:is(.is-selected,[aria-selected="true"]){
  background:linear-gradient(180deg,#fff2c9 0%,#f8e5b2 100%)!important;
  border-color:#ead49f!important;
  color:#172333!important;
  font-weight:800!important;
}
body .btp-app>.btp-brand-select-menu.is-portaled button:is(.is-selected,[aria-selected="true"])::after{
  content:"✓"!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
  color:#9c6d16!important;
  font-weight:900!important;
}

/* Como o menu não vive mais dentro do painel, nenhum card precisa subir de
   camada ao abrir o filtro. Isso evita mudanças de luminosidade/aparência. */
body .btp-app :is(
  .btp-message-toolbar,
  .btp-library-toolbar,
  .btp-prompt-toolbar,
  .btp-workspace-toolbar--refined,
  .btp-search-panel,
  .btp-search-core,
  .btp-search-filters,
  .btp-support-history-filters,
  .btp-commercial-profile-card,
  .btp-services-card
):has(.btp-brand-select.is-open){
  z-index:auto!important;
}

/* Touch/mobile: mantém controles confortáveis e o sheet dentro da viewport. */
@media (max-width:640px){
  body .btp-app>.btp-brand-select-menu.is-portaled.is-viewport-sheet{
    left:12px!important;
    right:12px!important;
    width:auto!important;
    max-width:none!important;
    border-radius:20px!important;
    padding:10px!important;
  }
  body .btp-app>.btp-brand-select-menu.is-portaled.is-viewport-sheet button{
    min-height:46px!important;
    padding:11px 12px!important;
    font-size:13px!important;
  }
}

/* v0.58.43 — account MFA */
.btp-mfa-box{border:1px solid rgba(194,143,35,.22);background:#fffaf0;border-radius:18px;padding:18px;display:grid;gap:16px}
.btp-mfa-status{display:flex;align-items:center;justify-content:space-between;gap:16px}.btp-mfa-status>div{display:grid;gap:4px}.btp-mfa-status small{color:#738097;line-height:1.45}
.btp-mfa-pill{flex:0 0 auto;border:1px solid rgba(194,143,35,.3);background:#fff3d4;color:#9b6b00;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800;letter-spacing:.08em}.btp-mfa-pill.is-on{background:#eaf8ef;border-color:#b9e4c7;color:#17733b}
.btp-mfa-enroll,.btp-mfa-actions{display:grid;gap:12px}.btp-mfa-enroll>label,.btp-mfa-actions>label{display:grid;gap:7px;font-weight:700}.btp-mfa-enroll input,.btp-mfa-actions input,.btp-mfa-confirm-row input{min-height:48px;border:1px solid #dce2e9;border-radius:14px;padding:0 14px;background:#fff;color:#132237}
.btp-mfa-setup{display:grid;gap:12px;border-top:1px solid rgba(194,143,35,.18);padding-top:14px}.btp-mfa-secret{display:grid;gap:8px}.btp-mfa-secret span{font-size:12px;font-weight:800;letter-spacing:.08em;color:#a4730c}.btp-mfa-secret code{display:block;word-break:break-all;background:#142337;color:#f4c65b;padding:12px 14px;border-radius:12px;font-size:14px;letter-spacing:.08em}
.btp-mfa-copy{justify-self:start}.btp-mfa-confirm-row{display:grid;grid-template-columns:minmax(120px,180px) minmax(180px,1fr);gap:10px;align-items:center}.btp-mfa-action-buttons{display:flex;flex-wrap:wrap;gap:10px}.btp-danger-soft{border-color:#e9caca!important;color:#9b3131!important;background:#fff7f7!important}
.btp-mfa-recovery{border:1px solid #efd28b;background:#fff4cf;border-radius:14px;padding:14px}.btp-mfa-recovery pre{white-space:pre-wrap;word-break:break-word;background:#142337;color:#fff;padding:12px;border-radius:10px;margin:10px 0 0;font:700 13px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace}
@media(max-width:700px){.btp-mfa-status{align-items:flex-start}.btp-mfa-confirm-row{grid-template-columns:1fr}.btp-mfa-action-buttons{display:grid}.btp-mfa-action-buttons>*{width:100%}}

/* ==========================================================
   v0.58.45 — CRM Intelligence & Reliability
   - CRM central para leads internos/externos e resultados manuais
   - Métricas de atividade, progresso, receita e atribuição
   - Meta diária de prospecção
   - Novo filtro de disponibilidade de contato
   - Feedback confiável de cópia
========================================================== */

/* Prospectar — quatro filtros em desktop, 2x2 em superfície média e
   uma coluna apenas quando a largura real do painel exigir. */
@container btp-prospect-form (min-width:900px){
  body .btp-app .btp-search-filter-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:12px!important;
  }
}
@container btp-prospect-form (min-width:620px) and (max-width:899px){
  body .btp-app .btp-search-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px 12px!important;
  }
  body .btp-app .btp-search-filter-grid>label{
    grid-column:auto!important;
  }
}
@container btp-prospect-form (max-width:619px){
  body .btp-app .btp-search-filter-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
  }
}

/* Configurações — a terceira métrica operacional passa a fazer parte da
   calculadora sem recriar o vazio vertical que existia em versões antigas. */
body .btp-app .btp-calc-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:start!important;
}
body .btp-app .btp-calc-grid>label{
  min-width:0!important;
  align-self:start!important;
}
body .btp-app .btp-calc-grid>label>input[type="number"]{
  width:100%;
  min-height:52px;
  border:1px solid #dce2e9;
  border-radius:16px;
  padding:0 15px;
  background:#fff;
  color:var(--btp-ink);
  font:inherit;
  font-weight:760;
  outline:0;
  transition:border-color .2s ease,box-shadow .2s ease;
}
body .btp-app .btp-calc-grid>label>input[type="number"]:focus{
  border-color:rgba(215,163,50,.78);
  box-shadow:0 0 0 4px rgba(215,163,50,.11);
}
body .btp-app .btp-calc-grid>label>small{
  color:#7a8796;
  font-size:12px;
  font-weight:600;
  line-height:1.45;
}
body .btp-app .btp-calc-result{grid-column:1/-1!important}
@media(max-width:1120px){
  body .btp-app .btp-calc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-calc-grid>label:nth-of-type(3){grid-column:1/-1!important}
}
@media(max-width:700px){
  body .btp-app .btp-calc-grid{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-calc-grid>label:nth-of-type(3),
  body .btp-app .btp-calc-result{grid-column:auto!important}
}

/* Dashboard — ritmo comercial diário. */
body .btp-app .btp-daily-goal-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(220px,.7fr) auto;
  align-items:center;
  gap:20px;
  padding:20px 22px;
  background:linear-gradient(135deg,#fffdf7 0%,#fff7e7 100%);
  border:1px solid #ead9b9;
  box-shadow:0 14px 32px rgba(17,32,47,.06);
}
body .btp-app .btp-daily-goal-copy{display:grid;gap:5px;min-width:0}
body .btp-app .btp-daily-goal-copy>span{
  color:#a16f13;
  font-size:12px;
  font-weight:850;
  letter-spacing:.16em;
}
body .btp-app .btp-daily-goal-copy>strong{color:var(--btp-ink);font-size:18px;line-height:1.2}
body .btp-app .btp-daily-goal-copy>small{color:#718093;font-size:12px;line-height:1.5}
body .btp-app .btp-daily-goal-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0}
body .btp-app .btp-daily-goal-progress>div{height:9px;border-radius:999px;background:#eee5d3;overflow:hidden;box-shadow:inset 0 1px 2px rgba(17,32,47,.08)}
body .btp-app .btp-daily-goal-progress>div>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--btp-gold),var(--btp-gold-2));transition:width .35s ease}
body .btp-app .btp-daily-goal-progress>strong{color:#8d6414;font-size:13px;white-space:nowrap}
@media(max-width:920px){
  body .btp-app .btp-daily-goal-card{grid-template-columns:minmax(0,1fr) auto}
  body .btp-app .btp-daily-goal-progress{grid-column:1/-1}
}
@media(max-width:620px){
  body .btp-app .btp-daily-goal-card{grid-template-columns:minmax(0,1fr);gap:14px;padding:18px}
  body .btp-app .btp-daily-goal-card>.btp-ghost,
  body .btp-app .btp-daily-goal-card>.btp-primary{width:100%;justify-content:center}
}

/* Resultados — métricas e atribuição sem depender de bibliotecas de gráficos. */
body .btp-app .btp-results-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:18px!important;
}
body .btp-app .btp-results-kpis>article{
  min-width:0;
  background:#fff;
  border:1px solid #e7dfd1;
  border-radius:20px;
  padding:18px;
  box-shadow:0 12px 28px rgba(17,32,47,.045);
}
body .btp-app .btp-results-kpis>article>span{display:block;color:#8591a0;font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px}
body .btp-app .btp-results-kpis>article>strong{display:block;color:var(--btp-ink);font-size:clamp(21px,1.7vw,30px);line-height:1.05;letter-spacing:-.035em;overflow-wrap:anywhere}
body .btp-app .btp-results-kpis>article>small{display:block;margin-top:8px;color:#8490a0;font-size:12px;line-height:1.45}
body .btp-app .btp-results-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
  margin-bottom:16px;
}
body .btp-app .btp-results-grid>.btp-panel{margin:0;min-width:0}
body .btp-app .btp-analytics-panel{
  padding:22px;
  border:1px solid #e7dfd1;
  background:linear-gradient(145deg,#fff 0%,#fffdfa 100%);
  box-shadow:0 14px 34px rgba(17,32,47,.055);
}
body .btp-app .btp-analytics-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
body .btp-app .btp-analytics-head>div{display:grid;gap:5px;min-width:0}
body .btp-app .btp-analytics-head span{color:#a06f13;font-size:12px;font-weight:850;letter-spacing:.16em}
body .btp-app .btp-analytics-head h3{margin:0;color:var(--btp-ink);font-size:20px;line-height:1.18;letter-spacing:-.02em}
body .btp-app .btp-analytics-head>small{color:#8b96a4;font-size:12px;line-height:1.4;text-align:right;max-width:20ch}
body .btp-app .btp-analytics-head>strong{color:#a06f13;font-size:21px;line-height:1}
body .btp-app .btp-analytics-panel>p{margin:13px 0 0;color:#6f7c8b;font-size:12px;line-height:1.55}
body .btp-app .btp-revenue-bars{
  min-height:210px;
  display:grid;
  grid-template-columns:repeat(6,minmax(42px,1fr));
  align-items:end;
  gap:10px;
  padding:4px 0 0;
}
body .btp-app .btp-revenue-bar{height:205px;display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:5px;align-items:end;text-align:center;min-width:0}
body .btp-app .btp-revenue-bar-track{height:152px;border-radius:12px;background:#f4efe5;overflow:hidden;display:flex;align-items:flex-end;padding:4px;box-shadow:inset 0 1px 2px rgba(17,32,47,.05)}
body .btp-app .btp-revenue-bar-track>i{display:block;width:100%;min-height:3px;border-radius:9px;background:linear-gradient(180deg,var(--btp-gold-2),var(--btp-gold));box-shadow:0 5px 13px rgba(215,163,50,.2)}
body .btp-app .btp-revenue-bar>strong{color:#435166;font-size:12px;text-transform:capitalize}
body .btp-app .btp-revenue-bar>small{color:#919aa6;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .btp-app .btp-analytics-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
body .btp-app .btp-analytics-mini>div{display:grid;gap:5px;padding:13px;border:1px solid #ebe2d3;border-radius:14px;background:#fffaf0}
body .btp-app .btp-analytics-mini span{color:#7e8997;font-size:12px;line-height:1.35}
body .btp-app .btp-analytics-mini strong{color:var(--btp-ink);font-size:16px}
body .btp-app .btp-attribution-list{display:grid;gap:8px}
body .btp-app .btp-attribution-list>article{
  display:grid;
  grid-template-columns:minmax(150px,1.5fr) minmax(90px,.7fr) minmax(90px,.7fr);
  gap:10px;
  align-items:center;
  padding:12px 13px;
  border:1px solid #ece4d7;
  border-radius:14px;
  background:#fff;
}
body .btp-app .btp-attribution-list>article>div{min-width:0;display:grid;gap:3px}
body .btp-app .btp-attribution-name strong{color:#243142;font-size:12px;overflow-wrap:break-word}
body .btp-app .btp-attribution-name small,
body .btp-app .btp-attribution-list>article>div>span{color:#909aa7;font-size:12px;line-height:1.35}
body .btp-app .btp-attribution-list>article>div:not(.btp-attribution-name)>strong{color:#9b6c15;font-size:14px}
body .btp-app .btp-analytics-empty{padding:28px 14px;border:1px dashed #e1d5c2;border-radius:15px;color:#8490a0;text-align:center;font-size:12px;line-height:1.55;background:#fffdf9}
@media(max-width:1080px){
  body .btp-app .btp-results-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  body .btp-app .btp-results-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:620px){
  body .btp-app .btp-results-kpis{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-analytics-panel{padding:18px}
  body .btp-app .btp-revenue-bars{gap:6px;overflow-x:auto;overflow-y:hidden;padding-bottom:6px;grid-template-columns:repeat(6,minmax(54px,1fr))}
  body .btp-app .btp-attribution-list>article{grid-template-columns:minmax(0,1fr) repeat(2,minmax(72px,.55fr));padding:11px 10px;gap:7px}
  body .btp-app .btp-analytics-mini{grid-template-columns:minmax(0,1fr)}
}

/* Cadastro de lead/resultado externo. O modal usa uma superfície própria para
   não depender de largura de viewport; em desktop permanece compacto e no
   mobile ocupa a tela com rolagem interna segura. */
body .btp-app .btp-manual-lead-modal{
  position:fixed;
  inset:0;
  z-index:2147482500;
  display:none;
  place-items:center;
  padding:24px;
  isolation:isolate;
}
body .btp-app .btp-manual-lead-modal.is-open,
body .btp-app .btp-manual-lead-modal[aria-hidden="false"]{display:grid}
body .btp-app .btp-manual-lead-backdrop{
  position:absolute;
  inset:0;
  z-index:-1;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  background:rgba(7,16,28,.62);
  backdrop-filter:blur(8px);
  cursor:default;
}
body .btp-app .btp-manual-lead-card{
  position:relative;
  width:min(900px,calc(100vw - 48px));
  max-height:min(90dvh,920px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:28px;
  border:1px solid rgba(231,218,190,.95);
  border-radius:26px;
  background:linear-gradient(145deg,#fff 0%,#fffdf8 100%);
  box-shadow:0 30px 90px rgba(5,14,26,.30);
}
body .btp-app .btp-manual-lead-close{
  position:absolute;
  top:16px;
  right:16px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #e7dece;
  border-radius:999px;
  background:#fff;
  color:#344256;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
body .btp-app .btp-manual-lead-head{display:grid;gap:7px;padding-right:48px;margin-bottom:22px}
body .btp-app .btp-manual-lead-head>span{color:#9d6b0e;font-size:12px;font-weight:850;letter-spacing:.18em}
body .btp-app .btp-manual-lead-head h2{margin:0;color:var(--btp-ink);font-size:30px;line-height:1.08;letter-spacing:-.03em}
body .btp-app .btp-manual-lead-head p{margin:0;max-width:68ch;color:#748091;font-size:13px;line-height:1.55}
body .btp-app .btp-manual-lead-form{display:grid;gap:18px}
body .btp-app .btp-manual-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body .btp-app .btp-manual-form-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
body .btp-app .btp-manual-form-grid>label,
body .btp-app .btp-manual-notes{display:grid;gap:7px;min-width:0;color:#536174;font-size:12px;font-weight:800;line-height:1.3}
body .btp-app .btp-manual-form-grid>label.is-wide{grid-column:span 2}
body .btp-app .btp-manual-form-grid--three>label.is-wide{grid-column:span 2}
body .btp-app .btp-manual-form-grid label>b{color:#b17709}
body .btp-app .btp-manual-form-grid input,
body .btp-app .btp-manual-form-grid select,
body .btp-app .btp-manual-notes textarea{
  width:100%;
  min-width:0;
  min-height:48px;
  border:1px solid #dce2e8;
  border-radius:14px;
  background:#fff;
  color:#172436;
  padding:0 13px;
  font:inherit;
  font-weight:650;
  outline:0;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
body .btp-app .btp-manual-notes textarea{min-height:86px;padding:12px 13px;resize:vertical;line-height:1.5}
body .btp-app .btp-manual-form-grid input:focus,
body .btp-app .btp-manual-form-grid select:focus,
body .btp-app .btp-manual-notes textarea:focus{border-color:#d3a548;box-shadow:0 0 0 4px rgba(215,163,50,.11);background:#fffefb}
body .btp-app .btp-manual-form-section{padding:17px;border:1px solid #e9dfcc;border-radius:18px;background:#fffaf0}
body .btp-app .btp-manual-form-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:13px}
body .btp-app .btp-manual-form-title>strong{color:#253348;font-size:13px}
body .btp-app .btp-manual-form-title>small{color:#8a95a3;font-size:12px;line-height:1.45;text-align:right;max-width:48ch}
body .btp-app .btp-manual-lead-actions{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-28px;margin:0 -28px -28px;padding:14px 28px 20px;border-top:1px solid #eee5d7;background:rgba(255,253,248,.96);backdrop-filter:blur(10px)}
body .btp-app .btp-manual-lead-actions>*{min-width:130px;justify-content:center}
@media(max-width:800px){
  body .btp-app .btp-manual-form-grid--three{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  body .btp-app .btp-manual-lead-modal{padding:0;place-items:stretch}
  body .btp-app .btp-manual-lead-card{width:100%;max-height:100dvh;height:100dvh;border-radius:0;padding:22px 16px 24px}
  body .btp-app .btp-manual-lead-head{padding-right:42px;margin-top:3px}
  body .btp-app .btp-manual-lead-head h2{font-size:25px}
  body .btp-app .btp-manual-form-grid,
  body .btp-app .btp-manual-form-grid--three{grid-template-columns:minmax(0,1fr)}
  body .btp-app .btp-manual-form-grid>label.is-wide,
  body .btp-app .btp-manual-form-grid--three>label.is-wide{grid-column:auto}
  body .btp-app .btp-manual-form-title{display:grid;gap:4px}
  body .btp-app .btp-manual-form-title>small{text-align:left}
  body .btp-app .btp-manual-lead-actions{bottom:-24px;margin:0 -16px -24px;padding:12px 16px calc(16px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr}
  body .btp-app .btp-manual-lead-actions>*{min-width:0;width:100%}
}

/* Clipboard — estado visual só muda depois de a Promise/fallback confirmar a
   cópia; assim o texto não permanece enganoso em falhas de permissão. */
body .btp-app button.is-copying{opacity:.72;cursor:progress!important}
body .btp-app button.is-copied{
  background:linear-gradient(135deg,#16283d,#243b58)!important;
  border-color:#243b58!important;
  color:#f2c968!important;
  box-shadow:0 8px 18px rgba(22,40,61,.14)!important;
}
body .btp-app button.is-copy-error{
  background:#fff7f4!important;
  border-color:#e7b9ad!important;
  color:#9e4030!important;
}

/* Section-head actions must remain readable when the browser is narrow or
   when a desktop sidebar consumes horizontal space. */
@media(max-width:760px){
  body .btp-app .btp-section-head:has([data-btp-manual-lead-open]){align-items:stretch;flex-direction:column}
  body .btp-app .btp-section-head:has([data-btp-manual-lead-open])>[data-btp-manual-lead-open]{width:100%;justify-content:center}
}
body .btp-app .btp-manual-form-section.is-disabled{opacity:.66;background:#fbfaf7}
body .btp-app .btp-manual-form-section.is-disabled input,
body .btp-app .btp-manual-form-section.is-disabled select,
body .btp-app .btp-manual-form-section.is-disabled textarea{background:#f5f3ef;color:#8a94a1;cursor:not-allowed}
body .btp-app .btp-manual-form-section.is-result{opacity:1}

/* ==========================================================================
   v0.58.46 · CRM Stability, Figma icon alignment & adaptive intelligence
   The app must respond to the actual viewport available to the browser, not
   to a presumed device width (important when Chrome/Edge side tabs are open).
   ========================================================================== */

/* Keep all primary content shrinkable. Without min-width:0, grid/flex children
   can silently force horizontal overflow on reduced desktop widths. */
body .btp-app :is(.btp-main,.btp-view,.btp-section,.btp-panel,.btp-dashboard-core,.btp-dashboard-kpis,.btp-home-intelligence-grid,.btp-results-grid,.btp-section-head,.btp-workspace-toolbar,.btp-search-form,.btp-prospect-form-grid){min-width:0}
body .btp-app :is(.btp-panel,.btp-section,.btp-view) img{max-width:100%}
body .btp-app :is(p,small,strong,span,label,h1,h2,h3,h4){overflow-wrap:break-word}
body .btp-app :is(a,button,input,select,textarea){max-width:100%}

/* Figma/exported icon family — optical centering is controlled by the button,
   never by the SVG's baseline. 40px minimum gives comfortable pointer/touch
   targets while remaining compact on desktop. */
body .btp-app :is(.btp-primary,.btp-ghost,.btp-mini,.btp-secondary,.btp-link-button,.btp-workspace-context-action,.btp-copy-prompt,.btp-copy-message,.btp-library-copy-action,.btp-library-save-prompt,.btp-library-download){
  align-items:center;
}
body .btp-app button:has(> .btp-btn-svg),
body .btp-app a:has(> .btp-btn-svg){display:inline-flex;align-items:center;justify-content:center;gap:8px}
body .btp-app .btp-btn-svg,
body .btp-app button>.btp-figma-icon,
body .btp-app a>.btp-figma-icon{
  display:block;
  flex:0 0 18px;
  width:18px!important;
  height:18px!important;
  margin:0!important;
  align-self:center;
  object-fit:contain;
  line-height:1!important;
}
body .btp-app button>.dashicons,
body .btp-app a>.dashicons{
  display:inline-grid!important;
  place-items:center;
  flex:0 0 18px;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  margin:0!important;
  padding:0!important;
  line-height:18px!important;
  vertical-align:middle!important;
}
body .btp-app button>.dashicons:before,
body .btp-app a>.dashicons:before{display:block;line-height:18px!important;margin:0!important}
body .btp-app :is(.btp-icon-action,.btp-manual-lead-close,.btp-prompt-delete,.btp-lead-action-icon){min-width:40px;min-height:40px;display:inline-grid;place-items:center}

/* Dashboard: a compact pulse and deterministic assistant complement, rather
   than duplicate, the full Resultados dashboard. */
body .btp-app .btp-home-intelligence-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:16px;
  margin:16px 0;
}
body .btp-app .btp-home-intelligence-grid>.btp-panel{padding:21px;overflow:hidden}
body .btp-app .btp-home-intelligence-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;min-width:0}
body .btp-app .btp-home-intelligence-head>div{display:grid;gap:4px;min-width:0}
body .btp-app .btp-home-intelligence-head>div>span{color:#a06f13;font-size:12px;font-weight:850;letter-spacing:.15em}
body .btp-app .btp-home-intelligence-head h3{margin:0;color:var(--btp-ink);font-size:20px;line-height:1.18;letter-spacing:-.025em}
body .btp-app .btp-home-intelligence-head p{margin:0;color:#7e8997;font-size:12px;line-height:1.48;max-width:56ch}
body .btp-app .btp-home-results-link{flex:0 0 auto;white-space:nowrap}
body .btp-app .btp-pulse-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 0 4px;color:#657287;font-size:12px;font-weight:750}
body .btp-app .btp-pulse-legend>span{display:inline-flex;align-items:center;gap:6px}
body .btp-app .btp-pulse-legend i{width:9px;height:9px;border-radius:999px;display:block}
body .btp-app .btp-pulse-legend i.is-outreach{background:#d7a332}
body .btp-app .btp-pulse-legend i.is-progress{background:#162a40}
body .btp-app .btp-home-pulse-chart{
  height:174px;
  display:grid;
  grid-template-columns:repeat(7,minmax(34px,1fr));
  align-items:end;
  gap:8px;
  padding:13px 2px 0;
}
body .btp-app .btp-pulse-day{height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:4px;align-items:end;text-align:center;min-width:0}
body .btp-app .btp-pulse-bars{height:122px;display:flex;align-items:flex-end;justify-content:center;gap:4px;padding:0 3px;border-bottom:1px solid #ede5d8}
body .btp-app .btp-pulse-bars>i{display:block;width:min(14px,42%);height:var(--btp-bar-h,2%);min-height:3px;border-radius:7px 7px 2px 2px;transition:height .22s ease}
body .btp-app .btp-pulse-bars>i.is-outreach{background:linear-gradient(180deg,#f2c966,#d7a332)}
body .btp-app .btp-pulse-bars>i.is-progress{background:linear-gradient(180deg,#2e4966,#12263b)}
body .btp-app .btp-pulse-day>strong{color:#536174;font-size:12px;text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .btp-app .btp-pulse-day>small{color:#97a0ab;font-size:12px;white-space:nowrap}
body .btp-app .btp-home-pulse-empty{margin-top:16px;padding:27px 14px;border:1px dashed #e3d8c7;border-radius:15px;background:#fffdf9;color:#8792a1;text-align:center;font-size:12px;line-height:1.5}
body .btp-app .btp-home-assistant-badge{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;padding:8px 10px;border:1px solid #eadcbf;border-radius:999px;background:#fff8e9;color:#8c6419;font-size:12px;font-weight:800;white-space:nowrap}
body .btp-app .btp-home-insight-list{display:grid;gap:9px;margin-top:16px}
body .btp-app .btp-home-insight-list>article{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;padding:11px 12px;border:1px solid #ece4d8;border-radius:15px;background:#fff;min-width:0}
body .btp-app .btp-home-insight-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#fff7e8;border:1px solid #efdfbe}
body .btp-app .btp-home-insight-icon .btp-btn-svg{width:19px!important;height:19px!important}
body .btp-app .btp-home-insight-list>article>div{min-width:0;display:grid;gap:3px}
body .btp-app .btp-home-insight-list strong{color:#253348;font-size:12px;line-height:1.3}
body .btp-app .btp-home-insight-list p{margin:0;color:#788495;font-size:12px;line-height:1.42}
body .btp-app .btp-home-insight-list>article.is-warning{background:#fffaf1;border-color:#ecd9ae}
body .btp-app .btp-home-insight-list>article.is-good .btp-home-insight-icon{background:#f3fbf5;border-color:#d9ebdd}
body .btp-app .btp-home-insight-list>article.is-insight .btp-home-insight-icon{background:#f7f8fb;border-color:#e0e5ec}

/* Modal robustness: a result save can trigger a real page refresh. The dialog
   remains scroll-safe while saving and never exceeds the dynamic viewport. */
body .btp-app .btp-manual-lead-modal{min-height:100dvh}
body .btp-app .btp-manual-lead-card{max-height:calc(100dvh - 42px);scrollbar-gutter:stable both-edges}
body .btp-app .btp-manual-lead-form :is(input,select,textarea,button){font-size:13px}
body .btp-app .btp-manual-lead-actions :is(button,.btp-primary,.btp-ghost){min-height:44px}
html.btp-route-transition-open,body.btp-route-transition-open{overscroll-behavior:none}
body .btp-route-transition{height:100dvh;min-height:100dvh}

/* Reduced desktop and browser sidebars: break by available viewport, not by
   device label. */
@media(max-width:1280px){
  body .btp-app .btp-home-intelligence-grid{grid-template-columns:minmax(0,1fr)}
  body .btp-app .btp-home-pulse-chart{height:165px}
  body .btp-app .btp-home-pulse-bars{height:114px}
}
@media(min-width:1041px) and (max-width:1280px){
  body .btp-app .btp-home-insight-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1100px){
  body .btp-app .btp-crm-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .btp-app .btp-home-intelligence-head{gap:12px}
}
@media(max-width:900px){
  body .btp-app .btp-home-intelligence-head{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
  body .btp-app .btp-home-results-link,body .btp-app .btp-home-assistant-badge{justify-self:start}
  body .btp-app .btp-home-pulse-chart{gap:5px}
  body .btp-app .btp-manual-lead-card{width:min(760px,calc(100vw - 24px));padding:24px 20px}
  body .btp-app .btp-manual-lead-actions{bottom:-24px;margin:0 -20px -24px;padding-left:20px;padding-right:20px}
}
@media(max-width:700px){
  body .btp-app .btp-dashboard-kpis{grid-template-columns:minmax(0,1fr)}
  body .btp-app .btp-home-intelligence-grid{gap:12px;margin:12px 0}
  body .btp-app .btp-home-intelligence-grid>.btp-panel{padding:17px}
  body .btp-app .btp-home-pulse-chart{height:154px;gap:4px;overflow:hidden}
  body .btp-app .btp-home-pulse-bars{height:104px;padding-inline:1px;gap:2px}
  body .btp-app .btp-pulse-bars>i{width:min(12px,45%)}
}
@media(max-width:620px){
  body .btp-app .btp-manual-lead-card{width:100%;max-height:100dvh;height:100dvh;padding:20px 14px 22px}
  body .btp-app .btp-manual-lead-close{top:12px;right:12px;min-width:42px;min-height:42px;width:42px;height:42px}
  body .btp-app .btp-manual-lead-head{padding-right:48px}
  body .btp-app .btp-manual-lead-actions{bottom:-22px;margin:0 -14px -22px;padding:11px 14px calc(13px + env(safe-area-inset-bottom))}
  body .btp-app .btp-home-assistant-badge{white-space:normal}
}
@media(max-width:440px){
  body .btp-app .btp-home-pulse-chart{height:146px;gap:2px}
  body .btp-app .btp-home-pulse-bars{height:98px}
  body .btp-app .btp-pulse-day>strong{font-size:12px}
  body .btp-app .btp-pulse-day>small{font-size:12px}
  body .btp-app .btp-home-insight-list>article{grid-template-columns:34px minmax(0,1fr);padding:10px;gap:8px}
  body .btp-app .btp-home-insight-icon{width:34px;height:34px}
}

@media(prefers-reduced-motion:reduce){
  body .btp-app .btp-pulse-bars>i{transition:none}
}
/* Legacy Dashicons that still live inside compound controls inherit the same
   optical center even when they are not direct children of the button. */
body .btp-app button .dashicons,
body .btp-app a.btp-primary .dashicons,
body .btp-app a.btp-ghost .dashicons{
  vertical-align:middle!important;
  line-height:1!important;
}
body .btp-app button .dashicons:before,
body .btp-app a.btp-primary .dashicons:before,
body .btp-app a.btp-ghost .dashicons:before{line-height:1!important}

/* ==========================================================================
   v0.58.47 · Today Queue, Explainable CRM Score & responsive hardening
   ========================================================================== */

/* Today is an operational component, so it adapts to its own available width.
   This is especially important on desktop browsers using vertical/side tabs. */
body .btp-app .btp-today-center{container-type:inline-size;overflow:hidden}
body .btp-app .btp-today-head{align-items:flex-start}
body .btp-app .btp-today-kpis article.is-warning{border-color:rgba(197,148,46,.3)!important;background:#fffaf0!important}
body .btp-app .btp-today-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin:15px 0 8px;padding:9px;border:1px solid #eee5d7;border-radius:17px;
  background:#fbfaf7;min-width:0;
}
body .btp-app .btp-today-filter-scroll{
  display:flex;align-items:center;gap:7px;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;
  scrollbar-width:thin;scrollbar-color:#d6b35c transparent;padding:1px 1px 3px;
}
body .btp-app .btp-today-filter-scroll::-webkit-scrollbar{height:4px}
body .btp-app .btp-today-filter-scroll::-webkit-scrollbar-thumb{background:#d6b35c;border-radius:999px}
body .btp-app .btp-today-filter-scroll button{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;
  min-height:38px;padding:8px 11px;border:1px solid #e8dfd1;border-radius:12px;background:#fff;
  color:#526071;font:inherit;font-size:12px;font-weight:800;line-height:1.15;white-space:nowrap;
  box-shadow:none;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease;
}
body .btp-app .btp-today-filter-scroll button:hover,
body .btp-app .btp-today-filter-scroll button:focus-visible{background:#fff8e7;border-color:#ddb653;color:#172538;outline:none}
body .btp-app .btp-today-filter-scroll button.is-active{background:#15263a;border-color:#15263a;color:#f1c85f;box-shadow:0 8px 18px rgba(15,31,49,.12)}
body .btp-app .btp-today-filter-scroll button strong{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#f6efdf;color:#946912;font-size:12px}
body .btp-app .btp-today-filter-scroll button.is-active strong{background:rgba(240,196,86,.13);color:#f1c85f}
body .btp-app .btp-today-toolbar>small{flex:0 0 auto;color:#8b95a2;font-size:12px;white-space:nowrap}
body .btp-app .btp-today-toolbar>small strong{color:#172538;font-size:12px}

body .btp-app .btp-today-queue{max-height:720px;overflow:auto;padding-right:3px;scrollbar-gutter:stable}
body .btp-app .btp-today-queue::-webkit-scrollbar{width:6px}
body .btp-app .btp-today-queue::-webkit-scrollbar-thumb{background:#d4ae54;border-radius:999px}
body .btp-app .btp-today-item[hidden]{display:none!important}
body .btp-app .btp-today-item{
  grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:16px!important;
  padding:14px 15px!important;border-radius:18px!important;background:#fff!important;
}
body .btp-app .btp-today-item.is-missing-action{border-color:#ead4a0!important;background:linear-gradient(145deg,#fffdf8,#fffaf0)!important}
body .btp-app .btp-today-eyebrow-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:4px;min-width:0}
body .btp-app .btp-today-eyebrow-row>span{color:#a16e16;font-size:12px;font-weight:900;letter-spacing:.1em}
body .btp-app .btp-today-eyebrow-row>em{font-style:normal;padding:4px 7px;border-radius:999px;background:#fff0c7;border:1px solid #e5c66f;color:#815c10;font-size:12px;font-weight:900;letter-spacing:.06em;white-space:nowrap}
body .btp-app .btp-today-copy>strong{font-size:14px!important;line-height:1.28!important}
body .btp-app .btp-today-copy>p{margin:4px 0 0!important;font-size:12px!important;line-height:1.48!important;max-width:76ch}
body .btp-app .btp-today-score-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:8px}
body .btp-app .btp-today-score-row>span{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:5px 8px;border:1px solid #ece4d6;border-radius:10px;background:#fbfaf7;color:#748092;font-size:12px;font-weight:750;letter-spacing:0!important}
body .btp-app .btp-today-score-row>span strong{color:#1c2a3b;font-size:12px}
body .btp-app .btp-today-actions{min-width:0;flex-wrap:nowrap!important}
body .btp-app .btp-today-actions :is(.btp-mini,.btp-primary){min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding-inline:13px}
body .btp-app .btp-today-no-results{margin-top:10px;padding:24px 14px;border:1px dashed #e3d8c7;border-radius:15px;background:#fffdf9;color:#8490a0;text-align:center;font-size:12px}

/* Three-dimensional CRM score. The crawler's prospecting score stays intact;
   this layer explains operational commercial priority. */
body .btp-app .btp-crm-dimensions{margin:10px 0 12px;padding:14px;border:1px solid #e8dfd0;border-radius:19px;background:linear-gradient(145deg,#fffdf9,#faf7f1);min-width:0}
body .btp-app .btp-crm-dimensions-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;min-width:0}
body .btp-app .btp-crm-dimensions-head>div{display:flex;align-items:baseline;gap:8px;min-width:0}
body .btp-app .btp-crm-dimensions-head span{color:#a16d13;font-size:12px;font-weight:900;letter-spacing:.11em}
body .btp-app .btp-crm-dimensions-head strong{color:#142337;font-size:18px;letter-spacing:-.03em}
body .btp-app .btp-crm-dimensions-head>small{color:#8e99a6;font-size:12px;text-align:right}
body .btp-app .btp-crm-dimension-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body .btp-app .btp-crm-dimension-grid>article{min-width:0;padding:11px 12px;border:1px solid #ebe4d8;border-radius:14px;background:#fff;box-shadow:0 7px 18px rgba(25,36,52,.03)}
body .btp-app .btp-crm-dimension-grid span{display:block;color:#7d8896;font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
body .btp-app .btp-crm-dimension-grid strong{display:block;margin:4px 0 2px;color:#18273a;font-size:21px;line-height:1}
body .btp-app .btp-crm-dimension-grid small{display:block;color:#929ca8;font-size:12px;line-height:1.35}
body .btp-app .btp-crm-next-action{margin-top:9px;padding:11px 12px;border-radius:14px;background:#142337;color:#fff;border:1px solid rgba(214,163,75,.18)}
body .btp-app .btp-crm-next-action.is-warning{background:#fff9ec;color:#172538;border-color:#e3c575}
body .btp-app .btp-crm-next-action>span{display:block;color:#efc55f;font-size:12px;font-weight:900;letter-spacing:.11em}
body .btp-app .btp-crm-next-action.is-warning>span{color:#9a6812}
body .btp-app .btp-crm-next-action>p{margin:4px 0 0;font-size:12px;line-height:1.45;color:inherit}
body .btp-app .btp-crm-next-action>small{display:block;margin-top:5px;color:#bdc7d3;font-size:12px;line-height:1.35}
body .btp-app .btp-crm-next-action.is-warning>small{color:#8d7650}

/* Results: reason analysis turns losses into usable sales learning without
   introducing a heavy charting dependency. */
body .btp-app .btp-loss-reasons-panel{margin-top:16px;min-width:0}
body .btp-app .btp-loss-reason-list{display:grid;gap:9px;margin-top:13px}
body .btp-app .btp-loss-reason-list>article{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,.75fr);align-items:center;gap:16px;padding:11px 12px;border:1px solid #ece4d8;border-radius:14px;background:#fff;min-width:0}
body .btp-app .btp-loss-reason-copy{min-width:0}
body .btp-app .btp-loss-reason-copy strong{display:block;color:#223044;font-size:12px;line-height:1.35}
body .btp-app .btp-loss-reason-copy small{display:block;margin-top:3px;color:#8b96a4;font-size:12px;line-height:1.35}
body .btp-app .btp-loss-reason-meter{height:8px;border-radius:999px;background:#f0ece5;overflow:hidden}
body .btp-app .btp-loss-reason-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d8a638,#efc75f)}

/* Component-level responsive behavior first, viewport fallbacks second. */
@container (max-width:860px){
  body .btp-app .btp-today-toolbar{align-items:stretch;flex-direction:column}
  body .btp-app .btp-today-toolbar>small{align-self:flex-end}
  body .btp-app .btp-today-item{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  body .btp-app .btp-today-actions{justify-content:flex-start!important;flex-wrap:wrap!important}
}
@container (max-width:580px){
  body .btp-app .btp-today-kpis{grid-template-columns:1fr 1fr!important}
  body .btp-app .btp-today-actions>*{flex:1 1 180px}
  body .btp-app .btp-today-queue{max-height:none;overflow:visible;padding-right:0}
}
@media(max-width:900px){
  body .btp-app .btp-crm-dimension-grid{grid-template-columns:1fr 1fr}
  body .btp-app .btp-crm-dimension-grid>article:last-child{grid-column:1/-1}
  body .btp-app .btp-loss-reason-list>article{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
  body .btp-app .btp-today-toolbar{padding:8px;margin-top:12px}
  body .btp-app .btp-today-filter-scroll{width:100%}
  body .btp-app .btp-today-item{padding:12px!important}
  body .btp-app .btp-today-actions{display:grid!important;grid-template-columns:1fr;gap:7px!important}
  body .btp-app .btp-today-actions>*{width:100%!important}
  body .btp-app .btp-crm-dimensions-head{align-items:flex-start;flex-direction:column}
  body .btp-app .btp-crm-dimensions-head>small{text-align:left}
}
@media(max-width:520px){
  body .btp-app .btp-today-kpis{grid-template-columns:1fr!important}
  body .btp-app .btp-today-score-row{display:grid;grid-template-columns:1fr 1fr;gap:5px}
  body .btp-app .btp-today-score-row>span:last-child{grid-column:1/-1}
  body .btp-app .btp-crm-dimension-grid{grid-template-columns:1fr}
  body .btp-app .btp-crm-dimension-grid>article:last-child{grid-column:auto}
}

@media(prefers-reduced-motion:reduce){
  body .btp-app .btp-today-filter-scroll button{transition:none}
}

/* ==========================================================================
   v0.58.48 · Filter reliability + revenue intelligence
   ========================================================================== */

/* The HTML hidden state can be overridden by author CSS that forces display.
   Several responsive table rules intentionally use display:table-row!important;
   therefore filter state needs a final, explicit rule after every breakpoint. */
html body .btp-app .btp-filter-hidden,
html body .btp-app .btp-filter-hidden[hidden],
html body .btp-app [data-btp-results-period-panel].btp-filter-hidden,
html body .btp-app .btp-lead-workspace .btp-qualified-table.has-leads tbody tr.btp-lead-row.btp-filter-hidden,
html body .btp-app .btp-lead-workspace .btp-qualified-table.has-leads tbody tr.btp-lead-row[hidden].btp-filter-hidden,
html body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row.btp-filter-hidden,
html body .btp-app .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row[hidden].btp-filter-hidden{
  display:none!important;
}

/* Consistent action feedback: avoids copy buttons appearing unresponsive when
   the clipboard succeeds but the original button label is restored quickly. */
body .btp-action-toast{
  position:fixed;right:22px;bottom:22px;z-index:2147483000;max-width:min(390px,calc(100vw - 32px));
  display:flex;align-items:center;gap:9px;padding:12px 15px;border:1px solid #dfc783;border-radius:14px;
  background:#142337;color:#fff;box-shadow:0 18px 48px rgba(12,24,38,.24);font-size:12px;font-weight:750;line-height:1.4;
  opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease;
}
body .btp-action-toast.is-visible{opacity:1;transform:translateY(0)}
body .btp-action-toast.is-error{background:#fff7ea;color:#2b2230;border-color:#e7bd73}

/* Optional service-specific ticket estimates used by Resultados projections. */
body .btp-app .btp-service-values{margin-top:13px;border:1px solid #eadfcf;border-radius:17px;background:#fffdf8;overflow:hidden}
body .btp-app .btp-service-values>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;cursor:pointer;color:#1a293c}
body .btp-app .btp-service-values>summary::-webkit-details-marker{display:none}
body .btp-app .btp-service-values>summary>span:first-child{display:grid;gap:3px;min-width:0}
body .btp-app .btp-service-values>summary strong{font-size:12px;line-height:1.3}
body .btp-app .btp-service-values>summary small{font-size:12px;line-height:1.4;color:#8490a0;font-weight:500}
body .btp-app .btp-service-values-summary-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:10px;background:#f6e6b8;color:#8e6310;font-size:17px;font-weight:700;transition:transform .18s ease}
body .btp-app .btp-service-values[open] .btp-service-values-summary-icon{transform:rotate(45deg)}
body .btp-app .btp-service-values-body{padding:0 15px 15px;border-top:1px solid #efe7da}
body .btp-app .btp-service-values-body>p{margin:12px 0;color:#7f8b9b;font-size:12px;line-height:1.5}
body .btp-app .btp-service-values-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
body .btp-app .btp-service-value-field{display:grid;gap:5px;min-width:0;padding:10px;border:1px solid #eae2d6;border-radius:13px;background:#fff}
body .btp-app .btp-service-value-field>span{font-size:12px;font-weight:800;color:#566273;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .btp-app .btp-money-input--compact{min-height:40px}
body .btp-app .btp-money-input--compact input{min-width:0;height:38px!important}

@media(max-width:1050px){body .btp-app .btp-service-values-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){
  body .btp-action-toast{left:16px;right:16px;bottom:16px;max-width:none}
  body .btp-app .btp-service-values-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){body .btp-action-toast,body .btp-app .btp-service-values-summary-icon{transition:none}}

/* Resultados 0.58.48: historical cohorts + revenue potential. */
body .btp-app .btp-results-page-head{align-items:flex-end}
body .btp-app .btp-results-page-head .btp-primary{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
body .btp-app .btp-results-period-toolbar{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,330px);align-items:end;gap:20px;
  margin:0 0 16px;padding:16px 18px;border:1px solid #e7dfd2;background:linear-gradient(145deg,#fff,#fffcf6);box-shadow:0 12px 28px rgba(17,32,47,.045);min-width:0;
}
body .btp-app .btp-results-period-copy{display:grid;gap:4px;min-width:0}
body .btp-app .btp-results-period-copy>span{color:#9e6e15;font-size:12px;font-weight:900;letter-spacing:.14em}
body .btp-app .btp-results-period-copy>strong{color:#182638;font-size:15px;line-height:1.25}
body .btp-app .btp-results-period-copy>small{color:#86919f;font-size:12px;line-height:1.45;max-width:78ch}
body .btp-app .btp-results-period-field{display:grid;gap:6px;min-width:0;color:#667486;font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
body .btp-app .btp-results-period-select{width:100%;min-width:0}
body .btp-app .btp-results-period-select .btp-brand-select-trigger{min-height:48px;background:#fff!important;border-color:#e0d6c5!important;color:#1b2b3d!important;box-shadow:none!important}
body .btp-app .btp-results-period-select .btp-brand-select-trigger:hover,
body .btp-app .btp-results-period-select.is-open .btp-brand-select-trigger{background:#fff9ed!important;border-color:#d8ad4b!important;color:#17263a!important}
body .btp-app .btp-results-period-panel{display:grid;gap:16px;min-width:0;margin-bottom:16px}
body .btp-app .btp-results-period-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:3px 2px 0;min-width:0}
body .btp-app .btp-results-period-title>div{display:grid;gap:3px;min-width:0}
body .btp-app .btp-results-period-title span{color:#9d6c12;font-size:12px;font-weight:900;letter-spacing:.14em}
body .btp-app .btp-results-period-title h3{margin:0;color:#152438;font-size:clamp(19px,1.7vw,25px);line-height:1.15;letter-spacing:-.025em}
body .btp-app .btp-results-period-title>small{max-width:44ch;color:#8792a0;font-size:12px;line-height:1.4;text-align:right}
body .btp-app .btp-results-kpis--period{grid-template-columns:repeat(6,minmax(0,1fr))!important;margin-bottom:0!important;gap:9px!important}
body .btp-app .btp-results-kpis--period>article{padding:14px;border-radius:17px;box-shadow:0 8px 22px rgba(17,32,47,.035)}
body .btp-app .btp-results-kpis--period>article>span{font-size:12px;margin-bottom:5px}
body .btp-app .btp-results-kpis--period>article>strong{font-size:clamp(18px,1.45vw,25px)}
body .btp-app .btp-results-kpis--period>article>small{font-size:12px;margin-top:6px}
body .btp-app .btp-results-kpis--period>article.is-realized{border-color:#d9e2dc;background:linear-gradient(145deg,#fff,#f8fcf9)}
body .btp-app .btp-results-kpis--period>article.is-opportunity{border-color:#ead3a1;background:linear-gradient(145deg,#fffdf9,#fff6df)}
body .btp-app .btp-results-kpis--period>article.is-opportunity>strong{color:#a2670b}

body .btp-app .btp-commercial-potential-card{margin:0;padding:21px;border:1px solid #e6dccb;background:linear-gradient(145deg,#fff,#fffaf0);box-shadow:0 14px 32px rgba(17,32,47,.045);min-width:0}
body .btp-app .btp-potential-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
body .btp-app .btp-potential-summary>article{display:grid;gap:5px;min-width:0;padding:15px;border:1px solid #ebe1d1;border-radius:15px;background:#fff}
body .btp-app .btp-potential-summary span{color:#7f8a98;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
body .btp-app .btp-potential-summary strong{color:#18283a;font-size:clamp(19px,2vw,28px);line-height:1.05;letter-spacing:-.03em;overflow-wrap:anywhere}
body .btp-app .btp-potential-summary small{color:#8a95a2;font-size:12px;line-height:1.4}
body .btp-app .btp-potential-summary>article.is-realized{border-color:#d9e2dc;background:#fbfdfb}
body .btp-app .btp-potential-summary>article.is-unrealized{border-color:#e8ca83;background:#fff8e7}
body .btp-app .btp-potential-summary>article.is-unrealized strong{color:#9b6208}
body .btp-app .btp-potential-track{height:11px;margin-top:14px;border-radius:999px;background:#f3e6c9;overflow:hidden;box-shadow:inset 0 1px 2px rgba(17,32,47,.05)}
body .btp-app .btp-potential-track>i{display:block;height:100%;border-radius:inherit;background:#17273b;box-shadow:6px 0 12px rgba(211,161,50,.14)}
body .btp-app .btp-period-finance-note{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:11px;color:#84909f;font-size:12px}
body .btp-app .btp-period-finance-note strong{color:#566374}

body .btp-app .btp-attribution-panel--rich{container-type:inline-size}
body .btp-app .btp-attribution-rich-head{display:grid;grid-template-columns:minmax(145px,1.35fr) repeat(3,minmax(70px,.62fr)) minmax(120px,.95fr);gap:8px;padding:0 11px 7px;color:#98a1ad;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
body .btp-app .btp-attribution-list--rich>article{grid-template-columns:minmax(145px,1.35fr) repeat(3,minmax(70px,.62fr)) minmax(120px,.95fr);gap:8px;padding:11px}
body .btp-app .btp-attribution-list--rich>article>div>small{color:#9aa3af;font-size:12px;line-height:1.3}
body .btp-app .btp-attribution-list--rich .btp-attribution-values strong{color:#26384b!important}
body .btp-app .btp-attribution-list--rich .btp-attribution-values small{color:#a06c11!important;font-weight:800}

body .btp-app .btp-results-overview-grid{align-items:stretch}
body .btp-app .btp-results-rhythm-card{display:flex;flex-direction:column;min-height:100%}
body .btp-app .btp-results-rhythm-card .btp-analytics-mini{margin-top:15px}
body .btp-app .btp-projection-disclaimer{display:block;margin-top:auto;padding-top:14px;color:#8e98a5;font-size:12px;line-height:1.45}
body .btp-app .btp-potential-history-card{container-type:inline-size;min-width:0}
body .btp-app .btp-potential-legend{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin:-4px 0 12px;color:#718092;font-size:12px;font-weight:750}
body .btp-app .btp-potential-legend span{display:inline-flex;align-items:center;gap:6px}
body .btp-app .btp-potential-legend span:before{content:"";width:9px;height:9px;border-radius:3px;background:#17273b}
body .btp-app .btp-potential-legend .is-unrealized:before{background:#d7a434}
body .btp-app .btp-potential-history{display:grid;grid-template-columns:repeat(12,minmax(34px,1fr));align-items:end;gap:7px;min-height:215px;overflow-x:auto;overflow-y:hidden;padding:3px 2px 5px;scrollbar-width:thin;scrollbar-color:#d2ab51 transparent}
body .btp-app .btp-potential-month{display:grid;grid-template-rows:156px auto auto;gap:4px;min-width:34px;text-align:center;align-items:end}
body .btp-app .btp-potential-month-bars{height:156px;display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:4px;border-radius:10px;background:#f7f2e9;overflow:hidden}
body .btp-app .btp-potential-month-bars i{display:block;width:min(10px,42%);min-height:0;border-radius:6px 6px 3px 3px}
body .btp-app .btp-potential-month-bars i.is-realized{background:#17273b}
body .btp-app .btp-potential-month-bars i.is-unrealized{background:linear-gradient(180deg,#ecc461,#cd9222)}
body .btp-app .btp-potential-month>strong{color:#596678;font-size:12px;text-transform:capitalize;white-space:nowrap}
body .btp-app .btp-potential-month>small{color:#98a1ad;font-size:12px;white-space:nowrap}

@container (max-width:760px){
  body .btp-app .btp-attribution-rich-head{display:none}
  body .btp-app .btp-attribution-list--rich>article{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body .btp-app .btp-attribution-list--rich .btp-attribution-name{grid-column:1/-1;padding-bottom:5px;border-bottom:1px solid #eee7dc}
  body .btp-app .btp-attribution-list--rich .btp-attribution-values{grid-column:1/-1}
}
@media(max-width:1320px){body .btp-app .btp-results-kpis--period{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:980px){
  body .btp-app .btp-results-period-toolbar{grid-template-columns:minmax(0,1fr)}
  body .btp-app .btp-results-period-field{max-width:none}
  body .btp-app .btp-potential-summary{grid-template-columns:1fr 1fr}
  body .btp-app .btp-potential-summary>article.is-unrealized{grid-column:1/-1}
}
@media(max-width:720px){
  body .btp-app .btp-results-page-head{align-items:stretch}
  body .btp-app .btp-results-page-head .btp-primary{width:100%}
  body .btp-app .btp-results-period-title{align-items:flex-start;flex-direction:column}
  body .btp-app .btp-results-period-title>small{text-align:left}
  body .btp-app .btp-results-kpis--period{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-potential-summary{grid-template-columns:1fr}
  body .btp-app .btp-potential-summary>article.is-unrealized{grid-column:auto}
  body .btp-app .btp-period-finance-note{align-items:flex-start;flex-direction:column}
  body .btp-app .btp-potential-history{grid-template-columns:repeat(12,minmax(46px,1fr))}
}
@media(max-width:460px){
  body .btp-app .btp-results-period-toolbar{padding:14px}
  body .btp-app .btp-results-kpis--period{grid-template-columns:1fr!important}
  body .btp-app .btp-commercial-potential-card{padding:16px}
}

/* v0.58.48 — Revenue Intelligence refinements.
   Lost opportunity is intentionally separated from still-open potential so the
   user can distinguish a real commercial loss from a deal that may yet close. */
body .btp-app .btp-potential-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
body .btp-app .btp-potential-summary>article.is-lost{
  border-color:#e2bd69;background:linear-gradient(145deg,#fffaf0,#fff0cb);
}
body .btp-app .btp-potential-summary>article.is-lost strong{color:#a56808}
body .btp-app .btp-potential-summary>article.is-open{
  border-color:#e8dfcf;background:#fffdf8;
}
body .btp-app .btp-potential-summary>article.is-open strong{color:#445266}
body .btp-app .btp-attribution-name{min-width:0}
body .btp-app .btp-attribution-outcome-meter{
  display:flex;align-items:stretch;width:100%;height:6px;margin-top:7px;overflow:hidden;border-radius:999px;background:#efe9df;
}
body .btp-app .btp-attribution-outcome-meter>i{display:block;height:100%;min-width:0}
body .btp-app .btp-attribution-outcome-meter>.is-win{background:#17273b}
body .btp-app .btp-attribution-outcome-meter>.is-loss{background:#d7a434}
body .btp-app .btp-attribution-outcome-meter>.is-open{background:#dfe3e8}
@media(max-width:1180px){
  body .btp-app .btp-potential-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  body .btp-app .btp-potential-summary{grid-template-columns:1fr}
  body .btp-app .btp-potential-summary>article:is(.is-lost,.is-open){grid-column:auto}
}

/* ========================================================================
   v0.58.49 — CRM Lifecycle, Client Portfolio & Analytics Motion
   ======================================================================== */

/* Manual lead: the card itself never scrolls. Only the middle content does,
   so the scrollbar cannot cross the rounded footer / dialog corners. */
body .btp-app .btp-manual-lead-card{
  display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;
  overflow:hidden!important;scrollbar-gutter:auto!important;
  padding:0!important;width:min(900px,calc(100vw - 42px))!important;
  max-height:min(880px,calc(100dvh - 42px))!important;
  border-radius:28px!important;
}
body .btp-app .btp-manual-lead-head{padding:27px 34px 18px!important;min-width:0!important}
body .btp-app .btp-manual-lead-close{z-index:6!important;top:16px!important;right:18px!important}
body .btp-app .btp-manual-lead-form{
  min-height:0!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;
  gap:0!important;overflow:hidden!important;
}
body .btp-app .btp-manual-lead-scroll{
  min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:8px 34px 26px!important;scrollbar-gutter:stable!important;overscroll-behavior:contain!important;
  scrollbar-width:thin!important;scrollbar-color:#d7aa42 transparent!important;
}
body .btp-app .btp-manual-lead-scroll::-webkit-scrollbar{width:7px!important}
body .btp-app .btp-manual-lead-scroll::-webkit-scrollbar-track{background:transparent!important;margin:8px 0!important}
body .btp-app .btp-manual-lead-scroll::-webkit-scrollbar-thumb{background:#d7aa42!important;border-radius:999px!important;border:2px solid transparent!important;background-clip:padding-box!important}
body .btp-app .btp-manual-lead-actions{
  position:relative!important;bottom:auto!important;z-index:4!important;margin:0!important;
  padding:13px 34px 17px!important;background:rgba(255,253,248,.96)!important;
  border-top:1px solid #eee4d3!important;box-shadow:0 -12px 28px rgba(33,44,58,.045)!important;
  backdrop-filter:blur(12px)!important;
}
body .btp-app .btp-manual-form-section{margin-top:15px!important;min-width:0!important}
body .btp-app .btp-manual-form-section-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:18px!important;margin-bottom:13px!important;min-width:0!important}
body .btp-app .btp-manual-form-section-head strong{font-size:13px!important;color:#223247!important;white-space:nowrap!important}
body .btp-app .btp-manual-form-section-head small{font-size:12px!important;line-height:1.4!important;color:#8f99a6!important;text-align:right!important;max-width:52ch!important}
body .btp-app .btp-manual-form-grid>label{min-width:0!important}
body .btp-app .btp-manual-form-grid--three>label.is-span-two{grid-column:span 2!important}
body .btp-app .btp-manual-lifecycle-section{background:linear-gradient(145deg,#fffdf8,#fff7e8)!important}
body .btp-app .btp-manual-form-section.is-future{border-color:#e6bd62!important}

/* Lead edit drawer — commercial data is editable without losing the timeline. */
body .btp-app .btp-lead-edit-form{display:grid!important;gap:14px!important}
body .btp-app .btp-lead-edit-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;min-width:0!important}
body .btp-app .btp-lead-edit-grid label{display:grid!important;gap:6px!important;min-width:0!important;color:#667486!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-lead-edit-grid label.wide{grid-column:1/-1!important}
body .btp-app .btp-lead-edit-grid :is(input,select,textarea){width:100%!important;min-width:0!important;border:1px solid #dfe4e9!important;border-radius:12px!important;background:#fff!important;color:#223247!important;padding:10px 11px!important;outline:0!important;font:inherit!important;font-size:12px!important}
body .btp-app .btp-lead-edit-grid :is(input,select,textarea):focus{border-color:#d7aa42!important;box-shadow:0 0 0 3px rgba(215,170,66,.14)!important}
body .btp-app .btp-lead-edit-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:12px!important;min-width:0!important}
body .btp-app .btp-lead-edit-actions>span{margin-right:auto!important;color:#768395!important;font-size:12px!important;line-height:1.35!important}

/* Clients portfolio */
body .btp-app .btp-client-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important}
body .btp-app .btp-client-workspace{padding:18px!important;min-width:0!important}
body .btp-app .btp-client-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin-bottom:17px!important;min-width:0!important}
body .btp-app .btp-client-search{position:relative!important;flex:1 1 360px!important;max-width:560px!important;min-width:180px!important}
body .btp-app .btp-client-search .dashicons{position:absolute!important;left:13px!important;top:50%!important;transform:translateY(-50%)!important;color:#9a7a32!important;pointer-events:none!important}
body .btp-app .btp-client-search input{width:100%!important;min-height:42px!important;padding:0 14px 0 40px!important;border:1px solid #e2e5e9!important;border-radius:14px!important;background:#fff!important;color:#1f2d3f!important;outline:0!important}
body .btp-app .btp-client-search input:focus{border-color:#d7aa42!important;box-shadow:0 0 0 3px rgba(215,170,66,.12)!important}
body .btp-app .btp-client-tabs{display:flex!important;align-items:center!important;gap:5px!important;padding:4px!important;border-radius:14px!important;background:#f5f1e8!important;overflow-x:auto!important;scrollbar-width:none!important}
body .btp-app .btp-client-tabs::-webkit-scrollbar{display:none!important}
body .btp-app .btp-client-tabs button{min-height:34px!important;padding:0 12px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#6f7b89!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important;cursor:pointer!important}
body .btp-app .btp-client-tabs button.is-active{background:#17273b!important;color:#f2c75d!important;box-shadow:0 5px 14px rgba(23,39,59,.15)!important}
body .btp-app .btp-client-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;min-width:0!important}
body .btp-app .btp-client-card{display:grid!important;gap:14px!important;min-width:0!important;padding:17px!important;border:1px solid #e8e3da!important;border-radius:19px!important;background:linear-gradient(150deg,#fff,#fffdf8)!important;box-shadow:0 10px 28px rgba(31,43,58,.055)!important;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important}
body .btp-app .btp-client-card:hover{transform:translateY(-2px)!important;border-color:#dec077!important;box-shadow:0 15px 34px rgba(31,43,58,.085)!important}
body .btp-app .btp-client-card-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;min-width:0!important}
body .btp-app .btp-client-card-head>div{min-width:0!important}
body .btp-app .btp-client-card-head h3{margin:7px 0 2px!important;color:#17273b!important;font-size:15px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
body .btp-app .btp-client-card-head small{display:block!important;color:#8a95a3!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-client-status{display:inline-flex!important;align-items:center!important;gap:6px!important;color:#687586!important;font-size:12px!important;font-weight:900!important;letter-spacing:.04em!important;text-transform:uppercase!important;white-space:nowrap!important}
body .btp-app .btp-client-status i{width:8px!important;height:8px!important;border-radius:50%!important;background:#9aa4af!important;box-shadow:0 0 0 4px rgba(154,164,175,.12)!important}
body .btp-app .btp-client-status.is-active i{background:#3c8a63!important;box-shadow:0 0 0 4px rgba(60,138,99,.12)!important}
body .btp-app .btp-client-status.is-paused i{background:#d2a13a!important;box-shadow:0 0 0 4px rgba(210,161,58,.14)!important}
body .btp-app .btp-client-money{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
body .btp-app .btp-client-money>div{min-width:0!important;padding:11px!important;border-radius:13px!important;background:#f7f4ed!important}
body .btp-app .btp-client-money span{display:block!important;color:#8b95a2!important;font-size:12px!important;white-space:nowrap!important}
body .btp-app .btp-client-money strong{display:block!important;margin-top:4px!important;color:#17273b!important;font-size:14px!important;line-height:1.15!important}
body .btp-app .btp-client-billing{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:11px 12px!important;border:1px solid #eee6d8!important;border-radius:14px!important;background:#fffaf0!important;min-width:0!important}
body .btp-app .btp-client-billing>div{min-width:0!important}
body .btp-app .btp-client-billing span{display:block!important;color:#9a7a32!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important}
body .btp-app .btp-client-billing strong{display:inline-block!important;margin-top:3px!important;color:#233247!important;font-size:12px!important}
body .btp-app .btp-client-billing small{display:block!important;margin-top:2px!important;color:#8b95a1!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-client-billing em{font-style:normal!important;font-size:12px!important;font-weight:900!important;color:#8c6b22!important;white-space:nowrap!important}
body .btp-app .btp-client-billing.is-overdue{border-color:#d7a690!important;background:#fff8f4!important}
body .btp-app .btp-client-billing.is-overdue em{color:#9a4c36!important}
body .btp-app .btp-client-billing.is-today{border-color:#d7aa42!important;background:#fff6dc!important}
body .btp-app .btp-client-card-actions{display:flex!important;gap:8px!important;align-items:center!important}
body .btp-app .btp-client-card-actions>*{flex:1 1 0!important;min-width:0!important;justify-content:center!important}
body .btp-app .btp-client-empty,.btp-app .btp-client-filter-empty{padding:38px 20px!important;text-align:center!important;color:#82909f!important;border:1px dashed #ddd4c5!important;border-radius:17px!important;background:#fffdf9!important}

/* Client modal has the same safe-scroll architecture as the manual CRM modal. */
body .btp-app .btp-client-modal{position:fixed!important;inset:0!important;z-index:100080!important;display:none!important;align-items:center!important;justify-content:center!important;padding:22px!important}
body .btp-app .btp-client-modal.is-open{display:flex!important}
body .btp-app .btp-client-modal-backdrop{position:absolute!important;inset:0!important;border:0!important;background:rgba(10,20,31,.64)!important;backdrop-filter:blur(8px)!important;cursor:default!important}
body .btp-app .btp-client-modal-card{position:relative!important;z-index:2!important;width:min(920px,calc(100vw - 44px))!important;max-height:min(900px,calc(100dvh - 44px))!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important;border:1px solid rgba(226,197,128,.65)!important;border-radius:27px!important;background:#fffdf9!important;box-shadow:0 32px 90px rgba(9,19,30,.28)!important}
body .btp-app .btp-client-modal-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;padding:25px 30px 17px!important;border-bottom:1px solid #eee6d8!important;min-width:0!important}
body .btp-app .btp-client-modal-head>div{min-width:0!important}
body .btp-app .btp-client-modal-head span{color:#a36f10!important;font-size:12px!important;font-weight:900!important;letter-spacing:.12em!important}
body .btp-app .btp-client-modal-head h2{margin:5px 0 4px!important;color:#17273b!important;font-size:24px!important;line-height:1.1!important}
body .btp-app .btp-client-modal-head p{margin:0!important;color:#8b95a2!important;font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-client-modal-close{flex:0 0 38px!important;width:38px!important;height:38px!important;border:1px solid #e7dfd2!important;border-radius:50%!important;background:#fff!important;color:#304055!important;font-size:22px!important;cursor:pointer!important}
body .btp-app .btp-client-form{min-height:0!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;overflow:hidden!important}
body .btp-app .btp-client-form-scroll{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:21px 30px 27px!important;scrollbar-gutter:stable!important;scrollbar-width:thin!important;scrollbar-color:#d7aa42 transparent!important}
body .btp-app .btp-client-form-scroll::-webkit-scrollbar{width:7px!important}
body .btp-app .btp-client-form-scroll::-webkit-scrollbar-thumb{background:#d7aa42!important;border-radius:99px!important;border:2px solid transparent!important;background-clip:padding-box!important}
body .btp-app .btp-client-form-scroll>section{padding:16px!important;margin-bottom:14px!important;border:1px solid #ebe4d9!important;border-radius:17px!important;background:#fff!important}
body .btp-app .btp-client-form-section-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin-bottom:12px!important;min-width:0!important}
body .btp-app .btp-client-form-section-title strong{color:#233247!important;font-size:12px!important;white-space:nowrap!important}
body .btp-app .btp-client-form-section-title small{max-width:48ch!important;color:#8e98a5!important;font-size:12px!important;line-height:1.4!important;text-align:right!important}
body .btp-app .btp-client-form-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
body .btp-app .btp-client-billing-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body .btp-app .btp-client-form-grid label,.btp-app .btp-client-notes,.btp-app .btp-client-payment-box label{display:grid!important;gap:6px!important;min-width:0!important;color:#5f6f82!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-client-form :is(input,select,textarea){width:100%!important;min-width:0!important;border:1px solid #e0e4e8!important;border-radius:12px!important;background:#fff!important;color:#203047!important;padding:10px 11px!important;outline:0!important;font-size:12px!important}
body .btp-app .btp-client-form :is(input,select,textarea):focus{border-color:#d7aa42!important;box-shadow:0 0 0 3px rgba(215,170,66,.13)!important}
body .btp-app .btp-client-notes{margin-top:4px!important}
body .btp-app .btp-client-payment-box{display:grid!important;grid-template-columns:minmax(180px,1.4fr) minmax(120px,.75fr) minmax(120px,.75fr) auto!important;gap:10px!important;align-items:end!important;margin-top:14px!important;padding:15px!important;border:1px solid #e7c979!important;border-radius:16px!important;background:linear-gradient(135deg,#fffaf0,#fff5da)!important}
body .btp-app .btp-client-payment-box>div{align-self:center!important;min-width:0!important}
body .btp-app .btp-client-payment-box>div span{display:block!important;color:#9b6d16!important;font-size:12px!important;font-weight:900!important;letter-spacing:.1em!important}
body .btp-app .btp-client-payment-box>div strong{display:block!important;margin-top:3px!important;color:#203047!important;font-size:12px!important}
body .btp-app .btp-client-payment-box>div small{display:block!important;margin-top:3px!important;color:#8b95a0!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-client-form-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;padding:13px 30px 17px!important;border-top:1px solid #eee6d8!important;background:rgba(255,253,249,.97)!important;box-shadow:0 -12px 28px rgba(33,44,58,.045)!important}

/* Results: denser, more graphical and less repetitive. */
body .btp-app .btp-results-page-head{align-items:flex-end!important}
body .btp-app .btp-results-page-head>div:first-child{max-width:860px!important}
body .btp-app .btp-results-head-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
body .btp-app .btp-results-period-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,340px)!important;align-items:end!important;gap:24px!important;padding:17px 19px!important}
body .btp-app .btp-results-period-copy{min-width:0!important}
body .btp-app .btp-results-period-copy span{display:block!important;color:#a46f0d!important;font-size:12px!important;font-weight:900!important;letter-spacing:.12em!important}
body .btp-app .btp-results-period-copy strong{display:block!important;margin-top:4px!important;color:#1c2b3e!important;font-size:14px!important;line-height:1.25!important}
body .btp-app .btp-results-period-copy small{display:block!important;margin-top:3px!important;color:#909aa6!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-results-period-title{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:16px!important;margin:22px 1px 13px!important;min-width:0!important}
body .btp-app .btp-results-period-title>div{min-width:0!important}
body .btp-app .btp-results-period-title span{color:#a46f0d!important;font-size:12px!important;font-weight:900!important;letter-spacing:.12em!important}
body .btp-app .btp-results-period-title h3{margin:4px 0 0!important;color:#17273b!important;font-size:21px!important;line-height:1.1!important}
body .btp-app .btp-results-period-title>small{color:#8f9aa7!important;font-size:12px!important;white-space:nowrap!important}
body .btp-app .btp-results-kpis--clean{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:9px!important}
body .btp-app .btp-results-kpis--clean article{min-width:0!important;padding:13px 14px!important;border-radius:16px!important}
body .btp-app .btp-results-kpis--clean article>span{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body .btp-app .btp-results-kpis--clean article>strong{font-size:20px!important;white-space:nowrap!important}
body .btp-app .btp-results-kpis--clean article>small{font-size:12px!important;line-height:1.32!important}
body .btp-app .btp-commercial-potential-card--clean{padding:18px!important;overflow:hidden!important}
body .btp-app .btp-potential-summary--lifecycle{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
body .btp-app .btp-potential-summary--lifecycle>article{padding:13px!important;min-width:0!important}
body .btp-app .btp-potential-summary--lifecycle>article span{font-size:12px!important;white-space:nowrap!important}
body .btp-app .btp-potential-summary--lifecycle>article strong{font-size:18px!important;white-space:nowrap!important}
body .btp-app .btp-potential-summary--lifecycle>article small{font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-potential-summary--lifecycle>article.is-future{border-color:#e1cf9e!important;background:#fffaf0!important}
body .btp-app .btp-potential-summary--lifecycle>article.is-future strong{color:#8c6c23!important}
body .btp-app .btp-lifecycle-distribution{display:flex!important;width:100%!important;height:9px!important;margin-top:12px!important;overflow:hidden!important;border-radius:999px!important;background:#edf0f3!important;box-shadow:inset 0 1px 2px rgba(25,39,56,.06)!important}
body .btp-app .btp-lifecycle-distribution i{display:block!important;height:100%!important;width:0!important;transition:width .78s cubic-bezier(.2,.76,.24,1)!important}
body .btp-app [data-btp-chart-animate].is-chart-visible .btp-lifecycle-distribution i{width:var(--share)!important}
body .btp-app .btp-lifecycle-distribution .is-realized{background:#17273b!important}
body .btp-app .btp-lifecycle-distribution .is-open{background:#d5a43a!important}
body .btp-app .btp-lifecycle-distribution .is-future{background:#ead7a3!important}
body .btp-app .btp-lifecycle-distribution .is-lost{background:#8f9aa6!important}
body .btp-app .btp-results-grid--attribution{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body .btp-app .btp-analytics-panel{min-width:0!important;padding:18px!important}
body .btp-app .btp-analytics-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;min-width:0!important}
body .btp-app .btp-analytics-head>div{min-width:0!important}
body .btp-app .btp-analytics-head>small{white-space:nowrap!important}
body .btp-app .btp-chart-legend{display:flex!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important;margin:12px 0 10px!important;color:#7f8995!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-chart-legend span{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important}
body .btp-app .btp-chart-legend span:before{content:""!important;width:7px!important;height:7px!important;border-radius:2px!important;background:#aab3bd!important}
body .btp-app .btp-chart-legend .is-response:before{background:#d5a43a!important}
body .btp-app .btp-chart-legend .is-win:before{background:#17273b!important}
body .btp-app .btp-chart-legend .is-future:before{background:#ead7a3!important;border:1px solid #cdb77e!important}
body .btp-app .btp-chart-legend .is-loss:before{background:#8e99a5!important}
body .btp-app .btp-performance-chart{display:grid!important;gap:7px!important;margin-top:3px!important}
body .btp-app .btp-performance-chart>article{display:grid!important;grid-template-columns:minmax(120px,1.1fr) minmax(170px,2fr) 62px!important;align-items:center!important;gap:11px!important;padding:9px 10px!important;border:1px solid #eee9df!important;border-radius:13px!important;background:#fffdf9!important;min-width:0!important}
body .btp-app .btp-performance-chart-label{min-width:0!important}
body .btp-app .btp-performance-chart-label strong{display:block!important;color:#27364a!important;font-size:12px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
body .btp-app .btp-performance-chart-label small{display:block!important;margin-top:2px!important;color:#98a1ac!important;font-size:12px!important}
body .btp-app .btp-performance-bars{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;min-width:0!important}
body .btp-app .btp-performance-bars span{height:6px!important;overflow:hidden!important;border-radius:999px!important;background:#edf0f3!important}
body .btp-app .btp-performance-bars i{display:block!important;width:0!important;height:100%!important;border-radius:inherit!important;transition:width .72s cubic-bezier(.2,.76,.24,1)!important}
body .btp-app [data-btp-chart-animate].is-chart-visible .btp-performance-bars i{width:var(--value)!important}
body .btp-app .btp-performance-bars .is-response{background:#d5a43a!important}
body .btp-app .btp-performance-bars .is-win{background:#17273b!important}
body .btp-app .btp-performance-bars .is-future{background:#dcc88f!important}
body .btp-app .btp-performance-bars .is-loss{background:#8f99a5!important}
body .btp-app .btp-performance-rate{text-align:right!important}
body .btp-app .btp-performance-rate strong{display:block!important;color:#17273b!important;font-size:12px!important}
body .btp-app .btp-performance-rate small{display:block!important;color:#9aa3ad!important;font-size:12px!important}
body .btp-app .btp-combo-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin-top:13px!important}
body .btp-app .btp-combo-grid article{position:relative!important;overflow:hidden!important;min-width:0!important;padding:12px!important;border:1px solid rgba(199,158,62,.24)!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(240,200,104,var(--heat)))!important;box-shadow:inset 0 -22px 44px rgba(216,165,54,calc(var(--heat)*.10))!important;transform:translateY(7px)!important;opacity:0!important;transition:opacity .42s ease,transform .52s cubic-bezier(.2,.76,.24,1)!important}
body .btp-app .btp-combo-chart.is-chart-visible .btp-combo-grid article{opacity:1!important;transform:none!important}
body .btp-app .btp-combo-grid article:nth-child(2){transition-delay:.05s!important}.btp-app .btp-combo-grid article:nth-child(3){transition-delay:.10s!important}.btp-app .btp-combo-grid article:nth-child(4){transition-delay:.15s!important}.btp-app .btp-combo-grid article:nth-child(5){transition-delay:.20s!important}.btp-app .btp-combo-grid article:nth-child(6){transition-delay:.25s!important}
body .btp-app .btp-combo-grid strong{display:block!important;color:#26354a!important;font-size:12px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
body .btp-app .btp-combo-grid span{display:block!important;margin-top:8px!important;color:#8d6616!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important}
body .btp-app .btp-combo-grid small{display:block!important;margin-top:2px!important;color:#87929e!important;font-size:12px!important;line-height:1.3!important}
body .btp-app .btp-loss-reason-list{display:grid!important;gap:8px!important;margin-top:12px!important}
body .btp-app .btp-loss-reason-list article{display:grid!important;grid-template-columns:minmax(170px,1.1fr) minmax(220px,2fr)!important;align-items:center!important;gap:15px!important;min-width:0!important}
body .btp-app .btp-loss-reason-copy{min-width:0!important}.btp-app .btp-loss-reason-copy strong{display:block!important;color:#25354a!important;font-size:12px!important;line-height:1.25!important}.btp-app .btp-loss-reason-copy small{display:block!important;margin-top:2px!important;color:#959fac!important;font-size:12px!important}
body .btp-app .btp-loss-reason-meter{height:7px!important;overflow:hidden!important;border-radius:999px!important;background:#edf0f3!important}
body .btp-app .btp-loss-reason-meter i{display:block!important;width:0!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(90deg,#8f99a5,#d4a23b)!important;transition:width .76s cubic-bezier(.2,.76,.24,1)!important}
body .btp-app .btp-loss-reasons-panel.is-chart-visible .btp-loss-reason-meter i{width:var(--value)!important}

/* 12-month chart: actual plotting area with grid, two bar series and an SVG line. */
body .btp-app .btp-potential-history-card--chart{overflow:hidden!important}
body .btp-app .btp-history-legend{display:flex!important;gap:11px!important;flex-wrap:wrap!important;justify-content:flex-end!important;color:#7f8996!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-history-legend span{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important}
body .btp-app .btp-history-legend span:before{content:""!important;width:8px!important;height:8px!important;border-radius:2px!important;background:#17273b!important}
body .btp-app .btp-history-legend .is-opportunity:before{background:#d5a43a!important}.btp-app .btp-history-legend .is-line:before{height:2px!important;border-radius:999px!important;background:#69798b!important}
body .btp-app .btp-tech-chart{position:relative!important;min-height:285px!important;margin-top:15px!important;padding:14px 8px 0!important;border:1px solid #eee7dc!important;border-radius:16px!important;background:repeating-linear-gradient(to top,transparent 0,transparent 49px,rgba(97,112,129,.08) 50px),linear-gradient(180deg,#fff,#fffdf9)!important;overflow:hidden!important}
body .btp-app .btp-tech-chart-bars{position:relative!important;z-index:2!important;display:grid!important;grid-template-columns:repeat(12,minmax(34px,1fr))!important;align-items:end!important;gap:6px!important;height:248px!important;min-width:620px!important}
body .btp-app .btp-tech-chart-bars article{display:grid!important;grid-template-rows:194px auto auto!important;gap:4px!important;min-width:0!important;text-align:center!important;align-items:end!important}
body .btp-app .btp-tech-chart-bars article>div{height:194px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;gap:3px!important;min-width:0!important}
body .btp-app .btp-tech-chart-bars i{display:block!important;width:min(12px,40%)!important;height:0!important;border-radius:5px 5px 2px 2px!important;transition:height .84s cubic-bezier(.2,.76,.24,1)!important;box-shadow:0 5px 12px rgba(31,45,62,.06)!important}
body .btp-app .btp-tech-chart-bars .is-potential{background:linear-gradient(180deg,#f0ca6a,#cf9828)!important}
body .btp-app .btp-tech-chart-bars .is-realized{background:linear-gradient(180deg,#263a52,#142337)!important}
body .btp-app .btp-potential-history-card.is-chart-visible .btp-tech-chart-bars i{height:var(--height)!important}
body .btp-app .btp-tech-chart-bars strong{color:#5f6c7c!important;font-size:12px!important;white-space:nowrap!important}.btp-app .btp-tech-chart-bars small{color:#9aa3ae!important;font-size:12px!important;white-space:nowrap!important}
body .btp-app .btp-tech-chart-line{position:absolute!important;z-index:3!important;left:8px!important;right:8px!important;top:14px!important;width:calc(100% - 16px)!important;height:194px!important;overflow:visible!important;pointer-events:none!important}
body .btp-app .btp-tech-chart-line polyline{fill:none!important;stroke:#69798b!important;stroke-width:3!important;stroke-linecap:round!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke!important;stroke-dasharray:1800!important;stroke-dashoffset:1800!important;transition:stroke-dashoffset 1.05s cubic-bezier(.2,.76,.24,1) .15s!important;filter:drop-shadow(0 2px 3px rgba(30,47,65,.12))!important}
body .btp-app .btp-potential-history-card.is-chart-visible .btp-tech-chart-line polyline{stroke-dashoffset:0!important}
body .btp-app .btp-results-methodology{padding:0!important;overflow:hidden!important}
body .btp-app .btp-results-methodology summary{display:flex!important;align-items:center!important;gap:9px!important;padding:14px 17px!important;cursor:pointer!important;list-style:none!important}.btp-app .btp-results-methodology summary::-webkit-details-marker{display:none!important}
body .btp-app .btp-results-methodology summary>span{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:10px!important;background:#fff4d8!important;color:#9d711d!important}.btp-app .btp-results-methodology summary strong{color:#2a394c!important;font-size:12px!important}.btp-app .btp-results-methodology summary em{margin-left:auto!important;color:#9aa3ad!important;font-style:normal!important;font-size:12px!important;white-space:nowrap!important}.btp-app .btp-results-methodology>div{padding:0 17px 15px!important;color:#7e8a98!important;font-size:12px!important;line-height:1.5!important}.btp-app .btp-results-methodology>div p{margin:5px 0!important}

/* Pipeline receives the seventh active stage without card overflow. */
body .btp-app .btp-view[data-view="pipeline"] .btp-pipeline{min-width:0!important}
body .btp-app .btp-pipe-col{min-width:0!important}
body .btp-app .btp-pipe-card{min-width:0!important}

@media(max-width:1360px){
  body .btp-app .btp-client-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-client-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-results-kpis--clean{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-combo-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:1080px){
  body .btp-app .btp-results-grid--attribution{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-potential-summary--lifecycle{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-client-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-client-billing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-client-payment-box{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-client-payment-box>div{grid-column:1/-1!important}
}
@media(max-width:820px){
  body .btp-app .btp-manual-lead-card{width:min(720px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;border-radius:22px!important}
  body .btp-app .btp-manual-lead-head{padding:23px 21px 15px!important}
  body .btp-app .btp-manual-lead-scroll{padding:7px 21px 22px!important}
  body .btp-app .btp-manual-lead-actions{padding:12px 21px 15px!important}
  body .btp-app .btp-manual-form-grid--three{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-client-toolbar{align-items:stretch!important;flex-direction:column!important}
  body .btp-app .btp-client-search{max-width:none!important;width:100%!important}
  body .btp-app .btp-client-tabs{width:100%!important}
  body .btp-app .btp-client-tabs button{flex:1 0 auto!important}
  body .btp-app .btp-client-grid{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-client-modal{padding:12px!important}
  body .btp-app .btp-client-modal-card{width:100%!important;max-height:calc(100dvh - 24px)!important}
  body .btp-app .btp-client-modal-head{padding:21px 19px 15px!important}.btp-app .btp-client-form-scroll{padding:17px 19px 22px!important}.btp-app .btp-client-form-actions{padding:12px 19px 15px!important}
  body .btp-app .btp-results-period-toolbar{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  body .btp-app .btp-results-period-field{max-width:none!important}
  body .btp-app .btp-performance-chart>article{grid-template-columns:minmax(100px,1fr) minmax(150px,1.7fr) 58px!important}
  body .btp-app .btp-combo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-tech-chart{overflow-x:auto!important;overscroll-behavior-x:contain!important}
}
@media(max-width:620px){
  body .btp-app .btp-manual-lead-card{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
  body .btp-app .btp-manual-lead-head{padding:22px 16px 14px!important;padding-right:54px!important}
  body .btp-app .btp-manual-lead-scroll{padding:6px 16px 20px!important;scrollbar-gutter:auto!important}
  body .btp-app .btp-manual-lead-actions{padding:11px 16px 14px!important}
  body .btp-app .btp-manual-form-grid,.btp-app .btp-manual-form-grid--three{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-manual-form-grid>label.is-wide,.btp-app .btp-manual-form-grid--three>label.is-wide,.btp-app .btp-manual-form-grid--three>label.is-span-two{grid-column:auto!important}
  body .btp-app .btp-manual-form-section-head{display:grid!important;gap:4px!important}.btp-app .btp-manual-form-section-head small{text-align:left!important;max-width:none!important}
  body .btp-app .btp-lead-edit-grid{grid-template-columns:minmax(0,1fr)!important}.btp-app .btp-lead-edit-grid label.wide{grid-column:auto!important}
  body .btp-app .btp-client-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-client-card-actions{flex-direction:column!important}.btp-app .btp-client-card-actions>*{width:100%!important}
  body .btp-app .btp-client-modal{padding:0!important}.btp-app .btp-client-modal-card{height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.btp-app .btp-client-modal-head{padding:20px 15px 14px!important}.btp-app .btp-client-form-scroll{padding:15px!important;scrollbar-gutter:auto!important}.btp-app .btp-client-form-actions{padding:11px 15px 13px!important}.btp-app .btp-client-form-grid,.btp-app .btp-client-billing-grid{grid-template-columns:minmax(0,1fr)!important}.btp-app .btp-client-form-section-title{display:grid!important;gap:3px!important}.btp-app .btp-client-form-section-title small{text-align:left!important;max-width:none!important}.btp-app .btp-client-payment-box{grid-template-columns:minmax(0,1fr)!important}.btp-app .btp-client-payment-box>div{grid-column:auto!important}
  body .btp-app .btp-results-head-actions{width:100%!important;justify-content:stretch!important}.btp-app .btp-results-head-actions>*{flex:1 1 0!important;justify-content:center!important;min-width:0!important}
  body .btp-app .btp-results-kpis--clean{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-potential-summary--lifecycle{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-performance-chart>article{grid-template-columns:minmax(0,1fr) 56px!important;gap:8px!important}.btp-app .btp-performance-bars{grid-column:1/-1!important;grid-row:2!important}.btp-app .btp-performance-rate{grid-column:2!important;grid-row:1!important}.btp-app .btp-combo-grid{grid-template-columns:minmax(0,1fr)!important}.btp-app .btp-loss-reason-list article{grid-template-columns:minmax(0,1fr)!important;gap:6px!important}.btp-app .btp-results-period-title{align-items:flex-start!important;flex-direction:column!important;gap:4px!important}.btp-app .btp-results-period-title>small{white-space:normal!important}
}
@media(max-width:420px){body .btp-app .btp-client-kpis,.btp-app .btp-results-kpis--clean{grid-template-columns:minmax(0,1fr)!important}}
@media(prefers-reduced-motion:reduce){
  body .btp-app [data-btp-chart-animate] :is(i,article,polyline){transition-duration:.001ms!important;transition-delay:0ms!important}
  body .btp-app [data-btp-chart-animate] .btp-lifecycle-distribution i{width:var(--share)!important}
  body .btp-app [data-btp-chart-animate] .btp-performance-bars i,body .btp-app [data-btp-chart-animate] .btp-loss-reason-meter i{width:var(--value)!important}
  body .btp-app [data-btp-chart-animate] .btp-tech-chart-bars i{height:var(--height)!important}
  body .btp-app [data-btp-chart-animate] .btp-tech-chart-line polyline{stroke-dashoffset:0!important}
  body .btp-app .btp-combo-grid article{opacity:1!important;transform:none!important}
}
/* v0.58.49 proposal conversion layer */
body .btp-app .btp-chart-legend .is-proposal:before{background:#b88722!important;box-shadow:0 0 0 2px rgba(184,135,34,.12)!important}
body .btp-app .btp-performance-bars{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body .btp-app .btp-performance-bars .is-proposal{background:linear-gradient(90deg,#e6c46f,#b88722)!important}
/* v0.58.49 in-app collection reminder */
body .btp-app .btp-dashboard-billing-alert{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:13px!important;padding:14px 17px!important;border-color:#ead49d!important;background:linear-gradient(105deg,#fffaf0,#fffdf9 65%,#f7edd4)!important}
body .btp-app .btp-dashboard-billing-alert.is-overdue{border-color:#dfb49e!important;background:linear-gradient(105deg,#fff8f3,#fffdf9 65%,#f9e8dd)!important}
body .btp-app .btp-dashboard-billing-alert-icon{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:12px!important;background:#17273b!important;color:#e5bd54!important}
body .btp-app .btp-dashboard-billing-alert>div{min-width:0!important}.btp-app .btp-dashboard-billing-alert>div>span{display:block!important;color:#a27518!important;font-size:12px!important;font-weight:900!important;letter-spacing:.11em!important;white-space:nowrap!important}.btp-app .btp-dashboard-billing-alert>div>strong{display:block!important;margin-top:2px!important;color:#17273b!important;font-size:13px!important;line-height:1.25!important}.btp-app .btp-dashboard-billing-alert>div>small{display:block!important;margin-top:2px!important;color:#84909d!important;font-size:12px!important;line-height:1.35!important}
@media(max-width:620px){body .btp-app .btp-dashboard-billing-alert{grid-template-columns:auto minmax(0,1fr)!important}.btp-app .btp-dashboard-billing-alert>button{grid-column:1/-1!important;width:100%!important;justify-content:center!important}.btp-app .btp-dashboard-billing-alert>div>span{white-space:normal!important}}

/* v0.58.50 — client runtime resilience and payment history */
body .btp-app .btp-client-workspace[data-btp-client-runtime="ready"] .btp-client-tabs button{transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease!important}
body .btp-app .btp-client-workspace[data-btp-client-runtime="ready"] .btp-client-tabs button:active{transform:translateY(1px)!important}
body .btp-app .btp-client-history-section{display:grid!important;gap:11px!important;min-width:0!important;padding-top:2px!important}
body .btp-app .btp-client-payment-history{display:grid!important;gap:8px!important;min-width:0!important}
body .btp-app .btp-client-history-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;min-width:0!important;padding:11px 12px!important;border:1px solid #ece5d8!important;border-radius:13px!important;background:#fffdf9!important}
body .btp-app .btp-client-history-row>div{min-width:0!important}
body .btp-app .btp-client-history-row strong{display:block!important;color:#243448!important;font-size:12px!important;line-height:1.25!important}
body .btp-app .btp-client-history-row small{display:block!important;margin-top:2px!important;color:#8b96a3!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-client-history-row b{flex:0 0 auto!important;color:#9d711d!important;font-size:12px!important;white-space:nowrap!important}
body .btp-app .btp-client-history-empty{padding:13px!important;border:1px dashed #dfd6c7!important;border-radius:12px!important;background:#fffdf9!important;color:#8a95a2!important;font-size:12px!important;text-align:center!important;line-height:1.4!important}
body .btp-app .btp-client-history-empty.is-error{border-color:#e3b9aa!important;background:#fff8f5!important;color:#9a4c36!important}
body .btp-app .btp-client-billing small{overflow-wrap:normal!important;word-break:normal!important}
body .btp-app .btp-client-filter-empty{min-height:96px!important;display:grid!important;place-items:center!important;line-height:1.4!important}
body .btp-app .btp-client-filter-empty[hidden]{display:none!important}
@media(max-width:620px){body .btp-app .btp-client-history-row{align-items:flex-start!important}.btp-app .btp-client-history-row b{font-size:12px!important}}

/* v0.58.51 — complete funnel outcomes + explicit result confirmation */
body .btp-app .btp-pipeline-outcomes{
  display:grid!important;gap:13px!important;min-width:0!important;padding:16px!important;
  border:1px solid rgba(210,181,119,.28)!important;border-radius:22px!important;
  background:linear-gradient(135deg,rgba(255,253,248,.98),rgba(248,244,235,.92))!important;
  box-shadow:0 14px 34px rgba(20,31,48,.055)!important;
}
body .btp-app .btp-pipeline-outcomes[hidden]{display:none!important}
body .btp-app .btp-pipeline-outcomes-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:18px!important;min-width:0!important}
body .btp-app .btp-pipeline-outcomes-head>div{min-width:0!important}
body .btp-app .btp-pipeline-outcomes-head>div>span{display:block!important;color:#9f7118!important;font-size:12px!important;font-weight:900!important;letter-spacing:.12em!important;white-space:nowrap!important}
body .btp-app .btp-pipeline-outcomes-head h3{margin:3px 0 0!important;color:#17273b!important;font-size:20px!important;line-height:1.15!important;font-weight:500!important}
body .btp-app .btp-pipeline-outcomes-head p{max-width:820px!important;margin:5px 0 0!important;color:#87929f!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-pipeline-outcomes-head .btp-ghost{flex:0 0 auto!important;min-height:38px!important;padding:0 13px!important;white-space:nowrap!important}
body .btp-app .btp-pipeline-terminal-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;min-width:0!important}
body .btp-app .btp-pipe-col--terminal{min-height:0!important;max-height:none!important;overflow:hidden!important;padding:13px!important;background:rgba(255,255,255,.78)!important;border:1px solid #e9e3d8!important;box-shadow:none!important}
body .btp-app .btp-pipe-col--terminal.is-won{border-color:rgba(191,146,51,.34)!important;background:linear-gradient(180deg,#fffefb,#fff9e9)!important}
body .btp-app .btp-pipe-col--terminal.is-lost{border-color:#e4e1da!important;background:linear-gradient(180deg,#fff,#f8f8f6)!important}
body .btp-app .btp-pipe-col--terminal h3{margin-bottom:10px!important}
body .btp-app .btp-pipe-col--terminal.is-won h3 small,body .btp-app .btp-pipe-col--terminal.is-won h3 em{color:#9d711d!important}
body .btp-app .btp-pipe-list--terminal{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;max-height:310px!important;overflow-y:auto!important;overflow-x:hidden!important;padding:2px 5px 2px 0!important;scrollbar-gutter:stable!important;scrollbar-width:thin!important;scrollbar-color:rgba(191,146,51,.44) transparent!important}
body .btp-app .btp-pipe-list--terminal::-webkit-scrollbar{width:6px!important}
body .btp-app .btp-pipe-list--terminal::-webkit-scrollbar-track{background:transparent!important}
body .btp-app .btp-pipe-list--terminal::-webkit-scrollbar-thumb{background:rgba(191,146,51,.42)!important;border-radius:999px!important}
body .btp-app .btp-pipe-list--terminal .btp-pipe-empty{grid-column:1/-1!important;min-height:78px!important}
body .btp-app .btp-pipe-card.is-terminal{margin:0!important;min-height:0!important;padding:11px!important}
body .btp-app .btp-pipe-card.is-terminal.is-won{box-shadow:inset 3px 0 0 #d5a43a,0 8px 18px rgba(24,36,50,.035)!important}
body .btp-app .btp-pipe-card.is-terminal.is-lost{box-shadow:inset 3px 0 0 #9ca4ad,0 8px 18px rgba(24,36,50,.025)!important}
body .btp-app .btp-pipe-result-badge,body .btp-app .btp-pipe-future-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;width:max-content!important;max-width:100%!important;min-height:24px!important;padding:0 8px!important;border-radius:999px!important;font-size:12px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important}
body .btp-app .btp-pipe-result-badge.is-won{background:#17273b!important;color:#f0c965!important;border:1px solid rgba(240,201,101,.17)!important}
body .btp-app .btp-pipe-result-badge.is-lost{background:#f1f2f2!important;color:#596675!important;border:1px solid #e0e3e5!important}
body .btp-app .btp-pipe-result-badge .btp-btn-svg{width:12px!important;height:12px!important;filter:none!important}
body .btp-app .btp-pipe-future-badge{background:#fff5dc!important;color:#986809!important;border:1px solid rgba(184,129,24,.16)!important}
body .btp-app .btp-pipe-future-review{display:block!important;margin-top:5px!important;color:#9c7424!important;font-size:12px!important;font-weight:800!important;line-height:1.25!important}

body .btp-app .btp-pipeline-outcome-modal{position:fixed!important;z-index:100020!important;inset:0!important;display:none!important;align-items:center!important;justify-content:center!important;padding:22px!important}
body .btp-app .btp-pipeline-outcome-modal.is-open{display:flex!important}
body .btp-app .btp-pipeline-outcome-backdrop{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;background:rgba(13,24,37,.57)!important;backdrop-filter:blur(8px)!important;cursor:default!important}
body .btp-app .btp-pipeline-outcome-card{position:relative!important;z-index:1!important;display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;width:min(700px,calc(100vw - 44px))!important;max-height:min(760px,calc(100dvh - 44px))!important;overflow:hidden!important;border:1px solid rgba(215,167,65,.35)!important;border-radius:25px!important;background:#fffdf9!important;box-shadow:0 30px 90px rgba(12,24,38,.25)!important}
body .btp-app .btp-pipeline-outcome-close{position:absolute!important;z-index:4!important;top:16px!important;right:16px!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;padding:0!important;border-radius:50%!important;border:1px solid #e8e0d2!important;background:#fff!important;color:#243448!important;font-size:22px!important;line-height:1!important}
body .btp-app .btp-pipeline-outcome-head{padding:24px 62px 15px 24px!important;border-bottom:1px solid #eee7da!important}
body .btp-app .btp-pipeline-outcome-head>span{display:block!important;color:#a27418!important;font-size:12px!important;font-weight:900!important;letter-spacing:.12em!important}
body .btp-app .btp-pipeline-outcome-head h2{margin:5px 0 0!important;color:#17273b!important;font-size:27px!important;line-height:1.12!important;font-weight:500!important}
body .btp-app .btp-pipeline-outcome-head p{margin:6px 0 0!important;color:#87929e!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-pipeline-outcome-form{display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;min-height:0!important}
body .btp-app .btp-pipeline-outcome-scroll{min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:18px 24px 22px!important;scrollbar-gutter:stable!important;scrollbar-width:thin!important;scrollbar-color:rgba(191,146,51,.45) transparent!important}
body .btp-app .btp-pipeline-outcome-scroll::-webkit-scrollbar{width:6px!important}
body .btp-app .btp-pipeline-outcome-scroll::-webkit-scrollbar-thumb{background:rgba(191,146,51,.42)!important;border-radius:999px!important}
body .btp-app .btp-pipeline-outcome-company{display:grid!important;gap:3px!important;margin-bottom:14px!important;padding:12px 13px!important;border:1px solid #ece4d5!important;border-radius:14px!important;background:#fff9ea!important}
body .btp-app .btp-pipeline-outcome-company span{color:#a27418!important;font-size:12px!important;font-weight:900!important;letter-spacing:.1em!important}
body .btp-app .btp-pipeline-outcome-company strong{color:#243448!important;font-size:13px!important;line-height:1.3!important}
body .btp-app .btp-pipeline-outcome-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;min-width:0!important}
body .btp-app .btp-pipeline-outcome-grid label{display:grid!important;gap:6px!important;min-width:0!important;color:#435064!important;font-size:12px!important;font-weight:800!important}
body .btp-app .btp-pipeline-outcome-grid label.is-wide{grid-column:1/-1!important}
body .btp-app .btp-pipeline-outcome-grid :is(input,select){width:100%!important;min-width:0!important;height:45px!important;padding:0 13px!important;border:1px solid #dfe3e7!important;border-radius:13px!important;background:#fff!important;color:#243448!important;font:inherit!important;font-size:12px!important;outline:0!important;box-sizing:border-box!important}
body .btp-app .btp-pipeline-outcome-grid :is(input,select):focus{border-color:#d4aa52!important;box-shadow:0 0 0 3px rgba(212,170,82,.13)!important}
body .btp-app .btp-pipeline-outcome-note{margin-top:13px!important;padding:11px 12px!important;border:1px solid #ead8a9!important;border-radius:12px!important;background:#fff9e9!important;color:#7f692f!important;font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-pipeline-outcome-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;padding:12px 24px 15px!important;border-top:1px solid #eee7da!important;background:#fffaf1!important}
body .btp-app .btp-pipeline-outcome-actions :is(.btp-ghost,.btp-primary){min-height:43px!important;padding:0 17px!important}

@container btp-content (max-width:900px){
  body .btp-app .btp-pipe-list--terminal{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:720px){
  body .btp-app .btp-pipeline-outcomes{padding:13px!important;border-radius:19px!important}
  body .btp-app .btp-pipeline-outcomes-head{align-items:stretch!important;flex-direction:column!important;gap:10px!important}
  body .btp-app .btp-pipeline-outcomes-head .btp-ghost{width:100%!important;justify-content:center!important}
  body .btp-app .btp-pipeline-terminal-grid{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-pipe-list--terminal{max-height:360px!important;scrollbar-gutter:auto!important}
  body .btp-app .btp-pipeline-outcome-modal{padding:10px!important}
  body .btp-app .btp-pipeline-outcome-card{width:100%!important;max-height:calc(100dvh - 20px)!important;border-radius:20px!important}
  body .btp-app .btp-pipeline-outcome-head{padding:21px 54px 13px 16px!important}
  body .btp-app .btp-pipeline-outcome-head h2{font-size:23px!important}
  body .btp-app .btp-pipeline-outcome-scroll{padding:15px 16px 18px!important;scrollbar-gutter:auto!important}
  body .btp-app .btp-pipeline-outcome-grid{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-pipeline-outcome-grid label.is-wide{grid-column:auto!important}
  body .btp-app .btp-pipeline-outcome-actions{padding:11px 16px 13px!important}
  body .btp-app .btp-pipeline-outcome-actions>*{flex:1 1 0!important;justify-content:center!important;min-width:0!important}
}
@media(max-width:430px){
  body .btp-app .btp-pipeline-outcome-modal{padding:0!important}
  body .btp-app .btp-pipeline-outcome-card{height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
}

/* v0.58.51 — terminal-card financial context */
.btp-pipe-outcome-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}
.btp-pipe-outcome-meta span{display:inline-flex;align-items:center;min-height:25px;padding:4px 8px;border:1px solid rgba(179,128,23,.2);border-radius:999px;background:rgba(255,250,238,.78);font-size:12px;font-weight:800;line-height:1;color:#7b5700;white-space:nowrap}
.btp-pipe-card.is-won .btp-pipe-outcome-meta span{border-color:rgba(18,39,64,.12);color:#132842;background:rgba(255,255,255,.72)}
.btp-pipe-loss-reason{display:-webkit-box!important;margin-top:7px;max-width:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;color:#778291!important;line-height:1.4!important;overflow-wrap:anywhere}
@media (max-width:560px){.btp-pipe-outcome-meta{gap:6px}.btp-pipe-outcome-meta span{font-size:12px;padding:4px 7px}}

/* v0.58.52 — international revenue intelligence */
.btp-market-intelligence{overflow:hidden}
.btp-market-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.btp-market-compare-card{position:relative;overflow:hidden;padding:18px;border:1px solid #e8e1d4;border-radius:19px;background:linear-gradient(180deg,#fff,#fffaf0);min-width:0}
.btp-market-compare-card.is-international{background:linear-gradient(180deg,#fff,#f6f8fa);border-color:#e1e5e9}
.btp-market-compare-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.btp-market-compare-card>div:first-child span{font-size:12px;letter-spacing:.1em;font-weight:900;color:#9b6a00;text-transform:uppercase;white-space:nowrap}
.btp-market-compare-card>div:first-child strong{font-size:15px;color:var(--btp-ink);white-space:nowrap}
.btp-market-compare-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}
.btp-market-compare-metrics span{display:grid;gap:3px;min-width:0}.btp-market-compare-metrics b{font-size:18px;color:var(--btp-navy);overflow-wrap:anywhere}.btp-market-compare-metrics small{font-size:12px;color:#8994a0}
.btp-market-mini-bar{height:7px;margin-top:14px;border-radius:999px;background:#edf0f2;overflow:hidden}.btp-market-mini-bar i{display:block;width:var(--value,0%);height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--btp-gold),var(--btp-gold-2));transform-origin:left center;animation:btpIntlBar .72s cubic-bezier(.2,.8,.2,1) both}
@keyframes btpIntlBar{from{transform:scaleX(0);opacity:.45}to{transform:scaleX(1);opacity:1}}
.btp-currency-mix{margin-top:16px;padding-top:16px;border-top:1px solid #ece8e0}.btp-market-subhead{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:10px}.btp-market-subhead strong{color:var(--btp-ink);font-size:13px}.btp-market-subhead small{color:#919aa4;font-size:12px;text-align:right}
.btp-currency-mix-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.btp-currency-mix-grid article{display:grid;gap:3px;padding:13px;border:1px solid #ece7dd;border-radius:15px;background:#fff;min-width:0}.btp-currency-mix-grid article>span{font-size:12px;font-weight:900;letter-spacing:.1em;color:#987019}.btp-currency-mix-grid article>strong{font-size:14px;color:var(--btp-ink);overflow-wrap:anywhere}.btp-currency-mix-grid article>small{color:#8d98a4;font-size:12px}.btp-currency-mix-grid article>em{font-style:normal;color:#647285;font-size:12px}
.btp-market-breakdowns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.btp-market-breakdowns>div{min-width:0}.btp-market-breakdowns>div>strong{display:block;margin-bottom:8px;color:#344357;font-size:12px}.btp-market-chip-list{display:flex;gap:7px;flex-wrap:wrap}.btp-market-chip-list span{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 9px;border:1px solid #e8e5de;border-radius:999px;background:#fff;color:#697687;font-size:12px;white-space:nowrap}.btp-market-chip-list b{color:#9b6a00;font-size:12px}
.btp-market-fx-warning,.btp-client-fx-alert{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:15px;padding:11px 13px;border:1px solid #ead8a9;border-radius:14px;background:#fff9e9;color:#745f2c}.btp-market-fx-warning strong,.btp-client-fx-alert strong{font-size:12px}.btp-market-fx-warning span,.btp-client-fx-alert span{font-size:12px;line-height:1.45;color:#8c7743;text-align:right}

.btp-client-financial-strip{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:14px;margin:-2px 0 18px}.btp-client-currency-summary,.btp-client-aging{padding:17px 18px;border:1px solid rgba(255,255,255,.65);border-radius:21px;background:rgba(255,255,255,.9);box-shadow:var(--btp-shadow-soft);min-width:0}.btp-client-currency-summary>div:first-child,.btp-client-aging>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.btp-client-currency-summary>div:first-child span,.btp-client-aging>div:first-child span{font-size:12px;letter-spacing:.12em;font-weight:900;color:#9b6a00}.btp-client-currency-summary>div:first-child strong,.btp-client-aging>div:first-child strong{font-size:12px;color:#536174;white-space:nowrap}
.btp-client-currency-chips{display:flex;flex-wrap:wrap;gap:8px}.btp-client-currency-chips>span{display:grid;grid-template-columns:auto auto;gap:2px 6px;align-items:center;padding:8px 10px;border:1px solid #ece4d5;border-radius:13px;background:#fffaf0;color:#586679;font-size:12px;min-width:0}.btp-client-currency-chips b{color:#182a40}.btp-client-currency-chips small{grid-column:1/-1;color:#9a8e77;font-size:12px}
.btp-client-aging-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.btp-client-aging-grid span{display:grid;gap:2px;padding:8px;border:1px solid #ece8e2;border-radius:12px;background:#fff;min-width:0;text-align:center;color:#17283e;font-weight:900;font-size:14px}.btp-client-aging-grid b{font-size:12px;color:#7b8794;white-space:nowrap}.btp-client-aging-grid small{font-size:12px;font-weight:600;color:#a16f0c;white-space:nowrap}
.btp-client-financial-strip>.btp-client-fx-alert{grid-column:1/-1;margin:0}

.btp-pipe-outcome-meta span small{margin-left:5px;font-size:12px;font-weight:700;color:#8a96a2;white-space:nowrap}
.btp-pipeline-outcome-grid label>small{display:inline;font-size:12px;color:#9b6a00;font-weight:900;letter-spacing:.05em}

@container btp-content (max-width:1000px){.btp-currency-mix-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.btp-client-financial-strip{grid-template-columns:minmax(0,1fr)}.btp-client-financial-strip>.btp-client-fx-alert{grid-column:auto}}
@media(max-width:760px){.btp-market-compare-grid,.btp-market-breakdowns{grid-template-columns:minmax(0,1fr)}.btp-market-compare-card>div:first-child{align-items:flex-start;flex-direction:column}.btp-market-compare-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.btp-market-subhead{align-items:flex-start;flex-direction:column}.btp-market-subhead small{text-align:left}.btp-client-currency-summary>div:first-child,.btp-client-aging>div:first-child{align-items:flex-start;flex-direction:column}.btp-client-aging-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.btp-market-fx-warning,.btp-client-fx-alert{align-items:flex-start;flex-direction:column}.btp-market-fx-warning span,.btp-client-fx-alert span{text-align:left}}
@media(max-width:480px){.btp-currency-mix-grid{grid-template-columns:minmax(0,1fr)}.btp-market-compare-metrics{grid-template-columns:minmax(0,1fr)}.btp-client-aging-grid{grid-template-columns:minmax(0,1fr)}.btp-market-chip-list span{white-space:normal}.btp-pipe-outcome-meta span{white-space:normal}}
@media(prefers-reduced-motion:reduce){.btp-market-mini-bar i{animation:none!important}}

/* ========================================================================== 
   v0.58.53 — Client interaction reliability + branded controls
   Keep the Clients modal aligned with the Prospect design system and remove
   browser/OS blue select popups from this sensitive CRM surface.
   ========================================================================== */
body .btp-app .btp-client-modal-close{
  display:grid!important;place-items:center!important;padding:0!important;line-height:0!important;
  appearance:none!important;-webkit-appearance:none!important;
}
body .btp-app .btp-client-modal-close .btp-client-close-icon{
  display:block!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;
  margin:0!important;object-fit:contain!important;transform:none!important;
}
body .btp-app .btp-client-modal-close:hover{border-color:#d4b36a!important;background:#fffaf0!important}
body .btp-app .btp-client-modal-close:focus-visible{outline:0!important;border-color:#c99532!important;box-shadow:0 0 0 4px rgba(210,159,58,.14)!important}

body .btp-app .btp-client-form-footer{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;
  min-width:0!important;padding:12px 30px 16px!important;border-top:1px solid #eee6d8!important;
  background:rgba(255,253,249,.985)!important;box-shadow:0 -12px 28px rgba(33,44,58,.045)!important;
}
body .btp-app .btp-client-form-footer .btp-feedback{
  min-width:0!important;min-height:18px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;
  color:#7d8997!important;font-size:12px!important;line-height:1.35!important;font-weight:700!important;
}
body .btp-app .btp-client-form-footer .btp-feedback.error{color:#a34b38!important}
body .btp-app .btp-client-form-footer .btp-feedback.success{color:#557a51!important}
body .btp-app .btp-client-form-actions{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;
  padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}

/* Native select remains the submitted form field but is not an interactive visual control. */
body .btp-app .btp-client-form select.btp-client-native-select{
  position:absolute!important;width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;
  margin:-1px!important;padding:0!important;border:0!important;opacity:0!important;overflow:hidden!important;
  clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;pointer-events:none!important;
}
body .btp-app .btp-client-select-trigger{
  width:100%!important;min-width:0!important;min-height:40px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  padding:9px 11px!important;border:1px solid #e0e4e8!important;border-radius:12px!important;background:#fff!important;
  color:#203047!important;font-size:12px!important;font-weight:700!important;line-height:1.2!important;text-align:left!important;
  appearance:none!important;-webkit-appearance:none!important;cursor:pointer!important;box-shadow:none!important;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
body .btp-app .btp-client-select-trigger:hover{border-color:#d4b36a!important;background:#fffdf8!important}
body .btp-app .btp-client-select-trigger:focus-visible,
body .btp-app .btp-client-select-trigger.is-open{outline:0!important;border-color:#c99532!important;box-shadow:0 0 0 3px rgba(210,159,58,.14)!important;background:#fffdf8!important}
body .btp-app .btp-client-select-trigger-label{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body .btp-app .btp-client-select-chevron{
  flex:0 0 auto!important;width:9px!important;height:9px!important;border-right:2px solid #8c6923!important;border-bottom:2px solid #8c6923!important;
  color:transparent!important;font-size:0!important;transform:rotate(45deg) translateY(-2px)!important;transition:transform .18s ease!important;
}
body .btp-app .btp-client-select-trigger.is-open .btp-client-select-chevron{transform:rotate(225deg) translate(-2px,-2px)!important}

/* Appended to body so it cannot be clipped by the modal's internal scroll area. */
body .btp-client-select-menu{
  position:fixed!important;z-index:100250!important;display:grid!important;gap:3px!important;max-height:min(320px,48dvh)!important;overflow:auto!important;
  padding:6px!important;border:1px solid #e2c77e!important;border-radius:14px!important;background:#fffdf9!important;
  box-shadow:0 18px 44px rgba(18,32,48,.20)!important;scrollbar-width:thin!important;scrollbar-color:#d6aa52 transparent!important;
}
body .btp-client-select-menu::-webkit-scrollbar{width:7px!important}
body .btp-client-select-menu::-webkit-scrollbar-track{background:transparent!important;margin-block:7px!important}
body .btp-client-select-menu::-webkit-scrollbar-thumb{background:#d6aa52!important;border-radius:999px!important}
body .btp-client-select-menu .btp-client-select-option{
  width:100%!important;min-height:38px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  padding:9px 10px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#27364a!important;
  font:inherit!important;font-size:12px!important;font-weight:650!important;line-height:1.25!important;text-align:left!important;cursor:pointer!important;
}
body .btp-client-select-menu .btp-client-select-option:hover,
body .btp-client-select-menu .btp-client-select-option:focus-visible{outline:0!important;background:#fbf3df!important;color:#172131!important}
body .btp-client-select-menu .btp-client-select-option.is-selected{background:#f6e7bd!important;color:#172131!important;font-weight:850!important}
body .btp-client-select-menu .btp-client-select-option i{font-style:normal!important;color:#9a6b14!important;font-weight:900!important}

/* Client filter pills follow the same navy/gold visual language as other Prospect filters. */
body .btp-app .btp-client-tabs button{
  appearance:none!important;-webkit-appearance:none!important;outline:0!important;color:#657487!important;background:transparent!important;border:0!important;
}
body .btp-app .btp-client-tabs button:hover{color:#17273b!important;background:#fbf3df!important}
body .btp-app .btp-client-tabs button.is-active,
body .btp-app .btp-client-tabs button[aria-pressed="true"]{background:#17273b!important;color:#eab83d!important;box-shadow:none!important}
body .btp-app .btp-client-tabs button:focus-visible{box-shadow:0 0 0 3px rgba(210,159,58,.18)!important}

@media (max-width:680px){
  body .btp-client-select-menu{left:12px!important;right:12px!important;bottom:12px!important;top:auto!important;width:auto!important;max-height:min(55dvh,390px)!important;border-radius:18px!important;padding:8px!important}
  body .btp-client-select-menu .btp-client-select-option{min-height:44px!important;padding:11px 12px!important;font-size:13px!important}
  body .btp-app .btp-client-form-footer{grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:10px 15px 13px!important}
  body .btp-app .btp-client-form-actions{width:100%!important}
  body .btp-app .btp-client-form-actions>*{flex:1 1 0!important;justify-content:center!important}
  body .btp-app .btp-client-form-footer .btp-feedback:empty{display:none!important}
}

/* v0.58.55 — monthly billing ledger + strict client button identity */
body .btp-app .btp-client-card button.btp-icon-button[data-btp-client-edit]{
  appearance:none!important;-webkit-appearance:none!important;display:grid!important;place-items:center!important;
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;
  border:1px solid #ead9aa!important;border-radius:12px!important;background:linear-gradient(180deg,#fffdf8,#fff6df)!important;
  background-color:#fff9e9!important;color:#7f5b15!important;box-shadow:0 5px 14px rgba(127,91,21,.07)!important;cursor:pointer!important;
  flex:0 0 38px!important;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease!important;
}
body .btp-app .btp-client-card button.btp-icon-button[data-btp-client-edit] :is(svg,img,.btp-btn-svg){
  display:block!important;width:17px!important;height:17px!important;margin:0!important;object-fit:contain!important;filter:none!important;
}
body .btp-app .btp-client-card button.btp-icon-button[data-btp-client-edit]:hover{background:#fff2cf!important;border-color:#d4a13e!important;box-shadow:0 7px 18px rgba(127,91,21,.12)!important;transform:translateY(-1px)!important}
body .btp-app .btp-client-card button.btp-icon-button[data-btp-client-edit]:focus-visible{outline:0!important;border-color:#d4a13e!important;box-shadow:0 0 0 4px rgba(212,161,62,.14)!important}

body .btp-app .btp-client-ledger-section{display:grid!important;gap:12px!important;min-width:0!important;padding:15px!important;border:1px solid #e9dfcc!important;border-radius:17px!important;background:linear-gradient(145deg,#fffefb,#fffaf0)!important}
body .btp-app .btp-client-ledger-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;min-width:0!important}
body .btp-app .btp-client-ledger-kpis article{min-width:0!important;padding:11px 12px!important;border:1px solid #ece4d7!important;border-radius:13px!important;background:#fff!important}
body .btp-app .btp-client-ledger-kpis article.is-warning{background:#fff9ed!important;border-color:#ead29a!important}
body .btp-app .btp-client-ledger-kpis span{display:block!important;color:#8a95a2!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important}
body .btp-app .btp-client-ledger-kpis strong{display:block!important;margin-top:4px!important;color:#17273b!important;font-size:15px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body .btp-app .btp-client-ledger-kpis small{display:block!important;margin-top:3px!important;color:#9099a4!important;font-size:12px!important;line-height:1.3!important}
body .btp-app .btp-client-ledger-years{display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;overflow-x:auto!important;padding:1px 1px 3px!important;scrollbar-width:thin!important;scrollbar-color:#d5ad55 transparent!important}
body .btp-app .btp-client-ledger-years::-webkit-scrollbar{height:5px!important}body .btp-app .btp-client-ledger-years::-webkit-scrollbar-thumb{background:#d5ad55!important;border-radius:999px!important}
body .btp-app .btp-client-ledger-years button{appearance:none!important;min-height:32px!important;padding:0 12px!important;border:1px solid #e5dece!important;border-radius:10px!important;background:#fff!important;color:#6f7b89!important;font-size:12px!important;font-weight:900!important;white-space:nowrap!important;cursor:pointer!important}
body .btp-app .btp-client-ledger-years button.is-active{border-color:#17273b!important;background:#17273b!important;color:#f2c75d!important;box-shadow:0 5px 14px rgba(23,39,59,.13)!important}
body .btp-app .btp-client-ledger{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0!important}
body .btp-app .btp-client-ledger-row{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;min-width:0!important;padding:10px 11px!important;border:1px solid #e8e2d7!important;border-radius:13px!important;background:#fff!important;transition:border-color .16s ease,background .16s ease,transform .16s ease!important}
body .btp-app .btp-client-ledger-row.is-paid{border-color:#d9e8dd!important;background:#fbfefc!important}
body .btp-app .btp-client-ledger-row.is-overdue{border-color:#e4bf9f!important;background:#fff9f4!important}
body .btp-app .btp-client-ledger-row.is-today{border-color:#e3c266!important;background:#fff9e7!important}
body .btp-app .btp-client-ledger-toggle{appearance:none!important;display:grid!important;place-items:center!important;width:30px!important;height:30px!important;padding:0!important;border:1px solid #d9dfe5!important;border-radius:9px!important;background:#fff!important;color:#17273b!important;cursor:pointer!important;box-shadow:none!important}
body .btp-app .btp-client-ledger-toggle span{display:grid!important;place-items:center!important;width:18px!important;height:18px!important;border-radius:6px!important;background:#f0eee8!important;color:#fff!important;font-size:12px!important;font-weight:900!important;line-height:1!important}
body .btp-app .btp-client-ledger-toggle[aria-pressed="true"]{border-color:#17273b!important;background:#17273b!important}.btp-app .btp-client-ledger-toggle[aria-pressed="true"] span{background:#d9aa42!important;color:#17273b!important}
body .btp-app .btp-client-ledger-toggle:focus-visible{outline:0!important;box-shadow:0 0 0 4px rgba(215,163,50,.14)!important;border-color:#d7a332!important}
body .btp-app .btp-client-ledger-copy{min-width:0!important}.btp-app .btp-client-ledger-copy strong{display:block!important;color:#243448!important;font-size:12px!important;line-height:1.25!important;text-transform:capitalize!important}.btp-app .btp-client-ledger-copy small{display:block!important;margin-top:2px!important;color:#929ba6!important;font-size:12px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
body .btp-app .btp-client-ledger-money{min-width:0!important;text-align:right!important}.btp-app .btp-client-ledger-money strong{display:block!important;color:#17273b!important;font-size:12px!important;line-height:1.25!important;white-space:nowrap!important}.btp-app .btp-client-ledger-money small{display:block!important;margin-top:2px!important;color:#8b95a1!important;font-size:12px!important;line-height:1.25!important;white-space:nowrap!important}.btp-app .btp-client-ledger-row.is-overdue .btp-client-ledger-money small{color:#9a4c36!important}.btp-app .btp-client-ledger-row.is-paid .btp-client-ledger-money small{color:#397759!important}
body .btp-app .btp-client-payment-adjust{border:1px solid #e8dfcf!important;border-radius:13px!important;background:#fff!important;overflow:hidden!important}
body .btp-app .btp-client-payment-adjust>summary{display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;align-items:center!important;gap:8px!important;min-height:42px!important;padding:0 12px!important;cursor:pointer!important;list-style:none!important;color:#26374b!important}
body .btp-app .btp-client-payment-adjust>summary::-webkit-details-marker{display:none!important}.btp-app .btp-client-payment-adjust>summary .btp-btn-svg{width:15px!important;height:15px!important}.btp-app .btp-client-payment-adjust>summary strong{font-size:12px!important;white-space:nowrap!important}.btp-app .btp-client-payment-adjust>summary small{justify-self:end!important;color:#909aa5!important;font-size:12px!important;line-height:1.3!important;text-align:right!important}
body .btp-app .btp-client-payment-adjust-grid{display:grid!important;grid-template-columns:minmax(130px,.8fr) minmax(130px,.8fr) auto!important;gap:9px!important;align-items:end!important;padding:11px 12px 12px!important;border-top:1px solid #eee7da!important;background:#fffdf8!important}
body .btp-app .btp-client-payment-adjust-grid label{display:grid!important;gap:5px!important;min-width:0!important;color:#677587!important;font-size:12px!important;font-weight:800!important}.btp-app .btp-client-payment-adjust-grid input{width:100%!important;min-height:40px!important;border:1px solid #dfe4e9!important;border-radius:11px!important;background:#fff!important;color:#223247!important;padding:0 11px!important;outline:0!important}.btp-app .btp-client-payment-adjust-grid input:focus{border-color:#d7aa42!important;box-shadow:0 0 0 3px rgba(215,170,66,.12)!important}

@media(max-width:820px){body .btp-app .btp-client-ledger-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.btp-app .btp-client-ledger{grid-template-columns:minmax(0,1fr)!important}.btp-app .btp-client-payment-adjust-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.btp-app .btp-client-payment-adjust-grid>button{grid-column:1/-1!important;width:100%!important;justify-content:center!important}}
@media(max-width:520px){body .btp-app .btp-client-ledger-kpis{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.btp-app .btp-client-ledger-row{grid-template-columns:32px minmax(0,1fr)!important}.btp-app .btp-client-ledger-money{grid-column:2!important;text-align:left!important}.btp-app .btp-client-ledger-money small{white-space:normal!important}.btp-app .btp-client-payment-adjust>summary{grid-template-columns:auto minmax(0,1fr)!important}.btp-app .btp-client-payment-adjust>summary small{grid-column:1/-1!important;justify-self:start!important;text-align:left!important}.btp-app .btp-client-payment-adjust-grid{grid-template-columns:minmax(0,1fr)!important}.btp-app .btp-client-payment-adjust-grid>button{grid-column:auto!important}}
body .btp-app .btp-results-recurring-panel{display:grid!important;gap:12px!important;margin-top:14px!important;padding:16px!important;border:1px solid #e7dfd1!important;background:linear-gradient(145deg,#fff,#fffaf0)!important}
body .btp-app .btp-results-recurring-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;min-width:0!important}
body .btp-app .btp-results-recurring-grid article{min-width:0!important;padding:12px 13px!important;border:1px solid #ece5da!important;border-radius:14px!important;background:#fff!important}.btp-app .btp-results-recurring-grid article.is-received{border-color:#dbe7df!important;background:#fbfefc!important}.btp-app .btp-results-recurring-grid article.is-open{border-color:#ead4a5!important;background:#fff9ed!important}
body .btp-app .btp-results-recurring-grid span{display:block!important;color:#8a95a2!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.04em!important;white-space:nowrap!important}.btp-app .btp-results-recurring-grid strong{display:block!important;margin-top:4px!important;color:#17273b!important;font-size:16px!important;line-height:1.15!important}.btp-app .btp-results-recurring-grid small{display:block!important;margin-top:3px!important;color:#8d97a2!important;font-size:12px!important;line-height:1.3!important}
@media(max-width:900px){body .btp-app .btp-results-recurring-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:520px){body .btp-app .btp-results-recurring-grid{grid-template-columns:minmax(0,1fr)!important}}

/* v0.58.56 — revenue-by-year, client services, typography floor and UI consistency */
body .btp-app small{font-size:12px!important;line-height:1.4!important}
body .btp-app label{font-size:12px!important}
body .btp-app :is(input,select,textarea){font-size:13px!important}
body .btp-app :is(button,.btp-primary,.btp-ghost,.btp-mini){font-size:12px!important}
body .btp-app :is(.btp-section-head>div>span,.btp-analytics-head>div>span,.btp-results-period-copy>span,.btp-client-form-section-title>strong,.btp-pipe-col>h3 small,.btp-pipeline-outcomes-head>div>span,.btp-client-status,.btp-pipe-result-badge,.btp-pipe-future-badge){font-size:12px!important;line-height:1.25!important}
body .btp-app :is(.btp-client-card-head h3,.btp-analytics-head h3,.btp-results-period-title h3,.btp-pipeline-outcomes-head h3){overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}

body .btp-app .btp-clients-page-head{align-items:flex-end!important;gap:20px!important}
body .btp-app .btp-client-head-actions{display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;gap:12px!important;flex-wrap:wrap!important;min-width:0!important}
body .btp-app .btp-client-year-filter{display:grid!important;gap:6px!important;min-width:190px!important;color:#8c6719!important;font-weight:900!important;letter-spacing:.06em!important}
body .btp-app .btp-client-year-filter>span{font-size:12px!important;white-space:nowrap!important}
body .btp-app .btp-client-year-select{min-width:190px!important}

body .btp-app .btp-client-kpis--yearly{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important}
body .btp-app .btp-client-kpis--yearly article{min-width:0!important;overflow:hidden!important}
body .btp-app .btp-client-kpis--yearly article>span{font-size:13px!important;line-height:1.3!important;min-width:0!important}
body .btp-app .btp-client-kpis--yearly article>span b{font:inherit!important;color:inherit!important}
body .btp-app .btp-client-kpis--yearly article>strong{font-size:clamp(22px,2.1vw,33px)!important;line-height:1.05!important;white-space:nowrap!important;letter-spacing:-.035em!important}
body .btp-app .btp-client-kpis--yearly article>small{font-size:12px!important}
body .btp-app .btp-client-financial-strip--compact{grid-template-columns:minmax(0,1fr)!important;margin:0 0 16px!important}
body .btp-app .btp-client-currency-summary>div:first-child span,
body .btp-app .btp-client-aging>div:first-child span{font-size:12px!important}
body .btp-app .btp-client-currency-summary>div:first-child strong,
body .btp-app .btp-client-aging>div:first-child strong{font-size:13px!important}
body .btp-app .btp-client-currency-chips>span{font-size:12px!important}.btp-app .btp-client-currency-chips small{font-size:12px!important}

/* All filter/tab systems share one visual grammar. */
body .btp-app :is(.btp-client-tabs button,.btp-client-ledger-years button,.btp-client-service-years button){appearance:none!important;min-height:36px!important;padding:0 13px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:#647286!important;font-size:12px!important;font-weight:850!important;line-height:1!important;white-space:nowrap!important;cursor:pointer!important;box-shadow:none!important}
body .btp-app :is(.btp-client-tabs button,.btp-client-ledger-years button,.btp-client-service-years button):hover{background:#fff8e9!important;color:#855f12!important;border-color:#ead9ae!important}
body .btp-app :is(.btp-client-tabs button,.btp-client-ledger-years button,.btp-client-service-years button).is-active{background:#172a41!important;color:#f3c85a!important;border-color:#172a41!important;box-shadow:0 5px 12px rgba(20,37,58,.12)!important}
body .btp-app .btp-client-tabs{background:#f4efe5!important;border:1px solid #eee5d5!important;border-radius:13px!important;padding:3px!important;gap:2px!important;min-width:0!important;max-width:100%!important}
body .btp-app .btp-client-toolbar{align-items:center!important;gap:12px!important;flex-wrap:wrap!important;min-width:0!important}
body .btp-app .btp-client-search{flex:1 1 320px!important;min-width:min(100%,260px)!important}

body .btp-app .btp-client-card{min-width:0!important;overflow:hidden!important}
body .btp-app .btp-client-card-head>div{min-width:0!important}.btp-app .btp-client-card-head h3{font-size:17px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body .btp-app .btp-client-card-head small{display:block!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body .btp-app .btp-client-money--period{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body .btp-app .btp-client-money--period>div{min-width:0!important}
body .btp-app .btp-client-money--period span{font-size:12px!important}.btp-app .btp-client-money--period strong{font-size:17px!important;white-space:nowrap!important}
body .btp-app .btp-client-period-breakdown{display:flex!important;align-items:center!important;gap:8px 13px!important;flex-wrap:wrap!important;margin-top:10px!important;padding:10px 11px!important;border:1px solid #eee5d7!important;border-radius:13px!important;background:#fffaf0!important;color:#687587!important;font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-client-period-breakdown span{font-size:12px!important;white-space:nowrap!important}.btp-app .btp-client-period-breakdown b{color:#172a41!important}

body .btp-app .btp-client-form-section-title{align-items:center!important;gap:10px!important;min-width:0!important}
body .btp-app .btp-client-form-section-title small{display:none!important}
body .btp-app .btp-client-form-grid label,
body .btp-app .btp-client-payment-adjust-grid label,
body .btp-app .btp-client-service-form label{font-size:12px!important;line-height:1.25!important}
body .btp-app .btp-client-form-grid label>small{font-size:12px!important}
body .btp-app .btp-client-ledger-kpis article span{font-size:12px!important}.btp-app .btp-client-ledger-kpis article strong{font-size:20px!important;white-space:nowrap!important}
body .btp-app .btp-client-ledger-copy strong{font-size:13px!important}.btp-app .btp-client-ledger-copy small,.btp-app .btp-client-ledger-money small{font-size:12px!important}.btp-app .btp-client-ledger-money strong{font-size:14px!important;white-space:nowrap!important}
body .btp-app .btp-client-history-empty{font-size:12px!important}
body .btp-app .btp-client-payment-adjust>summary strong{font-size:13px!important}.btp-app .btp-client-payment-adjust>summary small{font-size:12px!important}

/* One-off service ledger */
body .btp-app .btp-client-services-section{display:grid!important;gap:12px!important;min-width:0!important}
body .btp-app .btp-client-service-form{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;align-items:end!important;min-width:0!important}
body .btp-app .btp-client-service-form label{display:grid!important;gap:5px!important;min-width:0!important;color:#536276!important;font-weight:800!important}
body .btp-app .btp-client-service-form label.is-wide{grid-column:span 4!important}
body .btp-app .btp-client-service-form :is(input,select){width:100%!important;min-width:0!important;min-height:42px!important;padding:0 11px!important;border:1px solid #dde3e8!important;border-radius:12px!important;background:#fff!important;color:#213249!important;box-sizing:border-box!important}
body .btp-app .btp-client-service-form>.btp-primary{min-height:42px!important;white-space:nowrap!important}
body .btp-app .btp-client-service-years{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important}
body .btp-app .btp-client-services{display:grid!important;gap:8px!important;min-width:0!important}
body .btp-app .btp-client-service-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto 38px!important;align-items:center!important;gap:12px!important;padding:11px 12px!important;border:1px solid #ebe5da!important;border-radius:14px!important;background:#fff!important;min-width:0!important}
body .btp-app .btp-client-service-row.is-pending{background:#fffaf0!important;border-color:#ead7a7!important}
body .btp-app .btp-client-service-copy{min-width:0!important}.btp-app .btp-client-service-copy strong{display:block!important;font-size:13px!important;color:#26364b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.btp-app .btp-client-service-copy small{font-size:12px!important;color:#7f8b99!important}
body .btp-app .btp-client-service-money{text-align:right!important;min-width:0!important}.btp-app .btp-client-service-money strong{display:block!important;font-size:14px!important;color:#172a41!important;white-space:nowrap!important}.btp-app .btp-client-service-money small{font-size:12px!important;color:#8995a2!important;white-space:nowrap!important}
body .btp-app .btp-client-service-delete{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;border:1px solid #eadfcd!important;background:#fffaf0!important;color:#755717!important;font-size:18px!important;line-height:1!important}

/* Results: compact, readable, no overflowing labels. */
body .btp-app .btp-results-period-copy small{display:none!important}
body .btp-app .btp-results-period-copy strong{font-size:15px!important;white-space:nowrap!important}
body .btp-app .btp-results-period-title{min-width:0!important;gap:12px!important}.btp-app .btp-results-period-title small{font-size:12px!important;white-space:nowrap!important}
body .btp-app .btp-results-kpis--clean{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important}
body .btp-app .btp-results-kpis--clean article{min-width:0!important;overflow:hidden!important}
body .btp-app .btp-results-kpis--clean article span{font-size:12px!important;white-space:normal!important}
body .btp-app .btp-results-kpis--clean article strong{font-size:clamp(18px,1.6vw,25px)!important;line-height:1.05!important;white-space:nowrap!important;letter-spacing:-.025em!important}
body .btp-app .btp-results-kpis--clean article small{font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-results-recurring-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body .btp-app .btp-results-recurring-grid article{min-width:0!important;overflow:hidden!important}.btp-app .btp-results-recurring-grid span{font-size:12px!important}.btp-app .btp-results-recurring-grid strong{font-size:clamp(18px,1.8vw,24px)!important;white-space:nowrap!important}.btp-app .btp-results-recurring-grid small{font-size:12px!important}
body .btp-app .btp-analytics-head{min-width:0!important;gap:12px!important}.btp-app .btp-analytics-head>div{min-width:0!important}.btp-app .btp-analytics-head>small{font-size:12px!important;max-width:45%!important;overflow-wrap:normal!important}
body .btp-app .btp-market-compare-card>div:first-child span,.btp-app .btp-currency-mix-grid article>span,.btp-app .btp-market-breakdowns>div>strong,.btp-app .btp-market-chip-list span,.btp-app .btp-market-chip-list b{font-size:12px!important}
body .btp-app .btp-market-compare-metrics small,.btp-app .btp-currency-mix-grid article>small,.btp-app .btp-currency-mix-grid article>em,.btp-app .btp-market-subhead small{font-size:12px!important}
body .btp-app .btp-market-compare-metrics b{font-size:18px!important;white-space:nowrap!important}
body .btp-app .btp-market-fx-warning strong,.btp-app .btp-market-fx-warning span{font-size:12px!important}
body .btp-app .btp-tech-chart{min-height:250px!important;max-height:330px!important}

/* Funil: terminal outcomes use the same container and badge language. */
body .btp-app .btp-pipe-col--terminal.is-won,
body .btp-app .btp-pipe-col--terminal.is-lost{border-color:#e7dfd1!important;background:linear-gradient(180deg,#fffefb,#fffaf1)!important}
body .btp-app .btp-pipe-col--terminal:is(.is-won,.is-lost) h3 small,
body .btp-app .btp-pipe-col--terminal:is(.is-won,.is-lost) h3 em{color:#9d711d!important}
body .btp-app .btp-pipe-card.is-terminal:is(.is-won,.is-lost){box-shadow:inset 3px 0 0 #d5a43a,0 8px 18px rgba(24,36,50,.03)!important}
body .btp-app .btp-pipe-result-badge:is(.is-won,.is-lost){background:#17273b!important;color:#f0c965!important;border:1px solid rgba(240,201,101,.18)!important}
body .btp-app .btp-pipeline-outcomes-head p{font-size:12px!important;line-height:1.45!important}
body .btp-app .btp-pipeline-outcome-head>span,.btp-app .btp-pipeline-outcome-company span,.btp-app .btp-pipeline-outcome-grid label,.btp-app .btp-pipeline-outcome-note,.btp-app .btp-pipeline-outcome-grid label>small{font-size:12px!important}
body .btp-app .btp-pipeline-outcome-grid :is(input,select){font-size:13px!important}

@container btp-content (max-width:1250px){
  body .btp-app .btp-client-kpis--yearly{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-results-kpis--clean{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-client-service-form{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .btp-app .btp-client-service-form label.is-wide{grid-column:span 2!important}
}
@container btp-content (max-width:820px){
  body .btp-app .btp-clients-page-head{align-items:stretch!important;flex-direction:column!important}
  body .btp-app .btp-client-head-actions{justify-content:stretch!important;align-items:stretch!important}
  body .btp-app .btp-client-year-filter{flex:1 1 220px!important}.btp-app .btp-client-year-select{width:100%!important}
  body .btp-app .btp-client-kpis--yearly{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-results-kpis--clean{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-results-recurring-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-client-service-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}.btp-app .btp-client-service-form label.is-wide{grid-column:1/-1!important}
}
@media(max-width:640px){
  body .btp-app .btp-client-head-actions{display:grid!important;grid-template-columns:1fr!important}.btp-app .btp-client-head-actions>.btp-primary{width:100%!important;justify-content:center!important}
  body .btp-app .btp-client-kpis--yearly,body .btp-app .btp-results-kpis--clean,body .btp-app .btp-results-recurring-grid{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-client-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important}.btp-app .btp-client-tabs{width:100%!important;overflow-x:auto!important;flex-wrap:nowrap!important}
  body .btp-app .btp-client-money--period{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-client-service-form{grid-template-columns:minmax(0,1fr)!important}.btp-app .btp-client-service-form label.is-wide{grid-column:auto!important}
  body .btp-app .btp-client-service-row{grid-template-columns:minmax(0,1fr) 36px!important}.btp-app .btp-client-service-money{grid-column:1/2!important;text-align:left!important}.btp-app .btp-client-service-delete{grid-column:2!important;grid-row:1/3!important}
  body .btp-app .btp-analytics-head{align-items:flex-start!important;flex-direction:column!important}.btp-app .btp-analytics-head>small{max-width:100%!important;text-align:left!important}
}
body .btp-app .btp-client-services-section[hidden]{display:none!important}
body .btp-app :is(.btp-chart-legend span,.btp-history-legend span,.btp-potential-summary article>span,.btp-performance-chart-label strong,.btp-performance-rate small,.btp-tech-chart-bars article strong,.btp-market-compare-card>div:first-child span){font-size:12px!important}
body .btp-app .btp-potential-summary article strong{font-size:clamp(18px,1.7vw,24px)!important;white-space:nowrap!important;line-height:1.08!important}
body .btp-app .btp-performance-chart-label strong{font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body .btp-app .btp-performance-chart-label{min-width:0!important}
body .btp-app .btp-client-service-row{grid-template-columns:minmax(0,1fr) auto auto!important}
body .btp-app .btp-client-service-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important}
body .btp-app .btp-client-service-actions .btp-mini{min-height:34px!important;padding:0 10px!important;white-space:nowrap!important;background:#172a41!important;color:#f3c85a!important;border-color:#172a41!important}
@media(max-width:640px){body .btp-app .btp-client-service-row{grid-template-columns:minmax(0,1fr)!important}.btp-app .btp-client-service-money{text-align:left!important}.btp-app .btp-client-service-actions{justify-content:flex-start!important}.btp-app .btp-client-service-delete{grid-column:auto!important;grid-row:auto!important}}


/* v0.58.56 QA — global readability and segmented-control consistency */
body .btp-app :is(.btp-report-period-switch,.btp-task-history-period-switch,.btp-client-tabs,.btp-client-ledger-years,.btp-client-service-years){
  border-color:#e8dfcf!important;background:#f5f0e7!important;
}
body .btp-app :is(.btp-report-period-switch,.btp-task-history-period-switch,.btp-client-tabs,.btp-client-ledger-years,.btp-client-service-years) button{
  color:#647286!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important;
}
body .btp-app :is(.btp-report-period-switch,.btp-task-history-period-switch,.btp-client-tabs,.btp-client-ledger-years,.btp-client-service-years) button:hover{
  color:#805b11!important;background:#fff8e9!important;border-color:#ead9ae!important;
}
body .btp-app :is(.btp-report-period-switch,.btp-task-history-period-switch,.btp-client-tabs,.btp-client-ledger-years,.btp-client-service-years) button.is-active,
body .btp-app :is(.btp-report-period-switch,.btp-task-history-period-switch,.btp-client-tabs,.btp-client-ledger-years,.btp-client-service-years) button[aria-pressed="true"]{
  color:#f3c85a!important;background:#172a41!important;border-color:#172a41!important;box-shadow:0 5px 12px rgba(20,37,58,.12)!important;
}
body .btp-app :is(.btp-followup-filterchips,.btp-today-filter-scroll) button.is-active{
  color:#f3c85a!important;background:#172a41!important;border-color:#172a41!important;
}
body .btp-app .btp-client-form-footer .btp-feedback{font-size:12px!important;line-height:1.4!important}
body .btp-app .btp-client-ledger-kpis :is(span,small),
body .btp-app .btp-client-ledger-copy small,
body .btp-app .btp-client-ledger-money small,
body .btp-app .btp-client-payment-adjust>summary small,
body .btp-app .btp-client-payment-adjust-grid label,
body .btp-app .btp-tech-chart-bars small{font-size:12px!important;line-height:1.35!important}
body .btp-app .btp-client-ledger-copy strong,
body .btp-app .btp-client-ledger-money strong,
body .btp-app .btp-client-payment-adjust>summary strong{font-size:13px!important;line-height:1.3!important}
body .btp-app .btp-client-kpis--yearly article,
body .btp-app .btp-results-kpis--clean article,
body .btp-app .btp-results-recurring-grid article{container-type:inline-size!important}
body .btp-app .btp-client-kpis--yearly article>strong{font-size:clamp(18px,11cqi,33px)!important;font-variant-numeric:tabular-nums!important}
body .btp-app .btp-results-kpis--clean article>strong{font-size:clamp(18px,11cqi,25px)!important;font-variant-numeric:tabular-nums!important}
body .btp-app .btp-results-recurring-grid article>strong{font-size:clamp(18px,11cqi,24px)!important;font-variant-numeric:tabular-nums!important}
body .btp-app :is(.btp-client-card,.btp-results-period-panel,.btp-results-recurring-panel,.btp-market-intelligence,.btp-performance-panel,.btp-pipeline-outcomes){overflow-wrap:normal!important;word-break:normal!important}

/* ==========================================================
   v0.58.57 — filter identity + international message library
   Every single-choice select inside the authenticated app is progressively
   enhanced by app.js. The native control remains the form source of truth;
   users interact with the navy/gold Prospect surface instead of OS blue menus.
========================================================== */
body .btp-app .btp-auto-brand-select{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin-top:6px!important;
}
body .btp-app .btp-auto-brand-select .btp-brand-select-trigger{
  min-height:48px!important;
  height:auto!important;
  border:1px solid #ddd4c4!important;
  border-radius:15px!important;
  background:linear-gradient(180deg,#fff 0%,#fffdf8 100%)!important;
  color:#172333!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1.25!important;
}
body .btp-app .btp-auto-brand-select .btp-brand-select-trigger:hover{
  background:#fff9ec!important;
  border-color:#d6b56c!important;
}
body .btp-app .btp-auto-brand-select.is-open .btp-brand-select-trigger,
body .btp-app .btp-auto-brand-select .btp-brand-select-trigger:focus-visible{
  border-color:#c8912d!important;
  box-shadow:0 0 0 4px rgba(201,145,45,.13)!important;
  outline:0!important;
}
body .btp-app .btp-auto-brand-select .btp-brand-select-trigger:disabled{
  cursor:not-allowed!important;
  opacity:.62!important;
  background:#f6f3ec!important;
}
body .btp-app .btp-brand-select-menu button:is(.is-selected,[aria-selected="true"]){
  background:linear-gradient(180deg,#fff1c8 0%,#f3dda4 100%)!important;
  color:#172333!important;
}
body .btp-app .btp-brand-select-menu button:hover,
body .btp-app .btp-brand-select-menu button:focus-visible{
  background:#fff7e6!important;
  color:#172333!important;
}
body .btp-app .btp-brand-select-menu button:disabled,
body .btp-app .btp-brand-select-menu button[hidden]{
  opacity:.38!important;
}

/* Prospectar — fields always fit the real available width. */
body .btp-app .btp-search-field,
body .btp-app .btp-search-field .btp-auto-brand-select,
body .btp-app .btp-search-field .btp-brand-select-trigger{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body .btp-app .btp-search-field .btp-brand-select-trigger [data-btp-brand-select-label]{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

/* Messages gained an Idioma filter. Keep a deliberate desktop/tablet/mobile
   layout instead of squeezing five controls onto one row. */
body .btp-app .btp-message-toolbar{
  display:grid!important;
  grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(150px,.72fr)) minmax(108px,.42fr)!important;
  align-items:end!important;
  gap:12px!important;
}
body .btp-app .btp-message-language-filter{min-width:0!important}
@media (max-width:1180px){
  body .btp-app .btp-message-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  body .btp-app .btp-message-search{grid-column:1/-1!important}
  body .btp-app .btp-message-count{align-self:stretch!important}
}
@media (max-width:720px){
  body .btp-app .btp-message-toolbar{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  body .btp-app .btp-message-search,
  body .btp-app .btp-message-filter,
  body .btp-app .btp-message-count{grid-column:1!important;width:100%!important;min-width:0!important}
}

/* Keep filter/tab vocabulary in one visual family. */
body .btp-app :is(
  .btp-client-filter-tabs button,
  .btp-client-market-tabs button,
  .btp-followup-report-toggle button,
  .btp-results-period-tabs button,
  .btp-client-year-filter button,
  .btp-client-ledger-years button,
  .btp-client-service-years button
){
  border-color:transparent!important;
  color:#617080!important;
  background:transparent!important;
}
body .btp-app :is(
  .btp-client-filter-tabs button,
  .btp-client-market-tabs button,
  .btp-followup-report-toggle button,
  .btp-results-period-tabs button,
  .btp-client-year-filter button,
  .btp-client-ledger-years button,
  .btp-client-service-years button
):is(.is-active,[aria-selected="true"],[aria-pressed="true"]){
  background:#152334!important;
  color:#f0bd50!important;
  box-shadow:0 4px 12px rgba(12,24,38,.12)!important;
}
body .btp-app :is(
  .btp-client-filter-tabs button,
  .btp-client-market-tabs button,
  .btp-followup-report-toggle button,
  .btp-results-period-tabs button,
  .btp-client-year-filter button,
  .btp-client-ledger-years button,
  .btp-client-service-years button
):hover{
  color:#172333!important;
  background:#fff3d2!important;
}

/* Dynamic lead/editor fields receive the same responsive select geometry. */
body .btp-app :is(.btp-lead-edit-grid,.btp-manual-lead-form,.btp-pipeline-outcome-form,.btp-onboarding-field,.btp-support-form,.btp-prompt-editor-card) .btp-auto-brand-select{
  width:100%!important;
  min-width:0!important;
}
/* Keyboard focus uses the Prospect identity as well — never the browser blue. */
body .btp-app .btp-brand-select-menu button:focus,
body .btp-app .btp-brand-select-menu button:focus-visible{
  outline:0!important;
  box-shadow:inset 0 0 0 1px rgba(184,129,28,.34)!important;
}


/* ==========================================================
   v0.58.58 — Settings persistence + responsive message toolbar
   - compact Settings screens: explanations live in Central de Ajuda
   - five message controls respond to real content width (sidebar/split view)
   - international settings occupy a predictable full-width row
========================================================== */

/* Messages: prevent the language/count controls from escaping the toolbar. */
body .btp-app .btp-view[data-view="mensagens"] .btp-message-toolbar{
  width:100%!important;max-width:100%!important;min-width:0!important;
  grid-template-columns:minmax(250px,1.5fr) repeat(3,minmax(145px,.72fr)) minmax(128px,.5fr)!important;
  overflow:visible!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-toolbar>*{min-width:0!important;max-width:100%!important}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-count{
  width:100%!important;min-width:0!important;max-width:100%!important;padding-inline:10px!important;white-space:nowrap!important;overflow:hidden!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-count span{
  min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body .btp-app .btp-view[data-view="mensagens"] :is(.btp-message-filter,.btp-message-search) .btp-brand-select,
body .btp-app .btp-view[data-view="mensagens"] :is(.btp-message-filter,.btp-message-search) .btp-brand-select-trigger{width:100%!important;min-width:0!important;max-width:100%!important}
body .btp-app .btp-view[data-view="mensagens"] .btp-brand-select-trigger [data-btp-brand-select-label]{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body .btp-app .btp-message-list-row>*{min-width:0!important;max-width:100%!important}
body .btp-app .btp-message-title-line{max-width:100%!important;overflow:hidden!important}
body .btp-app .btp-message-title-line h3{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:100%!important}
body .btp-app .btp-message-service-badge{flex:0 1 auto!important;min-width:0!important;max-width:145px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

@container btp-content (max-width:1250px){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-toolbar{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-search{grid-column:1/-1!important}
}
@container btp-content (max-width:860px){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-search{grid-column:1/-1!important}
}
@container btp-content (max-width:560px){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-toolbar{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-toolbar>*{grid-column:1!important;width:100%!important}
  body .btp-app .btp-message-count{white-space:normal!important}
  body .btp-app .btp-message-list-row .btp-message-title-line{flex-wrap:wrap!important;overflow:visible!important}
  body .btp-app .btp-message-service-badge{max-width:100%!important}
}

/* Settings: compact operational copy and deliberate placement. */
body .btp-app .btp-view[data-view="configuracoes"] .btp-settings-layout--user{
  grid-template-areas:
    "goal profile"
    "identity defaults"
    "services services"
    "international international"
    "recurring recurring"
    "save save"!important;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-international-settings-card{grid-area:international!important;min-width:0!important}
body .btp-app .btp-view[data-view="configuracoes"] .btp-settings-title{gap:3px!important;margin-bottom:14px!important}
body .btp-app .btp-view[data-view="configuracoes"] .btp-settings-title>p{display:none!important}
body .btp-app .btp-view[data-view="configuracoes"] .btp-settings-compact-note{
  margin:11px 0 0!important;padding:8px 10px!important;border-radius:11px!important;background:#fbf6eb!important;color:#6e7a89!important;font-size:12px!important;line-height:1.4!important;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-service-values>summary small{color:#9b6b12!important;font-weight:750!important}
body .btp-app .btp-view[data-view="configuracoes"] .btp-commercial-context-preview small{display:none!important}
body .btp-app .btp-view[data-view="configuracoes"] .btp-primary-service-field>small{display:none!important}
body .btp-app .btp-view[data-view="configuracoes"] .btp-international-settings-card.is-domestic-only .btp-international-values{opacity:.7!important}
body .btp-app .btp-view[data-view="configuracoes"] .btp-international-settings-card :is(input,.btp-brand-select-trigger){min-width:0!important;max-width:100%!important}
body .btp-app .btp-view[data-view="configuracoes"] .btp-fx-grid label>small{font-size:12px!important}

@container btp-content (max-width:900px){
  body .btp-app .btp-view[data-view="configuracoes"] .btp-settings-layout--user{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"goal" "profile" "identity" "defaults" "services" "international" "recurring" "save"!important;
  }
}

/* Validation feedback follows the same brand language and remains readable. */
body .btp-app #btp-settings .is-invalid{
  border-color:#b77918!important;box-shadow:0 0 0 3px rgba(183,121,24,.12)!important;outline:0!important;
}
body .btp-app #btp-settings-feedback{font-size:13px!important;line-height:1.45!important}


/* ==========================================================
   v0.58.59 — Messages search visual parity with Leads
   - one Prospect border/focus ring only
   - hides browser-native blue search cancel affordances
   - same icon spacing / field geometry used by Leads
   - stable on compact desktop, tablet and mobile
========================================================== */
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:48px!important;
  height:48px!important;
  padding:0 15px!important;
  border:1px solid #dfe3e7!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search:hover{
  border-color:#d8d3ca!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search:focus-within{
  border-color:#d3a13d!important;
  background:#fff!important;
  box-shadow:0 0 0 3px rgba(211,161,61,.10)!important;
  outline:0!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search .btp-message-search-icon,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search>svg,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search>.dashicons{
  position:static!important;
  inset:auto!important;
  display:block!important;
  flex:0 0 18px!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  margin:0!important;
  color:#a7741d!important;
  opacity:1!important;
  pointer-events:none!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input[type="search"]{
  display:block!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:46px!important;
  height:46px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#172333!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  font-family:inherit!important;
  font-size:13px!important;
  font-weight:600!important;
  line-height:1.35!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input:focus,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input:focus-visible,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input:hover{
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input::placeholder{
  color:#8a95a1!important;
  opacity:1!important;
  font-weight:500!important;
}
/* Chromium/WebKit/Edge: native search decoration/cancel icon is OS-blue and
   visually conflicts with Prospect. Leads already omits it; Messages now does too. */
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input[type="search"]::-webkit-search-decoration,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input[type="search"]::-webkit-search-cancel-button,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input[type="search"]::-webkit-search-results-button,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input[type="search"]::-webkit-search-results-decoration{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  margin:0!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input[type="search"]::-ms-clear,
body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input[type="search"]::-ms-reveal{
  display:none!important;
  width:0!important;
  height:0!important;
}
@container btp-content (max-width:560px){
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-search{
    min-height:46px!important;
    height:46px!important;
    padding:0 13px!important;
    gap:9px!important;
    border-radius:14px!important;
  }
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input,
  body .btp-app .btp-view[data-view="mensagens"] .btp-message-search input[type="search"]{
    min-height:44px!important;
    height:44px!important;
    font-size:13px!important;
  }
}


/* =============================================================
  v0.58.60 — RESPONSIVIDADE REAL / SPLIT-SCREEN
  A largura de btp-main (não a janela) define a composição.
  Somente layout/estilo: os atributos data-* e listeners são mantidos.
============================================================= */

/* Nenhum controle pode alargar involuntariamente o seu próprio painel. */
body .btp-app :is(.btp-closing-page-head,.btp-closing-section-head,.btp-client-workspace,.btp-client-toolbar,.btp-client-grid,.btp-client-card,.btp-client-card-actions,.btp-client-search,.btp-client-tabs,.btp-closing-scroll,.btp-closing-table){
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
body .btp-app :is(.btp-closing-page-head,.btp-closing-section-head) > div{min-width:0!important;max-width:100%!important}

/* Corrige bug de flex-basis no EIXO VERTICAL: a busca tinha 320px
   de altura na media query que altera a toolbar para coluna. */
body .btp-app .btp-client-search{
  display:flex!important;align-items:center!important;flex:1 1 290px!important;
  height:46px!important;min-height:46px!important;max-height:46px!important;
  position:relative!important;margin:0!important;padding:0!important;
}
body .btp-app .btp-client-search input{
  display:block!important;flex:1 1 auto!important;min-width:0!important;
  height:46px!important;min-height:46px!important;max-height:46px!important;
  line-height:normal!important;box-sizing:border-box!important;
}
body .btp-app .btp-client-search .dashicons{
  display:block!important;position:absolute!important;left:14px!important;top:23px!important;
  transform:translateY(-50%)!important;margin:0!important;width:20px!important;
  height:20px!important;line-height:20px!important;pointer-events:none!important;
}
body .btp-app .btp-client-tabs{
  min-height:44px!important;max-width:100%!important;overflow-x:auto!important;
  overscroll-behavior-x:contain!important;scrollbar-width:thin!important;
}
body .btp-app .btp-client-tabs button{
  min-width:0!important;flex:1 0 auto!important;min-height:36px!important;
  font-size:12px!important;text-align:center!important;
}
body .btp-app .btp-client-card-actions button{
  min-width:0!important;max-width:100%!important;white-space:normal!important;
  overflow-wrap:normal!important;line-height:1.25!important;min-height:44px!important;
  text-align:center!important;gap:7px!important;padding:9px 11px!important;
}
body .btp-app .btp-client-card-actions button svg{
  flex:0 0 17px!important;width:17px!important;height:17px!important;
}

/* Área de resultado vazia: uma célula não é um card de venda.
   Mantém o colspan=6 e evita que CSS de cartões injete rótulos falsos. */
body .btp-app .btp-closing-table tbody tr.btp-empty-row{
  border:0!important;background:transparent!important;box-shadow:none!important;
}
body .btp-app .btp-closing-table tbody tr.btp-empty-row td.btp-empty{
  text-align:center!important;vertical-align:middle!important;
  border:1px solid #eae3d6!important;border-radius:16px!important;
  background:#faf9f6!important;color:#768394!important;
  padding:26px 22px!important;min-height:128px!important;
  box-sizing:border-box!important;white-space:normal!important;
}
body .btp-app .btp-closing-table tbody tr.btp-empty-row td.btp-empty::before{
  content:none!important;display:none!important;
}
body .btp-app .btp-closing-table tbody tr.btp-empty-row td.btp-empty strong{
  display:block!important;font-size:clamp(17px,2vw,21px)!important;
  line-height:1.25!important;margin:0 0 8px!important;
  color:#17273b!important;overflow-wrap:normal!important;
}
body .btp-app .btp-closing-table tbody tr.btp-empty-row td.btp-empty small{
  display:block!important;max-width:48ch!important;margin:0 auto!important;
  font-size:13px!important;line-height:1.55!important;color:#788596!important;
  overflow-wrap:normal!important;white-space:normal!important;
}

/* Header e CTA sempre ficam na mesma caixa, inclusive em split-screen. */
body .btp-app .btp-closing-page-head > [data-btp-manual-lead-open]{
  max-width:100%!important;min-width:0!important;flex-shrink:1!important;
  white-space:normal!important;text-align:center!important;line-height:1.25!important;
  gap:9px!important;overflow-wrap:normal!important;min-height:46px!important;
}
body .btp-app .btp-closing-page-head > [data-btp-manual-lead-open] svg{
  display:block!important;flex:0 0 18px!important;width:18px!important;height:18px!important;
  max-width:18px!important;max-height:18px!important;
}

/* Breakpoints pela largura UTIL da aplicação. A partir de 1100px
   o conteúdo deixa de tentar manter 3 grupos de filtros em uma linha. */
@container btp-content (max-width:1100px){
  body .btp-app .btp-client-toolbar{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:start!important;justify-content:stretch!important;gap:10px!important;
    height:auto!important;min-height:0!important;
  }
  body .btp-app .btp-client-toolbar>.btp-client-search{
    grid-column:1/-1!important;flex:none!important;width:100%!important;
    max-width:none!important;height:46px!important;min-height:46px!important;
    max-height:46px!important;
  }
  body .btp-app .btp-client-toolbar>.btp-client-tabs{
    width:100%!important;min-width:0!important;margin:0!important;
    justify-content:space-between!important;
  }
  body .btp-app .btp-closing-page-head{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;
    gap:14px!important;
  }
  body .btp-app .btp-closing-page-head>div{width:100%!important;max-width:none!important}
  body .btp-app .btp-closing-page-head>[data-btp-manual-lead-open]{
    align-self:flex-start!important;width:auto!important;max-width:100%!important;
    padding:12px 16px!important;
  }
  /* Um resultado sem registros não deve herdar min-width:860px da tabela. */
  body .btp-app .btp-closing-scroll{
    max-width:100%!important;min-width:0!important;overflow-x:auto!important;
    scrollbar-gutter:stable!important;
  }
  body .btp-app .btp-closing-table{width:100%!important;min-width:0!important}
  body .btp-app .btp-closing-table thead{display:none!important}
  body .btp-app .btp-closing-table tbody{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;min-width:0!important;gap:10px!important;
  }
  body .btp-app .btp-closing-table tbody tr.btp-empty-row{
    display:block!important;width:100%!important;min-width:0!important;
    padding:8px 10px 12px!important;margin:0!important;
  }
  body .btp-app .btp-closing-table tbody tr.btp-empty-row td.btp-empty{
    display:flex!important;flex-direction:column!important;align-items:center!important;
    justify-content:center!important;width:100%!important;max-width:100%!important;
    margin:0!important;padding:26px 24px!important;
  }
  body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row){
    display:block!important;width:100%!important;min-width:0!important;
    padding:12px!important;border:1px solid #e9e2d6!important;
    border-radius:16px!important;background:#fff!important;
  }
  body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row) td{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:5px!important;width:100%!important;min-width:0!important;
    padding:9px 0!important;white-space:normal!important;text-align:left!important;
  }
  body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row) td::before{
    content:attr(data-label)!important;display:block!important;
    font-size:12px!important;color:#8692a0!important;font-weight:800!important;
  }
  body .btp-app .btp-closing-table tbody tr:not(.btp-empty-row) td>*{
    max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important;
  }
}
@container btp-content (max-width:780px){
  body .btp-app .btp-client-toolbar{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-client-toolbar>.btp-client-tabs{grid-column:1!important}
  body .btp-app .btp-client-grid{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-closing-section-head{
    padding:18px 16px!important;gap:12px!important;
  }
  body .btp-app .btp-closing-section-head>div{min-width:0!important}
  body .btp-app .btp-closing-section-head p{max-width:100%!important}
  body .btp-app .btp-closing-page-head>[data-btp-manual-lead-open]{
    width:100%!important;justify-content:center!important;align-self:stretch!important;
  }
}
@container btp-content (max-width:520px){
  body .btp-app .btp-client-workspace{padding:12px!important}
  body .btp-app .btp-client-tabs{padding:3px!important;gap:1px!important}
  body .btp-app .btp-client-tabs button{
    flex:1 1 0!important;padding:8px 5px!important;font-size:12px!important;
    line-height:1.2!important;white-space:normal!important;
  }
  body .btp-app .btp-closing-section-head{align-items:flex-start!important}
  body .btp-app .btp-closing-count{padding:9px 10px!important;min-width:64px!important}
  body .btp-app .btp-closing-table tbody tr.btp-empty-row td.btp-empty{
    padding:22px 16px!important;min-height:118px!important;
  }
  body .btp-app .btp-client-card-actions{flex-direction:column!important;align-items:stretch!important}
  body .btp-app .btp-client-card-actions>*{width:100%!important;flex:0 0 auto!important}
}

/* v0.58.61 · lead qualification/discard, independent of sales losses */
body .btp-app .btp-discard-one{
  border-color:#e9d4a5!important;background:#fffaf0!important;color:#9d701d!important;
}
body .btp-app .btp-discard-one:hover,
body .btp-app .btp-discard-one:focus-visible{
  background:#f5e5bf!important;border-color:#d7aa4f!important;box-shadow:0 0 0 3px rgba(210,157,53,.14)!important;
}
body .btp-app .btp-discard-reason-chip{
  display:inline-flex;max-width:100%;align-items:center;min-width:0;margin-top:7px;
  border:1px solid #e4d1a7;border-radius:999px;background:#fbf5e7;
  color:#855a0e;font-size:12px;font-weight:750;padding:5px 10px;
  white-space:normal;overflow-wrap:anywhere;line-height:1.4;
}
body .btp-app .btp-lead-kpis .btp-discard-kpi.is-active{background:#192a40;color:#f4c765;}
body .btp-app .btp-bulk-actions .btp-bulk-discard{border-color:#d7ae64!important;color:#fff2cf!important;}
body .btp-discard-backdrop[hidden]{display:none!important}
body .btp-discard-backdrop{
  position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;
  padding:clamp(12px,3vw,28px);background:rgba(9,19,31,.7);backdrop-filter:blur(5px);
  overflow-y:auto;overscroll-behavior:contain;
}
body .btp-discard-modal{
  width:min(100%,660px);max-height:min(90dvh,850px);display:flex;flex-direction:column;
  min-width:0;overflow:hidden;flex-shrink:0;border:1px solid #e9dbbf;border-radius:24px;
  background:#fffdfa;color:#192a40;box-shadow:0 30px 90px rgba(6,15,27,.27);
}
body .btp-discard-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  border-bottom:1px solid #eee4d3;padding:22px clamp(18px,3vw,28px) 18px;min-width:0;
}
body .btp-discard-head>div{min-width:0;flex:1}
body .btp-discard-head span{font-size:12px;letter-spacing:.08em;font-weight:850;color:#a47418}
body .btp-discard-head h3{font-size:clamp(22px,3vw,27px);line-height:1.18;margin:6px 0;color:#17263a}
body .btp-discard-head p{font-size:13px;color:#657180;line-height:1.5;margin:0}
body .btp-discard-x{
  border:1px solid #eadcc4;border-radius:50%;background:#fffaf1;color:#27374b;
  display:grid;place-items:center;padding:0;flex:0 0 40px;width:40px;height:40px;
  font-size:26px;line-height:1;cursor:pointer;
}
body .btp-discard-x:hover,body .btp-discard-x:focus-visible{background:#f8e9c8;outline:2px solid #d7a849;outline-offset:1px}
body .btp-discard-form{display:flex;flex-direction:column;gap:15px;overflow:auto;min-height:0;padding:20px clamp(18px,3vw,28px) 24px;scrollbar-color:#d7a849 #fbf7ee}
body .btp-discard-count{margin:0;font-size:13px;font-weight:650;color:#58677a}
body .btp-discard-reasons{padding:0;border:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-width:0}
body .btp-discard-reasons legend{font-size:14px;font-weight:800;color:#223145;padding-bottom:12px}
body .btp-discard-choice{display:flex;gap:10px;align-items:center;min-width:0;min-height:54px;border:1px solid #e9dfd0;
  border-radius:13px;padding:12px;background:#fff;cursor:pointer;line-height:1.4;font-size:13px;color:#233448;font-weight:700;overflow-wrap:anywhere}
body .btp-discard-choice:has(input:checked){background:#fff5dd;border-color:#cda147;box-shadow:0 0 0 2px rgba(207,156,49,.1)}
body .btp-discard-choice input{margin:0;flex:0 0 17px;accent-color:#bf8b20;width:17px;height:17px}
body .btp-discard-note{display:grid;gap:8px;color:#26364b;font-size:13px;font-weight:750}
body .btp-discard-note textarea{min-height:80px;max-width:100%;width:100%;box-sizing:border-box;resize:vertical;
  padding:12px 14px;border:1px solid #e3d8c7;border-radius:14px;background:#fff;color:#182a3d;font:inherit;font-weight:500;font-size:13px;line-height:1.55}
body .btp-discard-note textarea:focus{outline:2px solid #d7ab51;outline-offset:1px}
body .btp-discard-error{margin:0;padding:10px 12px;border:1px solid #d5a970;border-radius:12px;background:#fff7e7;color:#7b4719;font-size:13px;line-height:1.5}
body .btp-discard-error[hidden]{display:none!important}
body .btp-discard-footer{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid #eee5d5;padding-top:18px;min-width:0}
body .btp-discard-footer button{min-height:44px;max-width:100%;font-size:13px!important;border-radius:999px;
  padding:10px 18px;display:inline-flex;align-items:center;justify-content:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
body .btp-discard-footer .btp-primary{background:linear-gradient(180deg,#f1cf80,#d8a342);color:#19283a;border:1px solid #c99432;font-weight:850}
body .btp-discard-footer .btp-ghost{background:#fffaf0;color:#192a40;border:1px solid #ead9b6}
body .btp-discard-footer button:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){
  body .btp-discard-backdrop{padding:10px;align-items:center}
  body .btp-discard-modal{border-radius:19px;max-height:94dvh}
  body .btp-discard-reasons{grid-template-columns:minmax(0,1fr)}
  body .btp-discard-choice{min-height:46px}
  body .btp-discard-footer button{flex:1 1 160px}
}
@media (prefers-reduced-motion:reduce){body .btp-discard-modal{scroll-behavior:auto}}
body .btp-app .btp-discard-reason-chip.btp-discard-show{cursor:pointer;font-family:inherit;text-align:left;}
body .btp-app .btp-discard-reason-chip.btp-discard-show:hover{border-color:#c79a44;background:#f4e5c1}
body .btp-discard-detail-body{padding:22px clamp(18px,3vw,28px) 24px;display:grid;gap:12px;overflow:auto;min-width:0}
body .btp-discard-detail-body>strong{font-size:17px;color:#15263a;overflow-wrap:anywhere}
body .btp-discard-detail-body>p{font-size:13px;line-height:1.6;white-space:pre-wrap;color:#37475a;margin:0;overflow-wrap:anywhere}
body .btp-discard-detail-body>small{font-size:12px;color:#7d8a96}

/* 0.59.0 · Oferta beta verificável, sem novos acentos fora da marca. */
body .btp-app .btp-beta-offer-banner{display:grid;gap:6px;margin:12px 0 20px;padding:16px 19px;background:#fff9ec;border:1px solid #e8c985;border-radius:18px;color:#1a2b3d;font-size:13px;line-height:1.5;max-width:100%;min-width:0}
body .btp-app .btp-beta-offer-banner strong{color:#9d6b16;font-size:14px}
body .btp-app .btp-beta-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;min-width:0}
body .btp-app .btp-beta-price s{font-size:14px;color:#a8b4c1}
body .btp-app .btp-beta-price strong{font-size:clamp(24px,3vw,34px);line-height:1.15;color:#f3cb70;white-space:nowrap}
body .btp-app .btp-beta-price span,body .btp-app .btp-beta-renewal{font-size:13px;line-height:1.5;color:inherit}
body .btp-app .btp-beta-renewal-checkout{display:block!important;font-size:13px!important;color:#f2d795!important;line-height:1.55!important}
body .btp-app .btp-beta-renewal-checkout strong{color:#fff}
body .btp-app .btp-subscription-promo[hidden]{display:none!important}
@container (max-width:800px){body .btp-app .btp-plan-comparison-v2{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:540px){body .btp-app .btp-beta-offer-banner{padding:13px 14px}body .btp-app .btp-beta-price strong{font-size:27px}}

/* v0.59.2 — Secure checkout diagnostics: no financial data in UI codes */
.btp-checkout-diagnostic{display:block;color:#657386;font-size:12px;font-weight:650;margin:12px 0;letter-spacing:.025em;overflow-wrap:anywhere}
.btp-checkout-recovery-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:14px}
.btp-checkout-recovery-actions>button{max-width:100%;min-height:42px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:640px){.btp-checkout-recovery-actions{flex-direction:column}.btp-checkout-recovery-actions>button{width:100%}}

/* v0.59.4 — Interactive service value disclosures and accessible exchange-rate grid. */
body .btp-app .btp-view[data-view="configuracoes"] .btp-service-values>summary{
  min-height:58px;user-select:none;touch-action:manipulation;outline-offset:-3px;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-service-values>summary:focus-visible{
  outline:2px solid #bc8725;border-radius:15px;box-shadow:inset 0 0 0 2px rgba(188,135,37,.14);
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-service-values[open]>summary{
  background:#fff9ed;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-service-values-grid{
  padding-top:12px;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-fx-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;margin-top:14px;min-width:0;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-fx-grid>label{
  display:grid;gap:6px;min-width:0;border:1px solid #eae2d6;border-radius:13px;padding:11px;background:#fff;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-fx-grid>label>span{
  color:#3d4d61;font-size:12px;font-weight:750;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-fx-grid>label>input{
  display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;
}
body .btp-app .btp-view[data-view="configuracoes"] .btp-fx-grid>label>small{
  color:#788698;font-size:12px;line-height:1.45;overflow-wrap:anywhere;
}

/* v0.59.7: Keep the pitch readable on narrow screens and preserve paragraphs. */
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-suggestion p[data-btp-secure-pitch-text]{white-space:pre-line!important;overflow-wrap:break-word!important;font-size:15px!important;line-height:1.7!important;}
@media(max-width:760px){body .btp-app .btp-modal.is-lead-drawer .btp-pitch-suggestion p[data-btp-secure-pitch-text]{font-size:15px!important;line-height:1.65!important;}}

/* ByThomas Prospect 0.59.8 — abordagem contextual com visualização legível */
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-suggestion{
  padding:clamp(17px,2.5vw,24px)!important;
  border:1px solid #edcf91!important;
  border-radius:22px!important;
  background:linear-gradient(140deg,#fffaf0,#f6efdf)!important;
  color:#24303b!important;
  box-sizing:border-box;min-width:0;overflow-wrap:anywhere;
}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-intro>span{display:block;color:#987025;font-size:12px!important;letter-spacing:.14em;font-weight:800}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-intro h3{font-size:clamp(19px,2vw,23px)!important;line-height:1.3!important;color:#24303b;margin:7px 0!important}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-intro p{font-size:14px!important;color:#667180!important;line-height:1.55!important;margin:0 0 16px!important}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-style-buttons{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:13px 0!important}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-style-buttons button{
  min-height:38px;max-width:100%;background:rgba(255,255,255,.76)!important;color:#343d49!important;
  border:1px solid #e5d6b6!important;border-radius:30px!important;font-size:14px!important;
  font-weight:650!important;line-height:1.3;padding:8px 13px;cursor:pointer;transition:background .15s,border-color .15s;
}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-style-buttons button:hover{background:#f4e8d0!important;border-color:#a67828!important;color:#242c33!important}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-style-buttons button[aria-pressed="true"]{background:#252c33!important;color:#fff!important;border-color:#252c33!important}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config{border:1px solid #e8d8b7;border-radius:16px;background:rgba(255,255,255,.55);margin:14px 0!important;min-width:0;overflow:hidden}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config summary{padding:13px 15px;display:flex;gap:10px;justify-content:space-between;align-items:center;cursor:pointer;font-size:14px!important;line-height:1.45;color:#343a43;font-weight:700;list-style:none}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config summary::-webkit-details-marker{display:none}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config summary i{flex-shrink:0;transition:transform .18s}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config[open] summary i{transform:rotate(180deg)}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:14px 15px 17px;border-top:1px solid #eadfca}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config-fields label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#35404d;font-size:14px!important;line-height:1.4;font-weight:650}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config-fields label small{color:#6b7480;font-size:13px!important;font-weight:400;line-height:1.5}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config-fields :is(textarea,input[type="url"],select){
  width:100%;max-width:100%;min-width:0;box-sizing:border-box;background:white!important;color:#1f2933!important;
  border:1px solid #d7cab1!important;border-radius:12px!important;padding:10px 12px!important;
  font-size:15px!important;line-height:1.5!important;font-family:inherit!important;outline-offset:2px;
}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config-fields textarea{resize:vertical;min-height:78px}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config-fields :is(textarea,input,select):focus-visible{outline:2px solid #af842e!important;border-color:#af842e!important}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-image-confirm{flex-direction:row!important;align-items:flex-start!important;gap:10px!important;cursor:pointer}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-image-confirm input{margin:4px 0 0!important;flex:0 0 auto;accent-color:#a67a27;width:17px!important;height:17px!important}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config-fields [hidden]{display:none!important}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config-actions small{font-size:12px!important;line-height:1.5;color:#676f78;flex:1 1 180px}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-suggestion p[data-btp-secure-pitch-text]{
  font-size:clamp(15px,1.4vw,17px)!important;line-height:1.65!important;color:#4e5b68!important;
  white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:normal;
  margin:17px 0!important;max-width:78ch;
}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-bottom{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-top:14px}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-bottom small{color:#666f79;font-size:13px!important;line-height:1.5;flex:1 1 190px}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-bottom button{min-height:39px;border-radius:100px;padding:8px 15px;white-space:normal}
@media(max-width:620px){
  body .btp-app .btp-modal.is-lead-drawer .btp-pitch-suggestion{padding:15px!important;border-radius:18px!important}
  body .btp-app .btp-modal.is-lead-drawer .btp-pitch-style-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  body .btp-app .btp-modal.is-lead-drawer .btp-pitch-style-buttons button{white-space:normal;text-align:center;min-height:44px}
  body .btp-app .btp-modal.is-lead-drawer .btp-pitch-config-fields{padding:12px;gap:13px}
  body .btp-app .btp-modal.is-lead-drawer .btp-pitch-suggestion p[data-btp-secure-pitch-text]{font-size:15.5px!important;line-height:1.68!important}
}

body .btp-app .btp-report-style-note{font-size:13px!important;line-height:1.55!important;color:#64707d!important;margin:12px 0 0!important;overflow-wrap:break-word;}

/* Follow-up is optional and never sent automatically. */
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-followup{margin:18px 0 0!important;border-top:1px solid #e4d1a9;padding:15px 0 0;min-width:0}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-followup summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-size:14px!important;line-height:1.5!important;font-weight:750!important;color:#333d48}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-followup summary::-webkit-details-marker{display:none}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-followup summary i{flex-shrink:0}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-followup p[data-btp-pitch-followup-text]{white-space:pre-wrap!important;font-size:15px!important;line-height:1.7!important;color:#4e5b68!important;overflow-wrap:anywhere;margin:13px 0!important}
body .btp-app .btp-modal.is-lead-drawer .btp-pitch-followup small{display:block;color:#6e7680;font-size:12px!important;line-height:1.5!important;margin-top:8px}

/* 0.59.9 · Central de mensagens: CSS isolado, responsivo à largura REAL do painel */
body .btp-app .btp-view[data-view="mensagens"]{container-type:inline-size;min-width:0;max-width:100%;overflow:visible}
body .btp-app .btp-view[data-view="mensagens"] :is(.btp-message-card,.btp-message-main,.btp-message-list-copy,.btp-message-actions,.btp-message-title-line,.btp-message-preview){min-width:0;max-width:100%;box-sizing:border-box}
body .btp-app .btp-message-library-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;padding:0;width:100%;max-width:100%;min-width:0}
body .btp-app .btp-message-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0}
body .btp-app .btp-message-tabs button{appearance:none;min-height:44px;min-width:0;border:1px solid #e6d6b7;border-radius:999px;background:#fffdfa;padding:10px 17px;color:#354253;font-size:14px;font-weight:750;line-height:1.35;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease;white-space:normal;text-align:center;overflow-wrap:break-word}
body .btp-app .btp-message-tabs button.is-active,body .btp-app .btp-message-tabs button[aria-pressed="true"]{background:#1d252c;border-color:#1d252c;color:#fff}
body .btp-app .btp-message-tabs button:hover:not(.is-active){border-color:#d7a84b;color:#8b5f1a;background:#fff8e9}
body .btp-app .btp-message-library-top>.btp-primary{white-space:normal;min-height:44px;border-radius:999px!important;flex-shrink:0;padding:10px 17px!important}
body .btp-app .btp-message-list-copy .btp-message-preview{font-size:14px!important;line-height:1.6!important;overflow-wrap:anywhere;word-break:normal;hyphens:none}
body .btp-app .btp-message-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body .btp-app .btp-message-title-line h3{min-width:0;max-width:100%;overflow-wrap:break-word;line-height:1.35!important}
body .btp-app .btp-message-service-badge{max-width:100%;overflow-wrap:break-word}
body .btp-app .btp-message-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
body .btp-app .btp-message-row-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;max-width:100%;min-width:0;flex:1 1 112px;padding:10px 13px!important;border-radius:999px!important;text-wrap:balance;overflow-wrap:break-word;line-height:1.25!important;font-size:13px!important}
body .btp-app .btp-message-row-actions button svg,body .btp-app .btp-message-row-actions button img{width:16px!important;height:16px!important;flex:0 0 16px;object-fit:contain}
body .btp-app .btp-message-no-results{padding:32px 16px}
body .btp-app :is(.btp-message-library-top button,.btp-composer button,.btp-composer select,.btp-composer input,.btp-composer textarea):focus-visible{outline:3px solid rgba(196,137,37,.55)!important;outline-offset:2px!important}

/* Message composer: fixed modal with local scrolling, no nested horizontal overflow */
body .btp-composer{display:none;position:fixed!important;inset:0;z-index:2147482500!important;padding:clamp(10px,2vw,24px);background:rgba(10,16,24,.68);backdrop-filter:blur(5px);overflow-y:auto;overscroll-behavior:contain;align-items:flex-start;justify-content:center;box-sizing:border-box}
body .btp-composer.is-open{display:flex!important}
body .btp-composer *,body .btp-composer *::before,body .btp-composer *::after{box-sizing:border-box}
body .btp-composer .btp-composer-dialog{display:flex;flex-direction:column;position:relative;isolation:isolate;width:min(850px,100%);max-width:100%;max-height:calc(100dvh - 2 * clamp(10px,2vw,24px));margin:auto 0;min-width:0;border:1px solid #e6d8be;border-radius:24px;background:linear-gradient(165deg,#fffdf9 0%,#fff 72%);box-shadow:0 24px 85px rgba(5,13,24,.26);overflow:hidden;color:#24303e;font-family:inherit}
body .btp-composer .btp-composer-header{position:relative;flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:23px 26px 17px;border-bottom:1px solid #efe4d2;background:#fffaf0;min-width:0}
body .btp-composer .btp-composer-header>div{min-width:0;flex:1 1 auto;padding-right:6px}
body .btp-composer .btp-composer-header span{display:block;font-size:12px;line-height:1.35;letter-spacing:.12em;color:#a67521;font-weight:850}
body .btp-composer .btp-composer-header h3{font-size:clamp(20px,2.2vw,27px)!important;line-height:1.2!important;color:#192330!important;margin:7px 0!important;overflow-wrap:break-word}
body .btp-composer .btp-composer-header p{font-size:14px!important;line-height:1.5!important;margin:0!important;color:#647183;overflow-wrap:break-word}
body .btp-composer .btp-composer-close{width:42px;height:42px;min-width:42px;display:grid;place-items:center;padding:0!important;flex:0 0 42px;background:#202933;border:1px solid #202933;border-radius:50%;color:#f4cd79;font-size:25px!important;line-height:1;cursor:pointer}
body .btp-composer .btp-composer-content{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;min-height:0;min-width:0;padding:20px 26px 24px;overscroll-behavior:contain;scrollbar-gutter:stable}
body .btp-composer :is(.btp-composer-meta,.btp-composer-meta.is-secondary){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:14px;margin-bottom:14px;min-width:0}
body .btp-composer label{display:grid;gap:7px;color:#303c4a;font-size:14px;font-weight:750;line-height:1.45;min-width:0;overflow-wrap:break-word}
body .btp-composer label small{font-size:12px!important;line-height:1.5;color:#78818b;font-weight:450;min-width:0}
body .btp-composer :is(input,select,textarea){display:block;width:100%;max-width:100%;min-width:0;min-height:46px;margin:0!important;padding:11px 13px!important;border:1px solid #ddcbaa!important;border-radius:14px!important;background:#fff!important;color:#283644!important;font:inherit;font-size:15px!important;line-height:1.45!important;box-shadow:none!important}
body .btp-composer textarea{min-height:190px;max-height:45vh;resize:vertical;white-space:pre-wrap;overflow-wrap:break-word}
body .btp-composer :is(input,select):focus,body .btp-composer textarea:focus{border-color:#c38a2d!important;box-shadow:0 0 0 3px rgba(217,170,75,.16)!important;outline:none!important}
body .btp-composer .btp-composer-help{display:flex;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:10px 0 16px;color:#7c8692;font-size:12px;line-height:1.5}
body .btp-composer .btp-composer-preview-box{min-width:0;padding:15px 18px;border:1px solid #ecd9b4;border-radius:17px;background:#fff9ed}
body .btp-composer .btp-composer-preview-box>strong{display:block;margin-bottom:10px;color:#a17022;font-size:12px;font-weight:850;letter-spacing:.08em}
body .btp-composer #btp-compose-preview{color:#354454;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font-size:15px;line-height:1.7;min-height:50px}
body .btp-composer .btp-compose-error{border:1px solid #ebaf9d;background:#fff0eb;color:#a5331b;border-radius:12px;padding:12px 14px;font-size:13px;font-weight:650;line-height:1.4;margin:12px 0 0;overflow-wrap:anywhere}
body .btp-composer .btp-compose-error[hidden],body .btp-composer #btp-compose-delete[hidden]{display:none!important}
body .btp-composer .btp-composer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:15px 22px 18px;background:#fffdf9;border-top:1px solid #eee2cc;flex:0 0 auto;min-width:0}
body .btp-composer .btp-composer-spacer{flex:1 1 8px;min-width:0}
body .btp-composer .btp-composer-actions button{min-width:0;max-width:100%;min-height:43px;padding:10px 14px!important;border-radius:999px!important;line-height:1.25!important;font-size:13px!important;font-weight:750!important;white-space:normal;text-align:center;overflow-wrap:break-word}
body .btp-composer :is(.btp-composer-actions button,#btp-compose-copy):disabled{opacity:.55;cursor:not-allowed}
body .btp-composer #btp-compose-delete{background:#fff7f5;color:#a5392e;border-color:#e4b7b1}
body .btp-composer #btp-compose-copy{background:#1c252f!important;color:#fff!important;border-color:#1c252f!important}
body .btp-composer #btp-compose-save-lead{background:#c6963e!important;color:#151b21!important;border-color:#c6963e!important}
/* Lead window: remove the score strip's sticky overlay and keep it in normal flow */
body .btp-app .btp-modal.is-lead-drawer .btp-lead-decision-bar{position:relative!important;top:auto!important;z-index:1!important;backdrop-filter:none!important;background:transparent!important;flex-wrap:wrap;max-width:100%;min-width:0}
body .btp-app .btp-modal.is-lead-drawer .btp-decision-meta{min-width:0;max-width:100%}
body .btp-app .btp-lead-message-launch{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;min-width:0;padding:18px;border:1px solid #e7d1a6;border-radius:20px;background:linear-gradient(135deg,#fffaf0,#f7edda)}
body .btp-app .btp-lead-message-launch-copy{min-width:0;flex:1 1 230px;max-width:100%}
body .btp-app .btp-lead-message-launch-copy>span{display:block;font-size:12px;font-weight:850;letter-spacing:.1em;color:#a37320}
body .btp-app .btp-lead-message-launch-copy h3{margin:6px 0 6px;font-size:19px;line-height:1.3;color:#202c3a;overflow-wrap:break-word}
body .btp-app .btp-lead-message-launch-copy p{margin:0;font-size:14px;line-height:1.65;color:#667282;overflow-wrap:break-word}
body .btp-app .btp-lead-message-launch>.btp-primary{min-height:44px;min-width:0;max-width:100%;border-radius:999px!important;padding:10px 18px!important;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:normal;text-align:center}

@container (max-width:850px){
  body .btp-app .btp-message-library-top{align-items:stretch}
  body .btp-app .btp-message-list-row{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  body .btp-app .btp-message-list-head{display:none!important}
  body .btp-app .btp-message-main{min-width:0}
  body .btp-app .btp-message-category-cell,body .btp-app .btp-message-channel-cell{display:inline-flex!important;max-width:100%;justify-content:flex-start!important}
  body .btp-app .btp-message-row-actions{justify-content:flex-start!important;width:100%}
  body .btp-app .btp-message-row-actions button{flex:0 1 auto}
}
@container (max-width:565px){
  body .btp-app .btp-message-library-top{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  body .btp-app .btp-message-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  body .btp-app .btp-message-tabs button{font-size:13px;padding:10px 9px}
  body .btp-app .btp-message-tabs button:first-child{grid-column:1/-1}
  body .btp-app .btp-message-library-top>.btp-primary{width:100%;justify-content:center}
  body .btp-app .btp-message-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body .btp-app .btp-message-row-actions button{width:100%;flex:none}
}
@media(max-width:760px){
  body .btp-composer{padding:10px}
  body .btp-composer .btp-composer-dialog{border-radius:18px;max-height:calc(100dvh - 20px)}
  body .btp-composer .btp-composer-header{padding:16px 16px 13px;gap:10px}
  body .btp-composer .btp-composer-header h3{font-size:21px!important}
  body .btp-composer .btp-composer-header p{font-size:13px!important}
  body .btp-composer .btp-composer-content{padding:15px 16px 18px;scrollbar-gutter:auto}
  body .btp-composer .btp-composer-actions{padding:12px 14px;gap:8px}
  body .btp-composer .btp-composer-spacer{display:none}
  body .btp-composer .btp-composer-actions button{flex:1 1 calc(50% - 8px)}
  body .btp-composer :is(.btp-composer-meta,.btp-composer-meta.is-secondary){grid-template-columns:minmax(0,1fr);gap:10px}
  body .btp-composer textarea{min-height:180px}
  body .btp-app .btp-lead-message-launch>.btp-primary{width:100%}
}
@media(max-width:440px){
  body .btp-composer{padding:0}
  body .btp-composer .btp-composer-dialog{border-radius:0;max-height:100dvh;min-height:100dvh;width:100%}
  body .btp-composer .btp-composer-header{padding:13px 12px}
  body .btp-composer .btp-composer-content{padding:13px 12px}
  body .btp-composer .btp-composer-actions{padding:10px 12px}
  body .btp-composer .btp-composer-actions button{font-size:12px!important;min-height:44px}
  body .btp-app .btp-lead-message-launch{padding:14px;gap:12px}
}
@media(prefers-reduced-motion:reduce){body .btp-composer *,body .btp-app .btp-message-tabs button{transition:none!important;animation:none!important}}
/* Dedicated client filter, shown only on the saved-by-client tab */
body .btp-app .btp-message-client-filter{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;min-width:0;max-width:100%;margin:0 0 14px;padding:14px 16px;border:1px solid #e8d7b9;border-radius:16px;background:#fffaf1}
body .btp-app .btp-message-client-filter[hidden]{display:none!important}
body .btp-app .btp-message-client-filter label{font-size:14px;line-height:1.4;color:#374250;font-weight:750;min-width:0}
body .btp-app .btp-message-client-filter select{flex:1 1 240px;min-width:0;max-width:100%;min-height:43px;padding:9px 12px;border:1px solid #dfcaa2;border-radius:12px;color:#293543;font-size:14px;background:#fff}
body .btp-app .btp-message-client-filter select:focus-visible{outline:3px solid rgba(199,148,51,.35);outline-offset:2px}
@container (max-width:550px){body .btp-app .btp-message-client-filter{align-items:stretch}body .btp-app .btp-message-client-filter>*{width:100%;flex:1 1 100%}}
/* Container query descendants only: keep cards readable with a wide fixed sidebar. */
@container (max-width:900px){
  .btp-message-list-row{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .btp-message-list-head{display:none!important}
  .btp-message-list-row .btp-message-main{width:100%!important;max-width:100%!important;min-width:0!important}
  .btp-message-list-row .btp-message-list-copy{min-width:0!important;max-width:100%!important}
  .btp-message-list-row .btp-message-title-line h3{display:block!important;white-space:normal!important;text-overflow:clip!important;overflow:visible!important;word-break:normal!important;overflow-wrap:break-word!important}
  .btp-message-list-row .btp-message-preview{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;display:block!important;max-height:none!important;line-height:1.55!important;overflow-wrap:break-word!important}
  .btp-message-list-row :is(.btp-message-category-cell,.btp-message-channel-cell){display:flex!important;justify-content:flex-start!important;min-width:0!important}
  .btp-message-list-row .btp-message-actions{display:flex!important;justify-content:flex-start!important;width:100%!important;min-width:0!important}
}
@container (max-width:540px){
  .btp-message-list-row .btp-message-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .btp-message-list-row .btp-message-actions button{width:100%!important;max-width:100%!important;min-width:0!important;flex:none!important}
}
@container (max-width:900px){
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row .btp-message-title-line h3{white-space:normal!important;text-overflow:clip!important;overflow:visible!important;max-width:100%!important}
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row .btp-message-preview{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;-webkit-line-clamp:unset!important;max-height:none!important;line-height:1.6!important}
}
/* Stable fallback for browsers where container queries lose to legacy !important rules. */
@media (max-width:1450px){
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row .btp-message-title-line h3{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.4!important}
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row .btp-message-preview{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-height:none!important;-webkit-line-clamp:unset!important;line-height:1.6!important}
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row .btp-message-actions{width:100%!important;justify-content:flex-start!important}
}
/* Prevent implicit grid tracks created by legacy grid-column placements. */
@media (max-width:1450px){
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row > *{grid-column:1 / -1!important;grid-row:auto!important;min-width:0!important;max-width:100%!important}
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row .btp-message-title-line{display:flex!important;flex-wrap:wrap!important;min-width:0!important}
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row .btp-message-title-line h3{display:block!important;max-width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:break-word!important;overflow:visible!important;text-overflow:clip!important}
}
body .btp-app .btp-message-list-meta{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px 14px;min-width:0;max-width:100%;font-size:13px;line-height:1.5}
body .btp-app .btp-message-list-meta .btp-message-category-cell,body .btp-app .btp-message-list-meta .btp-message-channel-cell{display:inline-flex!important;align-items:center;min-width:0;max-width:100%;flex:0 1 auto!important}
body .btp-app .btp-message-list-meta .btp-message-channel{white-space:normal;overflow-wrap:break-word}
@media(max-width:1450px){body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row .btp-message-list-meta{grid-column:1/-1!important;grid-row:auto!important}}
/* 3 semantic columns on truly wide desktops; no outdated 4-column header. */
body .btp-app .btp-view[data-view="mensagens"] .btp-message-list-head{display:none!important}
@media(min-width:1451px){
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(130px,220px) minmax(220px,295px)!important;align-items:center!important;gap:16px!important}
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row > *{grid-column:auto!important;grid-row:auto!important;min-width:0!important;max-width:100%!important}
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row .btp-message-list-meta{display:grid!important;grid-template-columns:minmax(0,1fr);gap:6px}
 body .btp-app .btp-view[data-view="mensagens"] .btp-message-card.btp-message-list-row .btp-message-title-line h3{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
}

/* ============================================================================
   v0.60.0 — Message interactions and Prospectar action visibility
   All breakpoints use real content width, including desktop side panels.
============================================================================ */
/* Keep icon and full label comfortably inside both action buttons. */
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions :is(.btp-compose-message,.btp-view-message){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:11px 18px!important;
  min-height:44px!important;
  min-width:0!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  overflow:visible!important;
  line-height:1.3!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions :is(.btp-compose-message,.btp-view-message) span:last-child{
  display:inline-block!important;
  padding:0 2px!important;
  white-space:nowrap!important;
  text-overflow:clip!important;
  overflow:visible!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
  flex-wrap:wrap!important;
  max-width:100%!important;
}
body .btp-app .btp-view[data-view="mensagens"] .btp-message-row-actions :is(.btp-compose-message,.btp-view-message){
  flex:1 1 auto!important;
  width:auto!important;
  max-width:100%!important;
}
/* Reduce the perceived delay of opening the preview without removing transition. */
body .btp-app .btp-message-viewer{
  transition:opacity .12s ease-out, visibility .12s ease-out!important;
  backdrop-filter:blur(2px)!important;
  -webkit-backdrop-filter:blur(2px)!important;
}
body .btp-app .btp-message-viewer-card{will-change:auto!important}
@media (prefers-reduced-motion:reduce){body .btp-app .btp-message-viewer{transition:none!important;backdrop-filter:none!important}}


/* ================================================================
   v0.60.1 · Prospectar: tabela compacta com acoes em duas colunas
   Observacao: alteracoes escopadas a Prospectar; Leads nao e afetado.
   Usar a largura REAL do conteudo, inclusive split-screen e sidebar.
   ================================================================ */
/* Nunca aumentar a largura da pagina para acomodar botoes. */
body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-table-wrap{
  min-width:0!important;max-width:100%!important;
}
body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-quick-actions{
  display:grid!important;
  grid-template-columns:repeat(2,38px)!important;
  grid-auto-rows:38px!important;
  justify-content:end!important;
  align-content:center!important;
  align-items:center!important;
  gap:7px!important;
  width:fit-content!important;
  max-width:100%!important;
  margin:0!important;
}
body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-quick-actions>.btp-icon-action{
  display:inline-grid!important;
  place-items:center!important;
  width:38px!important;height:38px!important;
  min-width:38px!important;min-height:38px!important;
  max-width:38px!important;max-height:38px!important;
  padding:0!important;margin:0!important;
  flex:none!important;
  box-sizing:border-box!important;
}
body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-quick-actions>.btp-icon-action :is(svg,img){
  width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;
}
/* Mesmo uma pagina com sidebar continua tabela ao dispor de 980 px
   de largura util. Override deliberado do breakpoint legado 1080. */
@container btp-content (min-width:980px){
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-table-wrap{
    overflow-x:hidden!important;
    width:100%!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads{
    display:table!important;table-layout:fixed!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads thead{display:table-header-group!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody{display:table-row-group!important;padding:0!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    display:table-row!important;height:auto!important;
    background:transparent!important;box-shadow:none!important;border-radius:0!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row[hidden]{display:none!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td{
    display:table-cell!important;vertical-align:middle!important;
    min-width:0!important;max-width:none!important;
    width:auto!important;padding:15px 9px!important;
    border:0!important;border-bottom:1px solid #eee7dc!important;
    text-align:left!important;overflow-wrap:break-word!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td::before{content:none!important;display:none!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th{
    padding:13px 9px!important;white-space:nowrap!important;vertical-align:middle!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(1){width:20%!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(2){width:17%!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(3){width:14%!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(4){width:10%!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(5){width:25%!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(6){width:14%!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads .btp-quick-actions{
    margin-left:auto!important;margin-right:0!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-col-actions{min-width:0!important}
}
/* Largura intermediaria: card horizontal compacto (3 linhas),
   evitando o cartao de altura excessiva com 6 campos empilhados. */
@container btp-content (min-width:641px) and (max-width:979px){
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row{
    grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr)!important;
    grid-template-areas:"company contact" "site reviews" "opportunity actions"!important;
    gap:12px 20px!important;padding:16px 18px!important;
    align-items:start!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads .btp-col-actions,
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads .btp-col-opportunity{
    padding:10px 0 0!important;border-top:1px solid #eee7dc!important;border-left:0!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-quick-actions{justify-content:start!important}
}
@container btp-content (max-width:979px){
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-table-wrap{overflow-x:hidden!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads{width:100%!important;min-width:0!important;max-width:100%!important}
}
@container btp-content (max-width:640px){
  body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-quick-actions{justify-content:start!important}
}
/* Versao do plugin: no rodape do menu, sem ocupar o dashboard. */
@media(min-width:721px){
  body .btp-app .btp-sidebar .btp-build-version{
    display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;
    gap:3px;flex:0 0 auto;min-width:0;max-width:100%;
    margin-top:8px;padding:11px 5px 3px;
    border-top:1px solid rgba(217,173,82,.15);
    color:#9fa9b6;font-size:11px;line-height:1.5;font-weight:650;
    letter-spacing:.02em;white-space:nowrap;
  }
  body .btp-app .btp-nav-build-mobile{display:none!important}
}
@media(min-width:721px) and (max-width:1320px){
  body .btp-app .btp-sidebar .btp-build-version{font-size:10px;padding:8px 0 1px;margin-top:5px;letter-spacing:0}
  body .btp-app .btp-sidebar .btp-build-version-name{display:none}
}
@media(max-width:720px){
  body .btp-app .btp-sidebar .btp-build-version{display:none!important}
  body .btp-app .btp-nav-more .btp-nav-build-mobile{
    display:block!important;grid-column:1/-1;min-width:0;
    padding:11px 5px 4px;margin-top:3px;
    border-top:1px solid rgba(217,173,82,.2);
    text-align:center;color:#b7ad9a;font-size:11px!important;
    font-weight:650;line-height:1.5;letter-spacing:.02em;
  }
}


/* v0.60.2 · Prospectar wider search / table breathing room / announcements */
body .btp-app .btp-view[data-view="prospectar"] .btp-prospect-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;max-width:100%!important;min-width:0!important;
}
body .btp-app .btp-view[data-view="prospectar"] .btp-search-panel{
  width:100%!important;min-width:0!important;max-width:none!important;
  padding:clamp(20px,2.4vw,32px)!important;box-sizing:border-box!important;
}
body .btp-app .btp-view[data-view="prospectar"] .btp-search-panel-head{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:16px!important;flex-wrap:wrap!important;margin-bottom:20px!important;
}
body .btp-app .btp-view[data-view="prospectar"] .btp-search-panel-head>div:first-child{
  flex:1 1 420px!important;min-width:0!important;max-width:72ch!important;
}
body .btp-app .btp-search-panel-head-actions{
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;
  gap:8px!important;flex:0 1 auto!important;min-width:0!important;
}
body .btp-app .btp-engine-help-link{
  border:0!important;background:transparent!important;padding:5px 0!important;
  color:#8b641d!important;font-size:12px!important;line-height:1.4!important;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;
  white-space:normal;text-align:right;
}
body .btp-app .btp-engine-help-link:focus-visible{outline:2px solid #bf8c2a!important;outline-offset:3px!important}
body .btp-app .btp-view[data-view="prospectar"] .btp-search-filters{
  padding:18px 20px!important;margin-top:18px!important;min-width:0!important;
}
body .btp-app .btp-view[data-view="prospectar"] .btp-search-filter-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;
}
body .btp-app .btp-view[data-view="prospectar"] .btp-search-filters-title{
  align-items:flex-start!important;gap:12px!important;
}
body .btp-app .btp-view[data-view="prospectar"] .btp-search-filters-title>small{max-width:55ch!important;line-height:1.5!important}
body .btp-app .btp-view[data-view="prospectar"] .btp-search-submit{
  width:auto!important;max-width:100%!important;min-height:48px!important;
  display:inline-flex!important;padding:12px 19px!important;
  margin-top:19px!important;text-align:center!important;justify-content:center!important;
}
@container btp-prospect-form (max-width:850px){
  body .btp-app .btp-view[data-view="prospectar"] .btp-search-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-search-panel-head-actions{align-items:flex-start!important}
}
@container btp-prospect-form (max-width:560px){
  body .btp-app .btp-view[data-view="prospectar"] .btp-search-filter-grid{grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-search-panel-head{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-search-filters{padding:15px!important}
  body .btp-app .btp-view[data-view="prospectar"] .btp-search-submit{width:100%!important;padding:12px 14px!important}
}
/* Compact table: keep actions away from card boundary, no blank strip between it and opportunity. */
@container btp-content (min-width:980px){
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(1){width:22%!important}
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(2){width:18%!important}
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(3){width:14%!important}
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(4){width:10%!important}
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(5){width:25%!important}
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(6){width:11%!important;text-align:center!important}
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads td.btp-col-actions{padding-inline:9px 15px!important}
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-col-actions .btp-quick-actions{
   justify-content:center!important;margin-inline:auto!important;
 }
}
/* Announcement UI, intentionally separate from task buttons. */
body .btp-app .btp-broadcast-item{
 display:grid;grid-template-columns:9px minmax(0,1fr) 32px;align-items:start;gap:11px;
 padding:15px 13px;margin-bottom:9px;border-radius:16px;
 border:1px solid #eee3cf;background:#fffdfa;min-width:0;
}
body .btp-app .btp-broadcast-item.is-unread{background:#fff7e8;border-color:#e9cd90}
body .btp-app .btp-broadcast-item:not(.is-unread)>.btp-notification-dot{background:#c2c9cf;box-shadow:none}
body .btp-app .btp-broadcast-item-copy{min-width:0;overflow-wrap:break-word}
body .btp-app .btp-broadcast-item-copy strong{display:block;font-size:14px;line-height:1.32;color:#172333}
body .btp-app .btp-broadcast-item-copy p{margin:6px 0;font-size:13px;line-height:1.6;color:#566579;white-space:normal;overflow-wrap:break-word}
body .btp-app .btp-broadcast-item-copy small{display:block;color:#976b23;font-size:11px;line-height:1.5}
body .btp-app .btp-broadcast-read{width:30px;height:30px;padding:0;display:grid;place-items:center;border:1px solid #e3d6bd;background:#fff;border-radius:10px;color:#865e16;cursor:pointer}
body .btp-app .btp-broadcast-action{margin-top:9px;max-width:100%;padding:8px 13px;border:1px solid #e7d2a3;border-radius:11px;background:#fff;color:#79500a;font-size:12px;font-weight:800;cursor:pointer}
body .btp-app .btp-broadcast-action:hover{background:#f8ebcc}
body.btp-broadcast-popup-open{overflow:hidden!important}
body .btp-app .btp-broadcast-popup{position:fixed!important;inset:0!important;display:grid!important;place-items:center!important;padding:18px!important;z-index:1000001!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .2s ease,visibility .2s ease!important}
body .btp-app .btp-broadcast-popup.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
body .btp-app .btp-broadcast-popup-backdrop{position:absolute;inset:0;background:rgba(8,15,23,.72);backdrop-filter:blur(3px)}
body .btp-app .btp-broadcast-popup-card{position:relative;width:min(540px,100%);max-height:min(85dvh,720px);overflow-y:auto;box-sizing:border-box;padding:clamp(22px,3.5vw,34px);border:1px solid #e6d3ab;border-radius:24px;background:linear-gradient(155deg,#fffefb,#fcf3e3);box-shadow:0 30px 110px rgba(6,13,23,.35);min-width:0}
body .btp-app .btp-broadcast-popup-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
body .btp-app .btp-broadcast-popup-head span{color:#a07321;font-size:12px;font-weight:900;letter-spacing:.12em}
body .btp-app .btp-broadcast-popup-head button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #e9d7b9;border-radius:12px;background:#fff;color:#1a2c41;font-size:22px;cursor:pointer}
body .btp-app .btp-broadcast-popup-card h2{margin:0 0 14px;color:#142132;font-size:clamp(23px,3vw,31px);line-height:1.2;overflow-wrap:break-word}
body .btp-app .btp-broadcast-popup-card p{margin:0;color:#566273;font-size:15px;line-height:1.68;overflow-wrap:break-word}
body .btp-app .btp-broadcast-popup-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:25px}
body .btp-app .btp-broadcast-popup-actions button{min-height:44px;padding:10px 19px}
body .btp-app :is(.btp-broadcast-action,.btp-broadcast-read,.btp-broadcast-popup button):focus-visible{outline:2px solid #d3a445!important;outline-offset:3px!important}
@media(max-width:540px){body .btp-app .btp-broadcast-popup{padding:12px!important}body .btp-app .btp-broadcast-popup-card{border-radius:18px;padding:22px 18px}body .btp-app .btp-broadcast-popup-actions{display:grid;grid-template-columns:1fr}body .btp-app .btp-broadcast-popup-actions button{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){body .btp-app .btp-broadcast-popup{transition:none!important}}
/* Final alignment: center the actual two-column group, not just its internal tracks. */
@container btp-content (min-width:980px){
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(5){width:23%!important}
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads th:nth-child(6){width:13%!important}
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads tbody tr.btp-lead-row>td.btp-col-actions{padding:15px 14px!important}
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-col-actions .btp-quick-actions{margin:0 auto!important;justify-content:center!important}
}
@container btp-content (min-width:980px){
 body .btp-app .btp-view[data-view="prospectar"] .btp-lead-mode-discovery .btp-qualified-table.has-leads .btp-col-actions .btp-quick-actions{
   margin-left:auto!important;margin-right:auto!important;
 }
}


/* v0.60.3 — Public broadcast dialog: precise icon centering and responsive layout.
   Scope all overrides to this dialog, leaving CRM/tool buttons unchanged. */
body .btp-app #btp-broadcast-popup .btp-broadcast-popup-card{
  max-width:100%;
  max-height:min(720px,calc(100dvh - 36px));
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
body .btp-app #btp-broadcast-popup .btp-broadcast-popup-head{
  min-width:0;
  align-items:center!important;
  gap:16px;
}
body .btp-app #btp-broadcast-popup .btp-broadcast-popup-head>span{
  min-width:0;
  flex:1 1 auto;
  line-height:1.45;
  overflow-wrap:break-word;
}
body .btp-app #btp-broadcast-popup button.btp-broadcast-popup-dismiss{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  flex:0 0 40px!important;
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #ead6b3!important;
  border-radius:12px!important;
  background:#fffdf9!important;
  background-image:none!important;
  color:#243244!important;
  line-height:0!important;
  font-size:0!important;
  box-sizing:border-box!important;
  text-align:center!important;
  text-indent:0!important;
  cursor:pointer!important;
  box-shadow:none!important;
  transform:none!important;
  transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease!important;
}
body .btp-app #btp-broadcast-popup button.btp-broadcast-popup-dismiss>svg{
  display:block!important;
  flex:none!important;
  width:18px!important;
  height:18px!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  vertical-align:middle!important;
  transform:none!important;
  overflow:visible!important;
  pointer-events:none!important;
}
body .btp-app #btp-broadcast-popup button.btp-broadcast-popup-dismiss:hover{
  border-color:#d7a744!important;
  background:#fff5e4!important;
  color:#825c18!important;
}
body .btp-app #btp-broadcast-popup button.btp-broadcast-popup-dismiss:focus-visible{
  outline:3px solid rgba(211,164,69,.8)!important;
  outline-offset:3px!important;
}
body .btp-app #btp-broadcast-popup .btp-broadcast-popup-actions{
  align-items:center;
}
body .btp-app #btp-broadcast-popup .btp-broadcast-popup-actions button{
  display:inline-flex;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  padding:11px 20px!important;
  line-height:1.25!important;
  font-weight:750;
  text-align:center!important;
  white-space:normal;
  overflow-wrap:break-word;
}
@media(max-width:540px){
  body .btp-app #btp-broadcast-popup{
    padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;
  }
  body .btp-app #btp-broadcast-popup .btp-broadcast-popup-card{
    max-height:calc(100dvh - 24px);
    padding:22px 20px!important;
  }
  body .btp-app #btp-broadcast-popup .btp-broadcast-popup-head{
    margin-bottom:17px;
    gap:10px;
  }
  body .btp-app #btp-broadcast-popup .btp-broadcast-popup-head>span{
    font-size:11px;
    letter-spacing:.09em;
  }
  body .btp-app #btp-broadcast-popup .btp-broadcast-popup-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    width:100%;
  }
  body .btp-app #btp-broadcast-popup .btp-broadcast-popup-actions button{
    width:100%!important;
    max-width:100%!important;
  }
}
@media(max-height:430px){
  body .btp-app #btp-broadcast-popup .btp-broadcast-popup-card{
    max-height:calc(100dvh - 20px)!important;
    padding-block:15px!important;
    border-radius:17px;
  }
  body .btp-app #btp-broadcast-popup .btp-broadcast-popup-head{margin-bottom:10px!important}
  body .btp-app #btp-broadcast-popup .btp-broadcast-popup-actions{margin-top:16px!important}
}
@media(prefers-reduced-motion:reduce){
  body .btp-app #btp-broadcast-popup button.btp-broadcast-popup-dismiss{transition:none!important}
}


/* ================================================================
   v0.60.4 — FECHAMENTOS / CTA SEM QUEBRA
   Escopo fechado: somente cabecalho de Fechamentos. A largura REAL
   de btp-main guia a adaptacao para navegadores com painel lateral.
   Nao alterar modais, filtros ou botoes globais.
   ================================================================ */
body .btp-app .btp-view[data-view="fechamentos"] .btp-closing-page-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content!important;
  align-items:center!important;
  column-gap:clamp(20px,2.6cqw,40px)!important;
  row-gap:14px!important;
  width:100%!important;
  min-width:0!important;
}
body .btp-app .btp-view[data-view="fechamentos"] .btp-closing-page-head>div{
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
}
body .btp-app .btp-view[data-view="fechamentos"] .btp-closing-page-head>div p{
  max-width:100%!important;
  margin-bottom:0!important;
}
body .btp-app .btp-view[data-view="fechamentos"] .btp-closing-page-head>[data-btp-manual-lead-open]{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:end!important;
  align-self:center!important;
  box-sizing:border-box!important;
  width:max-content!important;
  min-width:max-content!important;
  max-width:100%!important;
  min-height:46px!important;
  padding:13px 21px!important;
  gap:9px!important;
  font-size:13px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-align:center!important;
}
body .btp-app .btp-view[data-view="fechamentos"] .btp-closing-page-head>[data-btp-manual-lead-open] svg{
  display:block!important;
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}
/* Ao faltar espaco, separa a acao em sua propria linha — nao reduz
   o texto nem forca quebras no rotulo. */
@container btp-content (max-width:890px){
  body .btp-app .btp-view[data-view="fechamentos"] .btp-closing-page-head{
    grid-template-columns:minmax(0,1fr)!important;
    row-gap:14px!important;
  }
  body .btp-app .btp-view[data-view="fechamentos"] .btp-closing-page-head>[data-btp-manual-lead-open]{
    justify-self:start!important;
    align-self:start!important;
    max-width:100%!important;
  }
}
@container btp-content (max-width:540px){
  body .btp-app .btp-view[data-view="fechamentos"] .btp-closing-page-head>[data-btp-manual-lead-open]{
    justify-self:stretch!important;
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    padding:12px 14px!important;
  }
}


/* =========================================================
   v0.60.5 — Prospectar lateral + Resultados com grafico mais folgado
========================================================= */
@container btp-content (max-width:1080px){
  body .btp-app .btp-view[data-view="prospectar"] .btp-prospect-head{
    align-items:stretch!important;
    gap:14px!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-prospect-head>div{
    min-width:0!important;
    flex:1 1 100%!important;
    max-width:none!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-search-history-shortcut{
    align-self:flex-start!important;
    max-width:100%!important;
    min-height:46px!important;
  }
}
@container btp-content (max-width:860px){
  body .btp-app .btp-view[data-view="prospectar"] .btp-prospect-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }
  body .btp-app .btp-view[data-view="prospectar"] .btp-search-history-shortcut{
    justify-self:start!important;
    white-space:nowrap!important;
  }
}
@container btp-content (max-width:620px){
  body .btp-app .btp-view[data-view="prospectar"] .btp-search-history-shortcut{
    width:100%!important;
    justify-content:center!important;
  }
}

@container btp-content (max-width:980px){
  body .btp-app .btp-view[data-view="resultados"] .btp-potential-history-card--chart .btp-tech-chart{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;
    scrollbar-gutter:stable both-edges!important;
    padding:16px 12px 10px!important;
  }
  body .btp-app .btp-view[data-view="resultados"] .btp-potential-history-card--chart .btp-tech-chart-bars{
    grid-template-columns:repeat(12,minmax(48px,1fr))!important;
    gap:12px!important;
    min-width:860px!important;
    padding-bottom:8px!important;
  }
  body .btp-app .btp-view[data-view="resultados"] .btp-potential-history-card--chart .btp-tech-chart-bars article{
    gap:7px!important;
    min-width:48px!important;
  }
  body .btp-app .btp-view[data-view="resultados"] .btp-potential-history-card--chart .btp-tech-chart-bars article>div{
    gap:4px!important;
  }
  body .btp-app .btp-view[data-view="resultados"] .btp-potential-history-card--chart .btp-tech-chart-bars strong,
  body .btp-app .btp-view[data-view="resultados"] .btp-potential-history-card--chart .btp-tech-chart-bars small{
    line-height:1.35!important;
  }
  body .btp-app .btp-view[data-view="resultados"] .btp-potential-history-card--chart .btp-tech-chart-line{
    left:12px!important;
    right:12px!important;
    width:calc(100% - 24px)!important;
  }
}
@container btp-content (max-width:720px){
  body .btp-app .btp-view[data-view="resultados"] .btp-potential-history-card--chart .btp-tech-chart-bars{
    min-width:920px!important;
    gap:14px!important;
  }
}


/* v0.61.5 — Comparativo anual da carteira (mantem os seis cards originais) */
body .btp-app .btp-client-annual-panel{padding:20px 22px!important;min-width:0;margin:0 0 18px;border-radius:22px!important}
body .btp-app .btp-client-annual-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;min-width:0}
body .btp-app .btp-client-annual-header>div:first-child{min-width:0;flex:1 1 280px}
body .btp-app .btp-client-annual-header span:first-child{color:#976b1b;font-weight:800;letter-spacing:.11em;font-size:12px}
body .btp-app .btp-client-annual-header h3{margin:5px 0 5px;color:#1b2838;font-size:21px;line-height:1.2}
body .btp-app .btp-client-annual-header p{margin:0;color:#758292;font-size:13px;line-height:1.55}
body .btp-app .btp-client-annual-key{display:flex;gap:14px;flex-wrap:wrap;align-items:center;font-size:12px;font-weight:700;color:#556477}
body .btp-app .btp-client-annual-key span{display:inline-flex;gap:6px;align-items:center;letter-spacing:normal!important;color:#556477!important;font-weight:700!important}
body .btp-app .btp-client-annual-key span:before{content:"";width:10px;height:10px;border-radius:3px;background:#17283d}
body .btp-app .btp-client-annual-key span.is-service:before{background:#d7a039}
body .btp-app .btp-client-annual-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin-top:18px;padding:8px 5px 15px;scrollbar-gutter:stable;outline-offset:3px}
body .btp-app .btp-client-annual-bars{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(124px,1fr);gap:16px;min-width:max(100%,700px);align-items:end;height:232px}
body .btp-app .btp-client-annual-column{display:grid;grid-template-rows:25px 170px 25px;gap:6px;text-align:center;min-width:0;align-items:end;color:#475466;font-size:12px;font-weight:750}
body .btp-app .btp-client-annual-column.is-selected{background:#fcf7eb;border-radius:10px}
body .btp-app .btp-client-annual-total{font-size:13px;white-space:nowrap;color:#1b2838;letter-spacing:-.02em}
body .btp-app .btp-client-annual-barframe{height:170px;display:flex;align-items:flex-end;justify-content:center;gap:9px;border-bottom:1px solid #e3e7ed;padding:0 10px}
body .btp-app .btp-client-annual-barframe i{display:block;max-width:28px;min-width:12px;flex:1;border-radius:5px 5px 0 0;background:#1c2c40;min-height:0}
body .btp-app .btp-client-annual-barframe i.is-service{background:#d7a039}
body .btp-app .btp-client-annual-note{margin:7px 0 0;color:#687688;font-size:12px;line-height:1.45}
body .btp-app .btp-client-card-actions .btp-client-finance-link{min-width:0;white-space:nowrap}
@container btp-content (max-width:1050px){body .btp-app .btp-client-card-actions{flex-wrap:wrap!important}body .btp-app .btp-client-card-actions>*{flex:1 1 auto!important;min-width:120px!important}}
@container btp-content (max-width:600px){body .btp-app .btp-client-annual-panel{padding:16px!important}body .btp-app .btp-client-annual-bars{grid-auto-columns:118px;min-width:max(100%,710px)}body .btp-app .btp-client-card-actions>*{width:100%!important}}


/* v0.61.7 · compact sidebar + consistently accessible Pro gate */
/* The sidebar becomes icon-only below 1321px; never show the wide-menu
   PRO pill inside the 88px rail (1181–1320px used to overlap). */
@media (min-width:721px) and (max-width:1320px){
  body .btp-app .btp-sidebar nav.btp-nav button.is-pro-preview::before,
  body .btp-app .btp-sidebar nav.btp-nav button.is-pro-preview::after,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-pro-badge{
    content:none!important;display:none!important;visibility:hidden!important;
    width:0!important;min-width:0!important;height:0!important;
    margin:0!important;padding:0!important;border:0!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more{
    min-width:0!important;max-width:100%!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav button,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more button{
    position:relative!important;box-sizing:border-box!important;
    display:flex!important;flex:0 0 auto!important;
    align-items:center!important;justify-content:center!important;
    width:56px!important;max-width:calc(100% - 4px)!important;
    min-width:0!important;min-height:44px!important;
    padding:8px!important;margin:2px auto!important;gap:0!important;
    text-align:center!important;border-radius:14px!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav button>span:not(.btp-nav-icon):not(.btp-nav-figma-icon),
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more button>span:not(.btp-nav-icon):not(.btp-nav-figma-icon){
    display:none!important;width:0!important;height:0!important;overflow:hidden!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav button .btp-nav-icon,
  body .btp-app .btp-sidebar nav.btp-nav button .btp-nav-figma-icon{
    position:static!important;display:block!important;
    width:22px!important;height:22px!important;
    min-width:22px!important;max-width:22px!important;
    flex:0 0 22px!important;object-fit:contain!important;
    margin:0!important;transform:none!important;
  }
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-group-label{
    display:none!important;
  }
}
@media (min-width:721px) and (max-width:1320px) and (max-height:720px){
  body .btp-app .btp-sidebar{overflow-y:auto!important;scrollbar-width:thin!important;}
  body .btp-app .btp-sidebar nav.btp-nav button,
  body .btp-app .btp-sidebar nav.btp-nav .btp-nav-more button{
    min-height:38px!important;padding:6px!important;margin:1px auto!important;
  }
}
body .btp-app .btp-modal.is-plan-gate-modal .btp-plan-gate-dialog{
  min-width:0!important;max-width:100%!important;overflow-wrap:break-word!important;
}
body .btp-app .btp-modal.is-plan-gate-modal .btp-plan-gate-actions button{
  min-width:0!important;padding-inline:16px!important;white-space:normal!important;
}
/* Alinhamento geométrico: evita que regras antigas de grid deslocem o SVG. */
@media (min-width:721px) and (max-width:1320px){
  body .btp-app .btp-sidebar nav.btp-nav button .btp-nav-icon,
  body .btp-app .btp-sidebar nav.btp-nav button .btp-nav-figma-icon{
    position:absolute!important;
    left:50%!important;top:50%!important;
    transform:translate(-50%,-50%)!important;
    margin:0!important;
  }
}

/* SVGs inline não dependem de Dashicons nem de assets externos. */
body .btp-app .btp-plan-gate-icon svg{display:block!important;flex:0 0 28px!important;margin:auto!important;color:#aa791d!important}
body .btp-app .btp-plan-gate-benefit>svg{display:block!important;flex:0 0 20px!important;color:#aa791d!important;align-self:start!important}


/* v0.61.8 — Identidade do indicador Multifonte: não herdar estilos de títulos */
body .btp-app .btp-view[data-view="prospectar"] .btp-search-panel-head-actions > .btp-engine-badge{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:9px!important;flex:0 0 auto!important;min-width:0;max-width:100%;
  padding:9px 14px!important;margin:0!important;border:1px solid #e9d5a7!important;
  border-radius:999px!important;background:#fff8e9!important;
  color:#885e16!important;-webkit-text-fill-color:#885e16!important;
  font-size:12px!important;font-weight:800!important;line-height:1.3!important;
  letter-spacing:.035em!important;text-transform:none!important;
  box-shadow:none!important;white-space:nowrap!important;
  opacity:1!important;filter:none!important;transform:none!important;
}
body .btp-app .btp-view[data-view="prospectar"] .btp-search-panel-head-actions > .btp-engine-badge i{
  display:inline-block!important;flex:0 0 8px!important;width:8px!important;height:8px!important;
  margin:0!important;background:#20a060!important;border-radius:50%!important;
  box-shadow:0 0 0 4px rgba(32,160,96,.11)!important;
}
@container btp-content (max-width:430px){
  body .btp-app .btp-view[data-view="prospectar"] .btp-search-panel-head-actions > .btp-engine-badge{
    justify-self:start!important;padding:8px 11px!important;letter-spacing:0!important;
  }
}


/* v0.61.9 — toggle de privacidade dos valores financeiros */
body .btp-app .btp-privacy-toggle{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;
  min-height:44px!important;padding:0!important;box-sizing:border-box!important;
  color:#765319!important;background:#fff9ed!important;border:1px solid #e9d5ad!important;
  border-radius:14px!important;box-shadow:none!important;cursor:pointer;line-height:1!important;
  transition:background .15s ease,border-color .15s ease;
}
body .btp-app .btp-privacy-toggle:hover{background:#faeac8!important;border-color:#d4ae64!important;color:#50380e!important}
body .btp-app .btp-privacy-toggle[aria-pressed="true"]{background:#f8ebd0!important;border-color:#cba45d!important}
body .btp-app .btp-privacy-toggle:focus-visible{outline:2px solid #a97719!important;outline-offset:3px!important}
body .btp-app .btp-privacy-toggle svg{display:block!important;width:19px!important;height:19px!important;min-width:19px!important;margin:auto!important;flex:0 0 19px!important}
body .btp-app .btp-privacy-toggle svg[hidden]{display:none!important}
body .btp-app .btp-client-head-actions>.btp-privacy-toggle{align-self:flex-end!important}
@media(max-width:640px){
  body .btp-app .btp-client-head-actions{grid-template-columns:44px minmax(0,1fr)!important;gap:10px!important}
  body .btp-app .btp-client-head-actions>.btp-client-year-filter{grid-column:1/-1!important}
  body .btp-app .btp-client-head-actions>.btp-privacy-toggle{grid-column:1!important;align-self:center!important}
  body .btp-app .btp-client-head-actions>[data-btp-client-new]{grid-column:2!important;min-width:0!important}
}

/* v0.62.1: Dados fiscais opcionais e tipografia do modal de clientes. */
body .btp-app .btp-client-form-scroll>details.btp-client-fiscal-section{padding:16px!important;margin-bottom:14px!important;border:1px solid #ebe4d9!important;border-radius:17px!important;background:#fff!important;min-width:0!important}
body .btp-app .btp-client-fiscal-section>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;cursor:pointer!important;color:#243249!important;list-style:none!important;font-size:14px!important;line-height:1.45!important;min-width:0!important}
body .btp-app .btp-client-fiscal-section>summary::-webkit-details-marker{display:none!important}
body .btp-app .btp-client-fiscal-section>summary:after{content:'+';flex:0 0 auto!important;color:#96670c!important;font-size:20px!important;font-weight:600!important}
body .btp-app .btp-client-fiscal-section[open]>summary:after{content:'−'}
body .btp-app .btp-client-fiscal-section>summary span{font-size:13px!important;font-weight:400!important;color:#68758a!important;text-align:right!important}
body .btp-app .btp-client-fiscal-section>summary:focus-visible{outline:2px solid #b98a30!important;outline-offset:5px!important;border-radius:5px!important}
body .btp-app .btp-client-fiscal-section .btp-client-form-grid{margin-top:12px!important}
body .btp-app .btp-client-fiscal-info{font-size:13px!important;line-height:1.55!important;color:#647186!important;margin:12px 0 0!important;max-width:80ch!important}
body .btp-app .btp-client-form-grid label,body .btp-app .btp-client-payment-adjust-grid label,body .btp-app .btp-client-service-form label{font-size:13px!important;line-height:1.4!important}
body .btp-app .btp-client-form :is(input,select,textarea){font-size:14px!important;line-height:1.45!important}
body .btp-app .btp-client-form-section-title strong{font-size:13px!important;white-space:normal!important}
@media(max-width:640px){body .btp-app .btp-client-fiscal-section>summary{align-items:flex-start!important;flex-wrap:wrap!important}body .btp-app .btp-client-fiscal-section>summary span{text-align:left!important;flex-basis:100%!important}body .btp-app .btp-client-fiscal-section .btp-client-form-grid{grid-template-columns:minmax(0,1fr)!important}}

/* v0.62.1 narrow mobile — single-column data-entry, no cramped form fields. */
@media(max-width:540px){
 body .btp-app .btp-client-form-scroll .btp-client-form-grid,
 body .btp-app .btp-client-form-scroll .btp-client-billing-grid{grid-template-columns:minmax(0,1fr)!important}
 body .btp-app .btp-client-fiscal-section>summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;column-gap:10px!important;row-gap:2px!important}
 body .btp-app .btp-client-fiscal-section>summary>strong{grid-column:1!important;grid-row:1!important;min-width:0!important}
 body .btp-app .btp-client-fiscal-section>summary>span{grid-column:1!important;grid-row:2!important;text-align:left!important;min-width:0!important}
 body .btp-app .btp-client-fiscal-section>summary:after{grid-column:2!important;grid-row:1 / span 2!important;justify-self:center!important}
}

/* v0.62.2 — gerenciamento de clientes: contato/fiscal sempre disponível e legível. */
body .btp-app .btp-client-fiscal-section{overflow:visible!important}
body .btp-app .btp-client-fiscal-section>summary{min-height:44px!important;user-select:none!important}
body .btp-app .btp-client-fiscal-section>summary>strong{font-size:14px!important;font-weight:750!important;line-height:1.45!important}
body .btp-app .btp-client-fiscal-section>summary>span{line-height:1.45!important}
body .btp-app .btp-client-fiscal-section[open]>.btp-client-fiscal-info{margin-top:10px!important}
body .btp-app .btp-client-fiscal-section .btp-client-tax-hint{display:block!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;margin-top:3px!important;color:#657184!important;line-height:1.4!important;font-size:12px!important;font-weight:500!important}
body .btp-app .btp-client-fiscal-section .btp-client-form-grid>label{min-width:0!important}
body .btp-app .btp-client-fiscal-section .btp-client-form-grid :is(input,select){min-width:0!important;width:100%!important;max-width:100%!important}
@media(max-width:780px){body .btp-app .btp-client-fiscal-section>summary{grid-template-columns:minmax(0,1fr) auto!important}body .btp-app .btp-client-fiscal-section>summary span{text-align:left!important}}
@media(max-width:540px){body .btp-app .btp-client-fiscal-section .btp-client-form-grid{grid-template-columns:minmax(0,1fr)!important}}

/* Align fiscal input rows at the top, even if a helper text is present. */
body .btp-app .btp-client-fiscal-section .btp-client-form-grid>label{align-self:start!important;align-content:start!important}

/* v0.62.4 — concise, dependable client contact disclosure. */
body .btp-app details.btp-client-fiscal-section:not([open]) > .btp-client-form-grid,
body .btp-app details.btp-client-fiscal-section:not([open]) > .btp-client-fiscal-info{display:none!important}
body .btp-app details.btp-client-fiscal-section>summary{min-height:40px!important;outline-offset:4px!important}
body .btp-app details.btp-client-fiscal-section>summary>strong{display:inline-flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;font-size:14px!important}
body .btp-app .btp-client-optional-badge{font-style:normal!important;font-size:12px!important;font-weight:650!important;color:#77591c!important;background:#faf0d8!important;border:1px solid #edddbb!important;padding:3px 8px!important;border-radius:999px!important;letter-spacing:0!important}
body .btp-app details.btp-client-fiscal-section>summary>span{color:#756849!important;white-space:nowrap!important;font-size:13px!important;font-weight:600!important}
body .btp-app details.btp-client-fiscal-section[open] > .btp-client-form-grid{margin-top:14px!important}
body .btp-app details.btp-client-fiscal-section .btp-client-tax-hint{font-size:13px!important}
@media(max-width:540px){
  body .btp-app details.btp-client-fiscal-section>summary>strong{gap:6px!important}
  body .btp-app details.btp-client-fiscal-section>summary>span{font-size:13px!important}
}

/* Compact disclosure in mobile: title and action remain aligned on one row. */
body .btp-app details.btp-client-fiscal-section>summary{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:8px!important}
body .btp-app details.btp-client-fiscal-section>summary>strong{display:block!important;grid-column:1!important;grid-row:1!important;min-width:0!important}
body .btp-app details.btp-client-fiscal-section>summary>span{grid-column:2!important;grid-row:1!important;min-width:0!important;text-align:right!important}
body .btp-app details.btp-client-fiscal-section>summary:after{grid-column:3!important;grid-row:1!important;justify-self:end!important}

/* v0.62.5 · Clientes + Resultados visual polish */
body .btp-app .btp-client-year-filter .btp-brand-select{margin-top:0!important}
body .btp-app .btp-client-year-select .btp-brand-select-trigger{
  min-height:46px!important;
  padding:0 16px!important;
  border:1px solid #e5cf9f!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#fffaf0,#fff6e3)!important;
  color:#855f12!important;
  box-shadow:0 10px 24px rgba(29,42,60,.05)!important;
}
body .btp-app .btp-client-year-select .btp-brand-select-trigger:hover{
  border-color:#d6b36b!important;
  background:linear-gradient(180deg,#fffdf8,#fff5dd)!important;
}
body .btp-app .btp-client-year-select.is-open .btp-brand-select-trigger,
body .btp-app .btp-client-year-select .btp-brand-select-trigger:focus-visible{
  border-color:#c99532!important;
  box-shadow:0 0 0 4px rgba(210,159,58,.14),0 12px 28px rgba(29,42,60,.07)!important;
}
body .btp-app .btp-client-year-select [data-btp-brand-select-label]{font-weight:900!important;letter-spacing:.04em!important}

body .btp-app .btp-potential-history-card--chart .btp-tech-chart{
  padding:16px 12px 10px!important;
  min-height:292px!important;
}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-plot{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  height:262px!important;
}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-bars{
  height:252px!important;
  gap:10px!important;
}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-bars article{gap:6px!important}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-bars article>div{height:190px!important;gap:4px!important}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-bars i{width:min(11px,34%)!important}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-bars article.is-empty-month>div{opacity:.42!important}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-bars article.is-empty-month strong,
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-bars article.is-empty-month small{opacity:.72!important}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-line{
  top:16px!important;
  left:12px!important;
  right:12px!important;
  width:calc(100% - 24px)!important;
  height:190px!important;
}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-line polyline{
  stroke:#5f7186!important;
  stroke-width:3.2!important;
}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-line circle{
  fill:#ffffff!important;
  stroke:#5f7186!important;
  stroke-width:3!important;
  opacity:0!important;
  transform-origin:center!important;
  transform:scale(.55)!important;
  transition:opacity .28s ease .2s, transform .35s cubic-bezier(.2,.76,.24,1) .2s!important;
  filter:drop-shadow(0 2px 6px rgba(22,39,59,.12))!important;
}
body .btp-app .btp-potential-history-card.is-chart-visible .btp-tech-chart-line circle{opacity:1!important;transform:scale(1)!important}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-line.is-single-point polyline,
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-line.is-empty polyline{display:none!important}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-line.is-single-point circle{stroke:#69798b!important;fill:#fffdf9!important}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-bars strong{color:#5c6775!important}
body .btp-app .btp-potential-history-card--chart .btp-tech-chart-bars small{color:#97a1ad!important}

@container btp-content (max-width:980px){
  body .btp-app .btp-potential-history-card--chart .btp-tech-chart-plot{min-width:1040px!important}
}

/* v0.63.7 — toolbar, video privacy and private feedback. */
body .btp-app .btp-prospect-head-tools{display:flex;gap:9px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:0}
body .btp-app .btp-prospect-privacy-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-height:44px!important;padding:9px 13px!important;border:1px solid #ddc48b!important;border-radius:14px!important;background:#fffaf0!important;color:#674b18!important;white-space:nowrap!important}
body .btp-app .btp-prospect-privacy-btn[aria-pressed="true"]{background:#213247!important;border-color:#213247!important;color:#f4ce75!important}
body .btp-app .btp-prospect-privacy-btn:focus-visible{outline:3px solid #e7c57d!important;outline-offset:2px}
body .btp-app .btp-feedback-trigger{display:inline-grid!important;place-items:center!important;flex:0 0 45px!important;width:45px!important;height:45px!important;padding:0!important;border:1px solid #eadcc0!important;border-radius:15px!important;background:#fff!important;color:#23344a!important;cursor:pointer!important}
body .btp-app .btp-feedback-trigger .dashicons{font-size:19px!important;width:19px!important;height:19px!important;line-height:19px!important}
body .btp-app .btp-feedback-trigger:hover{background:#fff4d8!important;border-color:#d9ad53!important}
body .btp-app .btp-feedback-trigger:focus-visible{outline:3px solid rgba(211,162,58,.25)!important;outline-offset:2px}
body .btp-feedback-overlay[hidden]{display:none!important}
body .btp-feedback-overlay{position:fixed;inset:0;z-index:100070;display:grid;place-items:center;padding:16px;box-sizing:border-box}
body .btp-feedback-shade{position:absolute;inset:0;background:rgba(15,25,39,.65)}
body .btp-feedback-card{position:relative;width:min(560px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;scrollbar-gutter:stable;box-sizing:border-box;border:1px solid #eadac0;border-radius:24px;background:#fffcf7;box-shadow:0 28px 70px rgba(13,26,41,.23)}
body .btp-feedback-card>header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:21px 24px;border-bottom:1px solid #eee5d7}
body .btp-feedback-card>header span{font-size:12px;font-weight:900;color:#a4771d;letter-spacing:.08em}
body .btp-feedback-card>header h3{font-size:25px;margin:4px 0 0;line-height:1.18;color:#1d2a3d}
body .btp-feedback-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #e4d5b9;border-radius:50%;background:#fff;color:#24374c;font-size:22px;line-height:1;cursor:pointer}
body .btp-feedback-card form{padding:22px 24px 24px;display:grid;gap:15px}
body .btp-feedback-card form label{display:grid;gap:7px;color:#657487;font-size:13px;font-weight:800;min-width:0}
body .btp-feedback-card form :is(select,input,textarea){width:100%;box-sizing:border-box;min-width:0;min-height:44px;border:1px solid #e3d9c7;border-radius:13px;background:#fff;color:#213147;padding:10px 13px;font-size:14px}
body .btp-feedback-card form textarea{min-height:120px;resize:vertical}
body .btp-feedback-card form footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
body .btp-feedback-card form footer button{min-height:43px;border-radius:13px}
body .btp-feedback-card [data-btp-feedback-status]{min-height:18px;margin:0;color:#815a19;font-size:13px;line-height:1.4}
body.btp-feedback-modal-open{overflow:hidden}
/* Message editor button: dark navy surface with cream text instead of low-contrast gold/dark. */
body .btp-app .btp-composer #btp-compose-save-lead{background:#213348!important;color:#fff8ec!important;border:1px solid #213348!important;box-shadow:0 6px 15px rgba(21,39,60,.12)!important}
body .btp-app .btp-composer #btp-compose-save-lead:hover{background:#304864!important;border-color:#304864!important;color:#fff!important}
body .btp-app .btp-composer #btp-compose-save-lead:focus-visible{outline:3px solid rgba(215,166,65,.4)!important;outline-offset:2px}
@media(max-width:800px){body .btp-app .btp-prospect-head-tools{justify-content:flex-start;width:100%}body .btp-app .btp-feedback-card>header{padding:18px}body .btp-feedback-card form{padding:18px}}
@media(max-width:440px){body .btp-app .btp-prospect-head-tools>button{flex:1 1 auto;min-width:0;white-space:normal!important}body .btp-app .btp-feedback-trigger{width:42px!important;height:42px!important;flex-basis:42px!important}body .btp-feedback-card form footer button{flex:1 1 100%}}

/* v0.63.8 — consistent modal buttons and presentation mode (display-only). */
body .btp-app .btp-feedback-close,
body .btp-app button.btp-feedback-close[data-btp-feedback-close]{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
 padding:0!important;border:1px solid #e8d7b4!important;border-radius:50%!important;
 background:#fffdf8!important;color:#26374a!important;font:400 23px/1 Arial,sans-serif!important;
 box-shadow:none!important;transform:none!important;cursor:pointer!important;
}
body .btp-app .btp-feedback-close:hover,
body .btp-app button.btp-feedback-close[data-btp-feedback-close]:hover{
 background:#fff2d5!important;border-color:#d5a846!important;color:#233448!important;
 box-shadow:none!important;transform:none!important;
}
body .btp-app .btp-feedback-close:focus-visible{outline:3px solid rgba(206,154,46,.28)!important;outline-offset:2px!important}
body .btp-app .btp-feedback-overlay .btp-feedback-card{overflow-x:hidden!important;min-width:0!important}
body .btp-app .btp-feedback-overlay .btp-feedback-card :is(h3,label,button,select,input,textarea){max-width:100%;min-width:0;overflow-wrap:break-word}
body .btp-app .btp-feedback-overlay .btp-feedback-card>header>div{min-width:0;flex:1 1 auto}
body .btp-app .btp-feedback-overlay .btp-feedback-card>header h3{overflow-wrap:normal;line-height:1.2}
/* Single always-available privacy toggle across Dashboard, Leads, Results and Closings. */
body .btp-app .btp-presentation-global-toggle{
 appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 45px!important;width:45px!important;height:45px!important;min-width:45px!important;min-height:45px!important;
 padding:0!important;border:1px solid #eadcc0!important;border-radius:15px!important;background:#fff!important;
 color:#26394c!important;box-shadow:none!important;cursor:pointer!important;
}
body .btp-app :is(.btp-presentation-global-toggle,.btp-prospect-privacy-btn) svg{
 display:block!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;
 stroke:currentColor!important;flex:0 0 auto!important;
}
body .btp-app :is(.btp-presentation-global-toggle,.btp-prospect-privacy-btn) svg[hidden]{display:none!important}
body .btp-app .btp-presentation-global-toggle .btp-presentation-control-label{display:none!important}
body .btp-app .btp-presentation-global-toggle:hover{
 background:#fff3d9!important;border-color:#d3a645!important;color:#26394c!important;
}
body .btp-app .btp-presentation-global-toggle[aria-pressed="true"]{
 background:#1c2d41!important;color:#ffefd0!important;border-color:#cfa551!important;
}
body .btp-app .btp-presentation-global-toggle[aria-pressed="true"]:hover{
 background:#283d53!important;color:#fff9ed!important;border-color:#e2bc64!important;
}
body .btp-app .btp-prospect-privacy-btn[aria-pressed="true"]{
 background:#1c2d41!important;color:#fff8ec!important;border-color:#cfa551!important;
}
body .btp-app .btp-prospect-privacy-btn[aria-pressed="true"]:hover{
 background:#283e54!important;color:#fff!important;border-color:#dfbc63!important;
}
body .btp-app :is(.btp-prospect-privacy-btn,.btp-presentation-global-toggle):focus-visible{
 outline:3px solid rgba(208,162,63,.35)!important;outline-offset:3px!important;
}
body .btp-app .btp-prospect-privacy-btn{gap:9px!important;letter-spacing:0!important;font-weight:800!important}
/* Tiny active privacy state is recognizable without changing sidebar layout. */
@media(max-width:740px){
 body .btp-app .btp-presentation-global-toggle{flex-basis:42px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
 body .btp-app .btp-prospect-head-tools{gap:9px!important}
 body .btp-app .btp-prospect-head-tools button{max-width:100%!important}
}
@media(max-width:420px){
 body .btp-app .btp-feedback-card>header{padding:17px 16px!important}
 body .btp-app .btp-feedback-card form{padding:16px!important}
 body .btp-app .btp-feedback-card>header h3{font-size:22px!important}
 body .btp-app .btp-feedback-close{width:38px!important;height:38px!important;min-height:38px!important;min-width:38px!important;flex-basis:38px!important}
}

/* v0.63.8 — avoid crowding topbar controls when the browser is half-width. */
@media(max-width:640px){
 body .btp-app .btp-main>.btp-topbar{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  row-gap:10px!important;align-items:center!important;
 }
 body .btp-app .btp-topbar-copy{min-width:0!important}
 body .btp-app .btp-userbox{min-width:0!important;max-width:100%!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:6px!important}
 body .btp-app .btp-presentation-global-toggle{flex-basis:40px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important}
}


/* v0.63.9 — presentation privacy: blur *data tokens only*. No cards, grids,
   chart containers, labels or whole tables are blurred. */
body.btp-presentation-mask .btp-app .btp-presentation-sensitive,
body.btp-presentation-mask .btp-app .btp-presentation-token{
  filter:blur(7px)!important;
  -webkit-filter:blur(7px)!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
body .btp-app .btp-presentation-token{display:inline!important}
body.btp-presentation-mask .btp-app :is(input,textarea)[data-btp-presentation-input],
body.btp-presentation-mask .btp-app select[data-btp-presentation-input]{
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:0 0 9px #334155!important;
  caret-color:#a77920!important;
}
body.btp-presentation-mask .btp-app :is(input,textarea)[data-btp-presentation-input]::placeholder{
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:0 0 9px #8292a7!important;
}
body.btp-presentation-mask .btp-app .btp-usertext :is(strong,small),
body.btp-presentation-mask .btp-app .btp-useravatar{
  filter:blur(7px)!important;
  user-select:none!important;
}
/* Chart graphics and financial card backgrounds stay sharp; only the
   value text nodes and specifically tagged personal names are obscured. */
body .btp-app .btp-presentation-global-toggle[aria-pressed="true"]{
  background:#1c2d41!important;border-color:#d2ac5b!important;color:#fff7e7!important;
}
body .btp-app .btp-presentation-global-toggle[aria-pressed="true"]:hover{
  background:#283e54!important;border-color:#e7c77a!important;color:#fff!important;
}

/* v0.63.12 — ensure partially masked inline text remains unreadable
   without applying blur to its parent card, badge or label. */
body.btp-presentation-mask .btp-app .btp-presentation-token{
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:0 0 7px rgba(31,47,67,.70)!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
body.btp-presentation-mask .btp-app .btp-presentation-token::selection{
  color:transparent!important;background:rgba(207,165,81,.20)!important;
}


/* v0.63.13 — precise profile/account privacy. Only value nodes are obscured.
   No form values, selection or submitted payloads are mutated. */
body.btp-presentation-mask .btp-app [data-btp-private-display]{
  filter:blur(8px)!important;
  -webkit-filter:blur(8px)!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
body.btp-presentation-mask .btp-app :is(input,textarea)[data-btp-private-field]{
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:0 0 10px #34445b!important;
  -webkit-text-security:disc!important;
  caret-color:#ba8b32!important;
}
body.btp-presentation-mask .btp-app :is(input,textarea)[data-btp-private-field]::placeholder{
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:0 0 10px #8292a7!important;
}

/* v0.64.8 — Privacy self-service; isolated from commercial/financial forms. */
.btp-app .btp-privacy-center,.btp-privacy-center{margin-top:22px;padding:clamp(20px,3vw,30px)!important;min-width:0;overflow:hidden}
.btp-privacy-center *, .btp-privacy-center *::before,.btp-privacy-center *::after{box-sizing:border-box}
.btp-privacy-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.btp-privacy-head h3{margin:5px 0 7px;font-size:clamp(22px,2vw,26px);line-height:1.2;letter-spacing:-.035em;color:#17263b}
.btp-privacy-head p,.btp-privacy-option p,.btp-privacy-history>div>p,.btp-privacy-footnote{color:#68778b;font-size:14px;line-height:1.6;margin:0}
.btp-privacy-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:#a87517}
.btp-privacy-shield{display:flex;align-items:center;justify-content:center;flex:none;width:43px;height:43px;border-radius:14px;background:#fff4dd;border:1px solid #f0dfbb;color:#a87517}
.btp-privacy-shield .dashicons{width:22px;height:22px;font-size:22px}
.btp-privacy-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.btp-privacy-option{min-width:0;min-height:255px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:22px;border-radius:19px;border:1px solid #e9e2d5;background:linear-gradient(150deg,#fff,#fffaf0)}
.btp-privacy-option-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid #ecd9af;border-radius:12px;background:#fbf1d9;color:#9b6b12}
.btp-privacy-option-icon .dashicons{width:19px;height:19px;font-size:19px}
.btp-privacy-option h4,.btp-privacy-history h4{font-size:17px;line-height:1.35;font-weight:750;color:#15253b;margin:0}
.btp-privacy-option p{flex:1;min-height:0}
.btp-privacy-option form{display:flex;flex-direction:column;width:100%;margin-top:auto;gap:12px;min-width:0}
.btp-privacy-option form button{display:inline-flex!important;justify-content:center;align-items:center;min-height:43px;height:auto;max-width:100%;width:100%;padding:10px 13px!important;border-radius:999px!important;font-size:13px!important;font-weight:750!important;line-height:1.25!important;text-align:center;white-space:normal}
.btp-privacy-option form .btp-primary,.btp-privacy-option form .btp-primary:hover,.btp-privacy-option form .btp-primary:focus-visible{color:#121d2a!important;border-color:#dbad50!important;background:linear-gradient(180deg,#f5d584,#dca846)!important;box-shadow:none!important}
.btp-privacy-option form .btp-ghost,.btp-privacy-option form .btp-ghost:hover,.btp-privacy-option form .btp-ghost:focus-visible{color:#15253b!important;border:1px solid #ecdabc!important;background:#fffaf3!important;box-shadow:none!important}
.btp-privacy-option form button:hover{filter:brightness(.975)}
.btp-privacy-option form button:focus-visible{outline:3px solid #b58a31!important;outline-offset:2px}
.btp-privacy-option label{font-size:13px;font-weight:650;color:#526174;min-width:0}
.btp-privacy-option .btp-privacy-password input{display:block!important;width:100%;max-width:100%;min-width:0;border:1px solid #dfe4e9!important;border-radius:12px!important;background:#fff!important;color:#17263b!important;font-size:14px!important;margin-top:7px;min-height:44px;padding:10px 12px!important}
.btp-privacy-option .btp-privacy-password input:focus{border-color:#bb8b32!important;box-shadow:0 0 0 3px #f4e6c9!important;outline:0!important}
.btp-privacy-option .btp-privacy-check{display:flex;align-items:flex-start;gap:9px;line-height:1.45;font-weight:550}
.btp-privacy-option .btp-privacy-check input{flex:none;margin-top:3px;accent-color:#a87a28;width:16px;height:16px}
.btp-privacy-notice{margin:0 0 17px;border:1px solid #ead4a9;background:#fff8e9;color:#735018;border-radius:13px;padding:12px 14px;font-size:13px;font-weight:650;line-height:1.5}
.btp-privacy-history{margin-top:22px;border-top:1px solid #eae6df;padding-top:20px;display:flex;flex-direction:column;gap:12px}
.btp-privacy-history>div>p{margin-top:4px}
.btp-privacy-request-list{display:flex;flex-direction:column;gap:8px}
.btp-privacy-request{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 15px;border:1px solid #eee5d7;border-radius:13px;background:#fffcf8;color:#17263b;font-size:13px;line-height:1.45}
.btp-privacy-request>span{min-width:0;overflow-wrap:anywhere}
.btp-privacy-request .btp-privacy-state{font-weight:650;color:#906a20}
.btp-privacy-request time{color:#718096;font-size:12px;text-align:right;white-space:nowrap}
.btp-privacy-empty{border:1px dashed #e3dbcf;border-radius:13px;padding:17px;color:#7b8796;font-size:13px;margin:0}
.btp-privacy-footnote{margin:18px 0 0!important;padding-top:17px;border-top:1px solid #eae6df}
@media(max-width:1160px){.btp-privacy-options{grid-template-columns:repeat(2,minmax(0,1fr))}.btp-privacy-option{min-height:0}}
@media(max-width:740px){.btp-privacy-options{grid-template-columns:1fr}.btp-privacy-option{padding:18px;gap:11px}.btp-privacy-request{grid-template-columns:1fr 1fr}.btp-privacy-request time{grid-column:1/-1;text-align:left}.btp-privacy-center{margin-top:15px;padding:19px!important}}
@media(max-width:380px){.btp-privacy-head h3{font-size:22px}.btp-privacy-shield{width:38px;height:38px}.btp-privacy-request{grid-template-columns:1fr}.btp-privacy-request time{grid-column:1}}

/* ============================================================
   v0.64.9 · Privacidade: checkbox robusto e histórico compacto.
   Escopo restrito: não interfere nos demais checkboxes do CRM.
   ============================================================ */
body .btp-app .btp-privacy-center .btp-privacy-check {
  position:relative!important;display:flex!important;align-items:center!important;
  gap:11px!important;min-height:42px;width:100%;max-width:100%;
  cursor:pointer!important;line-height:1.45!important;margin:0!important;
  padding:5px 2px!important;user-select:none;-webkit-user-select:none;
}
body .btp-app .btp-privacy-center .btp-privacy-check-label {
  flex:1;min-width:0;overflow-wrap:break-word!important;
  font-size:13px!important;font-weight:600!important;line-height:1.5!important;
  color:#43566d!important;cursor:pointer!important;
}
body .btp-app .btp-privacy-center .btp-privacy-history-head {
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  gap:12px!important;flex-wrap:wrap!important;
}
body .btp-app .btp-privacy-center .btp-privacy-history-head>div {min-width:0!important;flex:1 1 240px!important}
body .btp-app .btp-privacy-center .btp-privacy-history-count {
  white-space:nowrap!important;font-size:12px!important;font-weight:750!important;
  border:1px solid #eadfc9!important;background:#fff8e8!important;
  border-radius:999px!important;padding:7px 12px!important;color:#8c631c!important;
}
body .btp-app .btp-privacy-center .btp-privacy-request-list {
  max-height:258px!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain;scrollbar-gutter:stable;
  padding:3px 8px 3px 2px!important;scrollbar-width:thin;scrollbar-color:#c49b4d #f7f2e9;
}
body .btp-app .btp-privacy-center .btp-privacy-request-list::-webkit-scrollbar {width:8px}
body .btp-app .btp-privacy-center .btp-privacy-request-list::-webkit-scrollbar-track {background:#f7f2e9;border-radius:999px}
body .btp-app .btp-privacy-center .btp-privacy-request-list::-webkit-scrollbar-thumb {background:#c49b4d;border-radius:999px;border:2px solid #f7f2e9}
body .btp-app .btp-privacy-center .btp-privacy-request-list:focus-visible {
  outline:2px solid #bc9447!important;outline-offset:2px!important;border-radius:10px;
}
body .btp-app .btp-privacy-center .btp-privacy-history-more {
  font-size:12px!important;line-height:1.6!important;color:#63758a!important;margin:3px 0 0!important;
}
@media(max-width:740px){
  body .btp-app .btp-privacy-center .btp-privacy-request-list {max-height:324px!important;padding-right:6px!important}
  body .btp-app .btp-privacy-center .btp-privacy-history-count {padding:6px 10px!important}
}
@media(prefers-reduced-motion:reduce){body .btp-app .btp-privacy-center .btp-privacy-check-box{transition:none}}

/* v0.64.12 — native consent control: no synthetic click behavior or CSS
   state that can disagree with the actual HTML checkbox. */
body .btp-app .btp-privacy-center .btp-privacy-check {
  display:flex!important;align-items:center!important;gap:12px!important;
  width:100%;min-height:44px;cursor:pointer!important;
}
body .btp-app .btp-privacy-center .btp-privacy-check input[type="checkbox"] {
  display:inline-block!important;position:static!important;left:auto!important;top:auto!important;
  flex:0 0 21px!important;width:21px!important;height:21px!important;min-width:21px!important;
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  appearance:auto!important;-webkit-appearance:checkbox!important;
  margin:0!important;padding:0!important;clip:auto!important;clip-path:none!important;
  accent-color:#D5A43C!important;cursor:pointer!important;
}
body .btp-app .btp-privacy-center .btp-privacy-check input[type="checkbox"]:focus-visible {
  outline:3px solid rgba(197,148,59,.4)!important;outline-offset:3px!important;
}
body .btp-app .btp-privacy-center .btp-privacy-check-label {pointer-events:auto!important}
body .btp-app .btp-privacy-center .btp-privacy-form-status {
  display:block!important;margin:0!important;padding:11px 12px!important;min-height:0!important;
  background:#fff8e9!important;border:1px solid #e9d4a9!important;border-radius:10px!important;
  color:#79531b!important;font-size:13px!important;line-height:1.5!important;overflow-wrap:break-word!important;
}
body .btp-app .btp-privacy-center .btp-privacy-form-status[hidden] {display:none!important}
body .btp-app .btp-privacy-center .btp-privacy-form-status.is-error {
  background:#fff5f2!important;border-color:#e6baae!important;color:#8f3e29!important;
}
body .btp-app .btp-privacy-center .btp-privacy-form-status.is-success {
  background:#f2faf5!important;border-color:#cce4d3!important;color:#286b43!important;
}
body .btp-app .btp-privacy-center form[aria-busy=true] button[type=submit] {opacity:.8;cursor:wait!important}


/* ============================================================
   v0.64.14 · isolated deletion consent control, gold/cream identity
   Independent of theme checkbox CSS, no user-data or layout changes.
   ============================================================ */
body .btp-app .btp-privacy-center .btp-privacy-check[data-btp-delete-consent] {
  display:block!important;min-height:46px!important;width:100%!important;
  padding:0!important;margin:0!important;
}
body .btp-app .btp-privacy-center .btp-privacy-consent-toggle {
  display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;
  gap:12px!important;width:100%!important;height:auto!important;min-height:46px!important;
  padding:8px 2px!important;margin:0!important;border:0!important;border-radius:10px!important;
  background:transparent!important;color:#43566d!important;box-shadow:none!important;
  text-align:left!important;cursor:pointer!important;filter:none!important;
  font-size:13px!important;font-weight:600!important;line-height:1.5!important;
  white-space:normal!important;outline-offset:3px!important;
}
body .btp-app .btp-privacy-center .btp-privacy-consent-toggle:hover {
  background:rgba(218,174,83,.09)!important;
}
body .btp-app .btp-privacy-center .btp-privacy-consent-toggle:focus-visible {
  outline:3px solid rgba(187,137,43,.6)!important;
}
body .btp-app .btp-privacy-center .btp-privacy-consent-box {
  display:grid!important;place-items:center!important;flex:0 0 21px!important;
  width:21px!important;height:21px!important;min-width:21px!important;
  margin-top:1px!important;border:1.5px solid #a98b50!important;border-radius:5px!important;
  background:#fffdfa!important;color:#fff9e9!important;
  transition:background .17s ease,border-color .17s ease,box-shadow .17s ease!important;
}
body .btp-app .btp-privacy-center .btp-privacy-consent-box svg {
  display:block!important;width:15px!important;height:15px!important;
  stroke:currentColor!important;stroke-width:3!important;stroke-linecap:round!important;
  stroke-linejoin:round!important;fill:none!important;opacity:0!important;
  transform:scale(.7);transition:opacity .17s ease,transform .17s ease!important;
}
body .btp-app .btp-privacy-center .btp-privacy-consent-toggle:hover .btp-privacy-consent-box {
  background:#f7e7bc!important;border-color:#a67619!important;
}
body .btp-app .btp-privacy-center .btp-privacy-consent-toggle[aria-checked="true"] .btp-privacy-consent-box,
body .btp-app .btp-privacy-center .btp-privacy-consent-toggle[aria-checked="true"]:hover .btp-privacy-consent-box {
  background:#946515!important;border-color:#946515!important;
}
body .btp-app .btp-privacy-center .btp-privacy-consent-toggle[aria-checked="true"] .btp-privacy-consent-box svg {
  opacity:1!important;transform:scale(1)!important;
}
body .btp-app .btp-privacy-center .btp-privacy-consent-toggle .btp-privacy-check-label {
  display:block!important;flex:1 1 auto!important;min-width:0!important;
  color:#43566d!important;font-size:13px!important;line-height:1.5!important;
  font-weight:600!important;overflow-wrap:normal!important;white-space:normal!important;
}
@media(max-width:740px){
  body .btp-app .btp-privacy-center .btp-privacy-consent-toggle {padding:8px 0!important}
}
@media(prefers-reduced-motion:reduce){
 body .btp-app .btp-privacy-center .btp-privacy-consent-box,
 body .btp-app .btp-privacy-center .btp-privacy-consent-box svg{transition:none!important}
}

/* Native HTML fallback remains usable if optimizers prevent JS loading. */
body .btp-app .btp-privacy-center .btp-privacy-native {
  display:flex!important;align-items:flex-start!important;gap:10px!important;
  min-height:44px!important;cursor:pointer!important;font-size:13px!important;
  color:#43566d!important;line-height:1.5!important;
}
body .btp-app .btp-privacy-center .btp-privacy-native input[type="checkbox"] {
  display:inline-block!important;position:static!important;opacity:1!important;
  visibility:visible!important;pointer-events:auto!important;
  accent-color:#946515!important;flex:0 0 20px!important;
  width:20px!important;height:20px!important;min-width:20px!important;
  margin:2px 0 0!important;
}
body .btp-app .btp-privacy-center .btp-privacy-native[hidden],
body .btp-app .btp-privacy-center .btp-privacy-consent-toggle[hidden] {display:none!important}


/* v0.64.16 — privacy review modal: scoped, responsive, accessible, gold/navy */
body .btp-app .btp-privacy-center .btp-privacy-modal[hidden]{display:none!important}
body .btp-app .btp-privacy-center .btp-privacy-modal{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:20px!important;overflow-y:auto!important}
body .btp-app .btp-privacy-center .btp-privacy-modal-backdrop{position:fixed;inset:0;background:rgba(11,21,35,.74);backdrop-filter:blur(5px)}
body .btp-app .btp-privacy-center .btp-privacy-modal-panel{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:13px;width:min(100%,610px);max-height:calc(100dvh - 38px);overflow-y:auto;margin:auto;padding:clamp(22px,3.4vw,34px)!important;border:1px solid #e8d5b1!important;border-radius:24px!important;background:linear-gradient(180deg,#fffefd,#fffaf2)!important;box-shadow:0 24px 80px rgba(9,22,38,.3)!important;color:#142439;text-align:left;min-width:0;box-sizing:border-box}
body .btp-app .btp-privacy-modal-panel:focus{outline:0}
body .btp-app .btp-privacy-modal-eyebrow{font-size:11px!important;line-height:1.4;font-weight:850;color:#a36f16;letter-spacing:.09em}
body .btp-app .btp-privacy-modal-panel h3{margin:0!important;font-size:clamp(21px,3.5vw,27px)!important;line-height:1.19!important;font-weight:800!important;color:#172b45!important;overflow-wrap:break-word}
body .btp-app .btp-privacy-modal-panel p{margin:0!important;flex:none!important;font-size:14px!important;line-height:1.65!important;color:#586b7d!important;overflow-wrap:break-word}
body .btp-app .btp-privacy-modal-panel p strong{color:#172b45}
body .btp-app .btp-privacy-modal-section{padding:14px 16px;background:#f8f6ef;border:1px solid #ede4d4;border-radius:15px;min-width:0}
body .btp-app .btp-privacy-modal-section.is-removable{background:#f3faf6;border-color:#dae9de}
body .btp-app .btp-privacy-modal-section.is-retained{background:#fff7e8;border-color:#eedcba}
body .btp-app .btp-privacy-modal-section>strong{display:block;color:#183046;font-size:13.5px;line-height:1.4;margin-bottom:5px}
body .btp-app .btp-privacy-modal-note{padding:9px 0!important}
body .btp-app .btp-privacy-modal-actions{display:flex;gap:10px;flex-wrap:wrap;min-width:0;margin-top:5px}
body .btp-app .btp-privacy-modal-actions button{flex:1 1 200px;display:inline-flex;align-items:center;justify-content:center;min-height:46px;border-radius:999px;border:1px solid #e5d9c6;background:#f8f4eb;color:#243247;font-size:13px;font-weight:800;line-height:1.3;padding:11px 16px;cursor:pointer;white-space:normal}
body .btp-app .btp-privacy-modal-actions .btp-privacy-modal-confirm{background:linear-gradient(180deg,#f6d782,#dda943);border-color:#d4a24a;color:#13233b}
body .btp-app .btp-privacy-modal-actions button:hover{filter:brightness(.965)}
body .btp-app .btp-privacy-modal-panel button:focus-visible{outline:3px solid #be9237!important;outline-offset:3px!important}
body .btp-app .btp-privacy-modal-close{position:absolute;top:10px;right:12px;width:35px;height:35px;border:none;border-radius:50%;background:#f3ecdf;color:#233447;font-size:24px;cursor:pointer}
@media(max-width:620px){body .btp-app .btp-privacy-center .btp-privacy-modal{padding:10px!important}body .btp-app .btp-privacy-center .btp-privacy-modal-panel{max-height:calc(100dvh - 20px);border-radius:18px!important;padding:22px 18px!important;gap:11px!important}body .btp-app .btp-privacy-modal-actions{flex-direction:column}body .btp-app .btp-privacy-modal-actions button{flex-basis:auto;width:100%}}
@media(prefers-reduced-motion:reduce){body .btp-app .btp-privacy-modal-panel,body .btp-app .btp-privacy-modal-actions button{transition:none!important}}

body .btp-app .btp-privacy-center.btp-privacy-modal-open{overflow:visible!important}

/* Privacy treatment receipt v0.64.17: full width inside existing request rows. */
body .btp-app .btp-privacy-center .btp-privacy-receipt{grid-column:1/-1;width:100%;margin-top:5px;min-width:0;border-top:1px solid #e9dfce;padding-top:8px;color:#23334a;font-size:14px;line-height:1.55}
body .btp-app .btp-privacy-center .btp-privacy-receipt>summary{display:list-item;cursor:pointer;font-weight:750;color:#93631b;outline-offset:3px;padding:5px 0;font-size:13px}
body .btp-app .btp-privacy-center .btp-privacy-receipt-body{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid #e8dfd0;border-radius:12px;background:#fffaf2;min-width:0}
body .btp-app .btp-privacy-center .btp-privacy-receipt-body p{margin:0!important;line-height:1.55!important;font-size:13px!important;overflow-wrap:anywhere}
body .btp-app .btp-privacy-center .btp-privacy-receipt-items{margin:3px 0;padding:0;list-style:none;display:grid;gap:6px}
body .btp-app .btp-privacy-center .btp-privacy-receipt-items li{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;padding:8px 10px;background:#fff;border:1px solid #eee7dc;border-radius:8px;font-size:13px;line-height:1.5}
body .btp-app .btp-privacy-center .btp-privacy-receipt-items strong{color:#13283d;overflow-wrap:anywhere}
body .btp-app .btp-privacy-center .btp-privacy-receipt-summary{font-weight:650;color:#203449!important}
@media(max-width:540px){body .btp-app .btp-privacy-center .btp-privacy-receipt-items li{display:block}body .btp-app .btp-privacy-center .btp-privacy-receipt-items strong{display:block;margin-top:3px}}

body .btp-app .btp-privacy-center .btp-privacy-request-list:has(.btp-privacy-receipt[open]){max-height:min(70vh,800px)!important}

body .btp-app .btp-privacy-center .btp-privacy-receipt-items li small{flex:1 1 100%;color:#607186;font-weight:450;font-size:12.5px;line-height:1.5;overflow-wrap:anywhere}

body .btp-app .btp-privacy-center .btp-privacy-receipt-sources{padding-left:17px;margin:0;display:grid;gap:3px;font-size:12.5px;line-height:1.5;color:#53667c;overflow-wrap:anywhere}


/* v0.64.18 — Exclusão de dados: ícone centralizado e explicações curtas.
   Scoped to the account/privacy area, without changing other modals. */
body .btp-app .btp-privacy-center .btp-privacy-modal-close {
  position:absolute!important;
  top:12px!important;right:12px!important;
  display:grid!important;place-items:center!important;
  flex:0 0 40px!important;width:40px!important;height:40px!important;
  min-width:40px!important;min-height:40px!important;
  padding:0!important;margin:0!important;
  border:1px solid transparent!important;border-radius:50%!important;
  background:#f4ecdc!important;color:#624819!important;
  cursor:pointer!important;line-height:1!important;text-indent:0!important;
  box-shadow:none!important;transform:none!important;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease!important;
}
body .btp-app .btp-privacy-center .btp-privacy-modal-close svg {
  display:block!important;position:static!important;width:18px!important;height:18px!important;
  margin:0!important;padding:0!important;flex:none!important;
  color:inherit!important;stroke:currentColor!important;
  transform:none!important;vertical-align:middle!important;
}
body .btp-app .btp-privacy-center .btp-privacy-modal-close:hover,
body .btp-app .btp-privacy-center .btp-privacy-modal-close:focus-visible {
  background:#9b6b19!important;color:#fff9eb!important;border-color:#9b6b19!important;
}
body .btp-app .btp-privacy-center .btp-privacy-modal-panel {
  padding-top:clamp(28px,3.4vw,34px)!important;
  overflow-x:hidden!important;overscroll-behavior:contain;
}
body .btp-app .btp-privacy-center .btp-privacy-modal-eyebrow,
body .btp-app .btp-privacy-center .btp-privacy-modal-panel h3 {
  padding-right:32px!important;max-width:100%;
}
body .btp-app .btp-privacy-center .btp-privacy-modal-help,
body .btp-app .btp-privacy-center .btp-privacy-help-link {
  display:inline-flex!important;align-items:center;justify-content:flex-start;gap:7px;
  align-self:flex-start;width:auto!important;max-width:100%;min-height:40px;
  margin:0!important;padding:6px 0!important;
  border:0!important;border-radius:5px!important;
  background:transparent!important;color:#916016!important;
  font:inherit!important;font-size:13px!important;font-weight:750!important;
  line-height:1.5!important;text-align:left;cursor:pointer!important;
  text-decoration:underline!important;text-decoration-color:#caa158!important;
  text-underline-offset:3px;white-space:normal!important;
}
body .btp-app .btp-privacy-center .btp-privacy-modal-help:hover,
body .btp-app .btp-privacy-center .btp-privacy-help-link:hover {color:#61430f!important;text-decoration-color:currentColor!important}
body .btp-app .btp-privacy-center .btp-privacy-modal-help:focus-visible,
body .btp-app .btp-privacy-center .btp-privacy-help-link:focus-visible {outline:3px solid #bf922f!important;outline-offset:3px!important}
body .btp-app .btp-privacy-center .btp-privacy-option .btp-privacy-help-link{margin-top:-5px!important;min-height:36px!important}
body .btp-app .btp-privacy-center .btp-privacy-modal-section {padding:13px 15px!important}
body .btp-app .btp-privacy-center .btp-privacy-modal-section>strong{font-size:14px!important}
@media(max-width:620px){
  body .btp-app .btp-privacy-center .btp-privacy-modal-panel{width:100%!important;max-height:calc(100dvh - 18px)!important;padding:23px 17px 19px!important;border-radius:18px!important;gap:10px!important}
  body .btp-app .btp-privacy-center .btp-privacy-modal-close{top:9px!important;right:9px!important;width:40px!important;height:40px!important}
  body .btp-app .btp-privacy-center .btp-privacy-modal-eyebrow,
  body .btp-app .btp-privacy-center .btp-privacy-modal-panel h3{padding-right:34px!important}
  body .btp-app .btp-privacy-center .btp-privacy-modal-section{padding:12px 13px!important}
  body .btp-app .btp-privacy-center .btp-privacy-modal-panel p{font-size:13.5px!important;line-height:1.55!important}
  body .btp-app .btp-privacy-center .btp-privacy-modal-actions{gap:9px!important}
  body .btp-app .btp-privacy-center .btp-privacy-modal-actions button{font-size:13px!important;min-height:45px!important}
}
@media(prefers-reduced-motion:reduce){
  body .btp-app .btp-privacy-center .btp-privacy-modal-close{transition:none!important}
}


/* v0.64.19 · Recibos: native <details> must actually collapse.
   Some earlier visual rules force display:grid even when the details is closed. */
body .btp-app .btp-privacy-center details.btp-privacy-receipt:not([open]) > .btp-privacy-receipt-body {
  display:none!important;
}
body .btp-app .btp-privacy-center details.btp-privacy-receipt[open] > .btp-privacy-receipt-body {
  display:grid!important;
}
body .btp-app .btp-privacy-center details.btp-privacy-receipt > summary {
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:44px!important;
  padding:9px 8px!important;
  margin:0!important;
  list-style:none!important;
  font-size:13.5px!important;
  line-height:1.45!important;
  color:#93631b!important;
  border-radius:9px!important;
  cursor:pointer!important;
  user-select:none;
  touch-action:manipulation;
}
body .btp-app .btp-privacy-center details.btp-privacy-receipt > summary::-webkit-details-marker{display:none!important}
body .btp-app .btp-privacy-center details.btp-privacy-receipt > summary::before{
  content:'▸';display:inline-flex;align-items:center;justify-content:center;
  width:14px;flex:0 0 14px;color:#aa771b;font-size:14px;line-height:1;
}
body .btp-app .btp-privacy-center details.btp-privacy-receipt[open] > summary::before{content:'▾'}
body .btp-app .btp-privacy-center details.btp-privacy-receipt > summary:hover{background:#fff5de!important;color:#6f4b0c!important}
body .btp-app .btp-privacy-center details.btp-privacy-receipt > summary:focus-visible{
  outline:3px solid #c79531!important;outline-offset:2px!important;
}
body .btp-app .btp-privacy-center details.btp-privacy-receipt[open]{padding-bottom:5px!important}
@media(max-width:520px){
  body .btp-app .btp-privacy-center details.btp-privacy-receipt > summary {font-size:13px!important;white-space:normal!important}
  body .btp-app .btp-privacy-center details.btp-privacy-receipt .btp-privacy-receipt-body{padding:11px!important}
}


/* v0.64.20 — Privacy is a quiet, accessible, native disclosure in Minha conta.
   Browsers handle opening with mouse/touch/keyboard even if JS optimizers fail. */
body .btp-app section.btp-privacy-center {padding:14px 17px!important;}
body .btp-app section.btp-privacy-center:has(>details.btp-privacy-disclosure[open]) {padding:clamp(20px,3vw,30px)!important;}
body .btp-app .btp-privacy-disclosure {min-width:0;width:100%;margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle {
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;list-style:none!important;cursor:pointer!important;
  min-height:68px!important;padding:8px 10px!important;margin:0!important;
  border:1px solid transparent!important;border-radius:15px!important;
  background:transparent!important;box-shadow:none!important;
  text-align:left!important;user-select:none;-webkit-tap-highlight-color:transparent;
  transition:background .18s ease,border-color .18s ease;
}
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle::-webkit-details-marker{display:none!important}
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle::marker{content:'';font-size:0}
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle:hover {background:#fff8ea!important;border-color:#e9d5ab!important}
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle:focus-visible {outline:3px solid #bd8e35!important;outline-offset:3px!important}
body .btp-app .btp-privacy-disclosure[open] > summary.btp-privacy-disclosure-toggle {margin-bottom:16px!important;border-bottom-color:#ebdfca!important;background:#fffdf8!important}
body .btp-app .btp-privacy-head-copy {display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;flex:1 1 auto}
body .btp-app .btp-privacy-disclosure-title {display:block;color:#192c45!important;font-size:clamp(19px,2vw,24px)!important;font-weight:750!important;line-height:1.24!important;letter-spacing:-.025em!important;overflow-wrap:break-word}
body .btp-app .btp-privacy-disclosure-desc {display:block;color:#738196!important;font-size:13px!important;line-height:1.45!important;font-weight:450!important;overflow-wrap:break-word}
body .btp-app .btp-privacy-head-actions {display:flex;align-items:center;gap:12px;flex:0 0 auto}
body .btp-app .btp-privacy-disclosure-chevron {display:grid;place-items:center;flex:0 0 33px;width:33px;height:33px;border:1px solid #ebddc2;border-radius:50%;background:#f9f1df;color:#9b6e1c;transition:background .18s ease,transform .18s ease}
body .btp-app .btp-privacy-disclosure-chevron svg{display:block;width:19px;height:19px;stroke:currentColor;flex-shrink:0;transition:transform .18s ease}
body .btp-app .btp-privacy-disclosure[open] .btp-privacy-disclosure-chevron svg {transform:rotate(180deg)}
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle:hover .btp-privacy-disclosure-chevron {background:#e9c576;border-color:#d8ae50;color:#182a3d}
body .btp-app .btp-privacy-disclosure-content {min-width:0;width:100%;}
@media(max-width:540px){
 body .btp-app section.btp-privacy-center {padding:10px 12px!important}
 body .btp-app section.btp-privacy-center:has(>details.btp-privacy-disclosure[open]) {padding:18px!important}
 body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle {padding:10px 6px!important;min-height:74px!important;gap:8px!important}
 body .btp-app .btp-privacy-head-actions {gap:7px}
 body .btp-app .btp-privacy-disclosure-chevron {width:30px;height:30px;flex-basis:30px}
 body .btp-app .btp-privacy-shield {width:37px;height:37px;border-radius:12px}
 body .btp-app .btp-privacy-disclosure-desc {font-size:12.5px!important}
}
@media(max-width:360px){body .btp-app .btp-privacy-head-actions .btp-privacy-shield {display:none!important}}
@media(prefers-reduced-motion:reduce){body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle,body .btp-app .btp-privacy-disclosure-chevron,body .btp-app .btp-privacy-disclosure-chevron svg{transition:none!important}}


/* v0.64.21 — Privacy disclosure: reliable visibility and a neutral, static hover.
   Override the old gold hover/arrow animations and decorative panel glow only
   within this section. All form/button hover rules inside the expanded area
   continue to work normally. */
body .btp-app section.btp-privacy-center,
body .btp-app section.btp-privacy-center:hover {
  transform:none!important;
  transition:none!important;
  box-shadow:0 14px 30px rgba(7,11,18,.07), inset 0 1px 0 rgba(255,255,255,.84)!important;
}
body .btp-app section.btp-privacy-center::after {display:none!important;content:none!important;}
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle,
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle:hover,
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle:active,
body .btp-app .btp-privacy-disclosure[open] > summary.btp-privacy-disclosure-toggle,
body .btp-app .btp-privacy-disclosure[open] > summary.btp-privacy-disclosure-toggle:hover {
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  transform:none!important;
  filter:none!important;
  transition:none!important;
}
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle .btp-privacy-disclosure-chevron,
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle:hover .btp-privacy-disclosure-chevron,
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle:active .btp-privacy-disclosure-chevron {
  background:#f9f1df!important;
  border-color:#ebddc2!important;
  color:#9b6e1c!important;
  box-shadow:none!important;
  transition:none!important;
}
body .btp-app .btp-privacy-disclosure-chevron svg {transition:none!important;}
body .btp-app details.btp-privacy-disclosure:not([open]) > .btp-privacy-disclosure-content {display:none!important;}
body .btp-app details.btp-privacy-disclosure[open] > .btp-privacy-disclosure-content {display:block!important;}
body .btp-app .btp-privacy-disclosure > summary.btp-privacy-disclosure-toggle:focus-visible {
  outline:2px solid #bd8e35!important;
  outline-offset:2px!important;
}

/* v0.64.24 — Profile save feedback (scoped; does not affect other forms). */
body .btp-app #btp-profile [aria-invalid="true"]{border-color:#ac5135!important;box-shadow:0 0 0 2px rgba(172,81,53,.10)!important}
body .btp-app #btp-profile .btp-profile-field-error{display:block;font-size:13px;font-weight:650;line-height:1.5;color:#a24129;margin-top:7px;overflow-wrap:anywhere}
body .btp-app #btp-profile #btp-profile-feedback:not(:empty){display:block;margin-top:12px;padding:11px 13px;border:1px solid #dfc99c;border-radius:12px;background:#fff8e8;color:#795412;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
body .btp-app #btp-profile #btp-profile-feedback.error:not(:empty){border-color:#f0c0b4;background:#fff3f0;color:#a24129}
body .btp-app #btp-profile #btp-profile-feedback.success:not(:empty){border-color:#cae6d5;background:#f3fbf6;color:#246a43}

/* v0.64.27 — Botões reais para saída: sem link no hover, mantendo visual. */
body .btp-app form.btp-logout-form {
  margin:0!important;padding:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;
  max-width:100%;min-width:0;
}
body .btp-app form.btp-topbar-logout-form {display:inline-flex!important;align-items:center!important;flex:0 0 auto;}
body .btp-app form.btp-account-logout-form {display:block!important;width:100%!important;}
body .btp-app button.btp-topbar-logout,
body .btp-app button.btp-account-logout{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  text-decoration:none!important;text-align:center!important;cursor:pointer;
  font-family:inherit;
}
body .btp-app button.btp-topbar-logout{flex:0 0 auto;}
body .btp-app button.btp-account-logout{width:100%!important;}
@media (max-width:720px){
  body .btp-app .btp-userbox form.btp-topbar-logout-form{display:none!important;}
}
body .btp-app .btp-account-card .btp-logout-feedback{margin:10px 0 0!important;color:#9b551f!important;font-size:13px!important;line-height:1.5!important;}

/* 0.64.28 - Password creation guidance: consistent gold/cream identity. */
body .btp-password-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:8px 0 13px;min-width:0}
body .btp-password-actions.wide{grid-column:1/-1}
body .btp-password-generate{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:36px;border:1px solid #e3cb92;border-radius:12px;padding:7px 14px;background:#fff8ec;color:#805716;font-size:13px;font-weight:750;line-height:1.3;cursor:pointer;box-shadow:none;transition:none}
body .btp-password-generate:hover{background:#fff8ec;color:#805716;box-shadow:none;transform:none}
body .btp-password-generate:focus-visible{outline:2px solid #a87827;outline-offset:2px}
body .btp-password-guidance{display:block;min-width:0;flex:1 1 210px;color:#88621f;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
body .btp-password-guidance.is-valid{color:#476552}
@media(max-width:410px){body .btp-password-actions{align-items:flex-start;flex-direction:column}body .btp-password-guidance{flex:auto}}

/* v0.64.29 — Indicador local de resistência; não substitui validação do servidor.
   Escopo limitado aos três formulários de nova senha. */
body .btp-password-meter[hidden]{display:none!important}
body .btp-password-meter{
  width:100%;min-width:0;box-sizing:border-box;margin:0 0 14px;
  padding:12px 14px;border:1px solid #ecdcbc;border-radius:13px;
  background:#fffaf2;color:#203149;
}
body .btp-password-meter.wide,body .btp-form-grid .btp-password-meter{grid-column:1/-1}
body .btp-password-meter-head{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;margin-bottom:9px}
body .btp-password-meter-head strong{font-size:13px;line-height:1.45;font-weight:760;overflow-wrap:anywhere}
body .btp-password-meter-head span{font-size:12px;line-height:1.45;color:#725f44;font-variant-numeric:tabular-nums}
body .btp-password-meter-track{width:100%;height:7px;border-radius:999px;background:#ebe4d8;overflow:hidden}
body .btp-password-meter-track > span{display:block;width:0;height:100%;border-radius:999px;background:#ba8e45;transition:width 160ms ease-out,background-color 160ms ease-out}
body .btp-password-meter[data-score="0"] .btp-password-meter-track > span{background:#aa7356}
body .btp-password-meter[data-score="1"] .btp-password-meter-track > span{background:#b78444}
body .btp-password-meter[data-score="2"] .btp-password-meter-track > span{background:#c79b4c}
body .btp-password-meter[data-score="3"] .btp-password-meter-track > span{background:#9c752e}
body .btp-password-meter[data-score="4"] .btp-password-meter-track > span{background:#705923}
body .btp-password-meter small{display:block;margin-top:9px;font-size:12px;line-height:1.5;color:#6a6256;overflow-wrap:anywhere}
@media(max-width:480px){body .btp-password-meter{padding:11px 12px}body .btp-password-meter-head strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){body .btp-password-meter-track > span{transition:none}}
