/*
Theme Name: BufferFlow V117 Delete To Approvals
Author: BufferFlow
Description: Buffer-inspired frontend styling/layout update. Backend routes, channel logic, publishing logic, and REST behavior unchanged.
Version: 117.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bufferflow-unified-social-theme
*/

:root{
  --bf-app:#f7f5f1;
  --bf-sidebar:#f1ece4;
  --bf-white:#fff;
  --bf-ink:#232323;
  --bf-muted:#69655f;
  --bf-light:#8f8b84;
  --bf-line:#e5dfd7;
  --bf-line-dark:#d7d0c6;
  --bf-selected:#e9e5de;
  --bf-green:#b8f2a8;
  --bf-green-soft:#dff7da;
  --bf-green-dark:#246b2a;
  --bf-blue:#0a66c2;
  --bf-blue-soft:#eaf4ff;
  --bf-red:#9b241f;
  --bf-purple:#eee5ff;
  --bf-radius:12px;
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bf-app);
  color:var(--bf-ink);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,input,textarea{font:inherit}
button{cursor:pointer}
input,textarea{outline:none}
input:focus,textarea:focus{border-color:#bdb5aa!important;box-shadow:0 0 0 3px rgba(35,35,35,.05)}

.bf-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  background:var(--bf-app);
}

.bf-side{
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  background:var(--bf-sidebar);
  border-right:1px solid var(--bf-line);
  padding:22px 20px;
}
.bf-side::-webkit-scrollbar{width:8px}
.bf-side::-webkit-scrollbar-thumb{background:#c8c0b6;border-radius:999px}

.bf-brand{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 24px;
  font-size:26px;
  font-weight:850;
  letter-spacing:-.05em;
}
.bf-brand:before{
  content:"";
  width:21px;
  height:21px;
  display:inline-block;
  background:
    linear-gradient(180deg,#1f2328,#1f2328);
  clip-path:polygon(50% 0,100% 22%,50% 44%,0 22%);
  box-shadow:0 7px 0 #1f2328,0 14px 0 #1f2328;
  transform:translateY(-7px);
}

.bf-new{
  width:100%;
  height:50px;
  border:0;
  border-radius:999px;
  background:var(--bf-green);
  color:#101510;
  font-size:17px;
  font-weight:720;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:18px;
}
.bf-new:before{content:"+";font-size:24px;line-height:0}
.bf-new:hover{background:#aaf09a}

.bf-nav{
  display:grid;
  gap:6px;
  margin-bottom:28px;
}
.bf-nav button{
  height:42px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#393631;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  font-size:15px;
  font-weight:560;
}
.bf-nav button.active,.bf-nav button:hover{
  background:var(--bf-selected);
  transform:none;
}
.bf-count{
  min-width:24px;
  height:24px;
  border-radius:999px;
  display:inline-grid;
  place-items:center;
  padding:0 8px;
  background:var(--bf-green-soft);
  color:#2a7831;
  font-size:13px;
  font-weight:760;
}
.bf-count.linkedin{background:#e2f0ff;color:var(--bf-blue)}
.bf-count.x{background:#e9e9e9;color:#111}
.bf-count.google{background:#fff1cc;color:#8a6100}

.bf-side-title{
  margin:22px 0 12px;
  color:#706c65;
  font-size:14px;
  font-weight:500;
  letter-spacing:0;
  text-transform:none;
}

.bf-account-group{
  border:0!important;
  background:transparent!important;
  padding:0;
  margin:0 0 8px;
  box-shadow:none!important;
}
.bf-account-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:5px 6px;
}
.bf-icon{
  width:34px;
  height:34px;
  border:1px solid var(--bf-line-dark);
  border-radius:8px;
  background:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:820;
  color:#111;
  position:relative;
}
.bf-icon.linkedin{background:var(--bf-blue);color:#fff;border-color:var(--bf-blue)}
.bf-icon.x{background:#111;color:#fff;border-color:#111}
.bf-icon.google{background:#fff;border-color:#eccb75;color:#111}
.bf-account-head strong{
  flex:1;
  min-width:0;
  font-size:15px;
  font-weight:520;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bf-account-head .bf-count{
  background:transparent!important;
  color:#5d5952!important;
  font-size:13px;
  font-weight:600;
  min-width:auto;
  height:auto;
  padding:0;
}

.bf-account-list{display:grid;gap:2px;margin:3px 0 0}
.bf-checkline{
  display:flex;
  gap:9px;
  align-items:flex-start;
  padding:6px 8px 6px 33px;
  border-radius:8px;
  color:#2f2d29;
  font-size:14px;
  line-height:1.22;
}
.bf-checkline:hover{background:#e8e3db}
.bf-checkline input{
  width:16px;
  height:16px;
  margin:1px 0 0;
  accent-color:#2e7d32;
}
.bf-empty{padding:6px 8px 6px 33px;color:#878178;font-size:14px;font-weight:500}

.bf-connect-block{
  border-top:1px solid var(--bf-line-dark);
  margin-top:22px;
  padding-top:2px;
}
.bf-connect-row{
  height:36px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#5d5952;
  font-size:15px;
  padding:0 9px;
  border-radius:8px;
}
.bf-connect-row:hover{background:#e8e3db}
.bf-connect-icon{
  width:25px;
  height:25px;
  border-radius:7px;
  display:grid;
  place-items:center;
  font-size:11px;
  font-weight:850;
  background:#fff;
  border:1px solid var(--bf-line-dark);
}
.bf-connect-icon.instagram{background:#f01886;color:#fff;border-color:#f01886}
.bf-connect-icon.threads{background:#111;color:#fff;border-color:#111}
.bf-connect-icon.linkedin{background:var(--bf-blue);color:#fff;border-color:var(--bf-blue)}
.bf-connect-icon.more{color:#555}

.bf-org-card{
  margin-top:28px;
  border-top:1px solid var(--bf-line-dark);
  padding-top:18px;
  display:flex;
  align-items:center;
  gap:11px;
}
.bf-org-avatar{
  width:38px;
  height:38px;
  border-radius:9px;
  background:#dbe0ff;
  display:grid;
  place-items:center;
  color:#1c2370;
}
.bf-org-card strong{display:block;font-size:15px;font-weight:650}
.bf-org-card span{display:block;color:#6f6a61;font-size:13px;margin-top:1px}

.bf-main{
  min-width:0;
  padding:4px 12px 12px 0;
}
.bf-wrap{width:100%;max-width:none}
.bf-page{display:none}
.bf-page.active{display:block}

.bf-card{
  background:var(--bf-white);
  border:1px solid var(--bf-line);
  border-radius:14px;
  box-shadow:none;
  margin:0;
  padding:0;
  min-height:calc(100vh - 16px);
  overflow:hidden;
}
.bf-buffer-panel{
  display:flex;
  flex-direction:column;
}

.bf-topbar{
  height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 38px;
  gap:20px;
}
.bf-title-wrap{
  display:flex;
  align-items:center;
  gap:13px;
}
.bf-grid-icon{
  width:48px;
  height:48px;
  border:1px solid var(--bf-line);
  border-radius:13px;
  display:grid;
  place-items:center;
  font-size:24px;
  color:#252525;
  background:#fff;
}
.bf-card h2{
  margin:0;
  padding:0;
  font-size:28px;
  font-weight:750;
  letter-spacing:-.04em;
  line-height:1.1;
}
.bf-top-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.bf-pill{
  height:41px;
  border:1px solid var(--bf-line);
  border-radius:10px;
  background:#fff;
  color:#2c2925;
  padding:0 16px;
  font-size:15px;
  font-weight:620;
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.bf-pill:hover{background:#f7f5f1;transform:none}
.bf-pill.active{
  background:var(--bf-green-soft);
  border-color:#bae7b0;
  color:#1e5d27;
}
.bf-pill.new{background:#fff}

.bf-tabs{
  display:flex;
  gap:28px;
  align-items:center;
  margin:0 38px;
  padding:0;
  border-bottom:1px solid var(--bf-line);
}
.bf-tab{
  position:relative;
  border:0;
  background:transparent;
  color:#5c5851;
  padding:19px 0 16px;
  border-radius:0;
  font-size:15px;
  font-weight:610;
}
.bf-tab span{
  margin-left:6px;
  display:inline-grid;
  place-items:center;
  min-width:25px;
  height:23px;
  border-radius:999px;
  background:#ecebea;
  font-size:12px;
  font-weight:760;
  color:#4e4a44;
}
.bf-tab.active{background:transparent;color:#111;box-shadow:none}
.bf-tab.active:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:#2e7d32;
}
.bf-filterbar{
  height:58px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:24px;
  padding:0 38px;
}
.bf-filterbar button{
  border:0;
  background:transparent;
  color:#2e2b27;
  font-size:15px;
  font-weight:610;
}
.bf-filterbar button:hover{transform:none;color:#000}

#bfQueue{
  flex:1;
  min-height:520px;
}
#bfQueue .bf-empty,
#bfQueue > p.bf-empty{
  height:520px;
  display:flex!important;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:transparent;
  position:relative;
  font-size:0!important;
  padding:0!important;
}
#bfQueue .bf-empty:before,
#bfQueue > p.bf-empty:before{
  content:"";
  width:300px;
  height:210px;
  background:
    linear-gradient(#e8e5df 0 0) 35px 32px/150px 7px no-repeat,
    linear-gradient(#e8e5df 0 0) 35px 51px/185px 7px no-repeat,
    linear-gradient(#f0eee9 0 0) 225px 20px/64px 78px no-repeat,
    linear-gradient(#e8e5df 0 0) 35px 130px/150px 7px no-repeat,
    linear-gradient(#e8e5df 0 0) 35px 149px/185px 7px no-repeat,
    linear-gradient(#f0eee9 0 0) 225px 118px/64px 78px no-repeat;
  border:1px solid #eee9e2;
  border-radius:10px;
  opacity:.9;
}
#bfQueue .bf-empty:after,
#bfQueue > p.bf-empty:after{
  content:"No posts scheduled\a Schedule some posts and they will appear here";
  white-space:pre;
  margin-top:26px;
  color:#2c2925;
  font-size:20px;
  font-weight:650;
  line-height:1.75;
}
#bfQueue .bf-empty::first-line{font-size:0}

.bf-queue-item{
  border:1px solid var(--bf-line);
  border-radius:14px;
  background:#fff;
  padding:18px;
  margin:0 38px 14px;
  box-shadow:none;
}
.bf-queue-item h3{
  margin:0 0 5px;
  font-size:21px;
  font-weight:760;
  letter-spacing:-.03em;
}
.bf-status{
  float:right;
  border-radius:999px;
  padding:6px 10px;
  font-size:13px;
  font-weight:750;
}
.bf-status.published,.published{background:var(--bf-green-soft);color:var(--bf-green-dark)}
.bf-status.failed,.failed{background:#ffe1df;color:#8f1714}
.bf-status.queued,.queued{background:#e8efff;color:#2f55a4}

/* Composer: kept functional, polished to same system */
.bf-composer-card{
  max-width:1000px;
  margin:22px auto;
  min-height:auto;
  border-radius:16px;
}
.bf-composer-head{
  padding:28px 34px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.bf-composer-head h2{font-size:34px}
.bf-kicker{
  display:block;
  color:#777168;
  font-size:13px;
  font-weight:740;
  margin-bottom:6px;
}
.bf-label{
  display:block;
  margin:18px 34px 8px;
  color:#625d55;
  font-size:13px;
  font-weight:720;
  letter-spacing:0;
  text-transform:none;
}
.bf-input,.bf-textarea{
  width:calc(100% - 68px);
  margin:0 34px;
  background:#fff;
  border:1px solid var(--bf-line);
  border-radius:12px;
  padding:13px 15px;
  font-size:16px;
  color:#1f2328;
}
.bf-textarea{min-height:118px;resize:vertical;line-height:1.45}
.bf-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:0 34px;
}
.bf-channel{
  border:1px solid var(--bf-line);
  background:#fff;
  border-radius:14px;
  padding:16px;
  box-shadow:none;
}
.bf-channel.linkedin{border-color:#d5e6f7;background:#fbfdff}
.bf-channel.x{border-color:#dedede;background:#fff}
.bf-channel.google{border-color:#f0d99a;background:#fffef9}
.bf-channel.empty{opacity:.72}
.bf-channel-top{display:flex;align-items:center;gap:10px;margin-bottom:13px}
.bf-channel h3{margin:0;font-size:18px;font-weight:750;letter-spacing:-.025em}
.bf-channel-top .bf-count{margin-left:auto}
.bf-cardcheck{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid transparent;
  border-radius:10px;
  padding:10px;
  background:#fbfaf7;
  margin-bottom:8px;
}
.bf-channel.linkedin .bf-cardcheck{background:#f1f8ff}
.bf-channel.x .bf-cardcheck{background:#f8f8f8}
.bf-channel.google .bf-cardcheck{background:#fff8df}
.bf-cardcheck:hover{background:#f3efe8;border-color:#e8dfd2}
.bf-cardcheck input{width:18px;height:18px;margin-top:1px;accent-color:#2f7e3a}
.bf-cardcheck strong{display:block;font-size:15px;font-weight:750;letter-spacing:-.01em;color:#2b2925}
.bf-cardcheck span span{display:block;color:#6f6a61;font-size:13px;margin-top:2px;word-break:break-word}
.bf-upload{
  width:calc(100% - 68px);
  margin:0 34px;
  border:1px dashed #cfc7bc;
  background:#fbfaf7;
  border-radius:14px;
  min-height:115px;
  display:grid;
  place-items:center;
  text-align:center;
  cursor:pointer;
  padding:20px;
}
.bf-upload:hover{border-color:#b9ad9d;background:#fff;transform:none}
.bf-upload strong{display:block;font-size:18px;font-weight:750;letter-spacing:-.025em}
.bf-upload span{display:block;color:#777168;margin-top:5px;font-size:14px;font-weight:500}
.bf-media{
  display:none;
  width:calc(100% - 68px);
  margin:14px 34px 0;
  border:1px solid var(--bf-line);
  border-radius:14px;
  padding:10px;
  background:#fff;
}
.bf-media img{max-width:100%;border-radius:10px;display:block}
.bf-preview{
  width:calc(100% - 68px);
  margin:18px 34px 0;
  border:1px solid var(--bf-line);
  border-radius:14px;
  padding:18px;
  background:#fbfaf7;
}
.bf-preview h3{margin:0 0 4px;font-size:22px;font-weight:780;letter-spacing:-.035em}
.bf-preview .platforms{margin-bottom:10px;color:#6f6a61;font-size:14px;font-weight:600}
.bf-preview p{margin:0;color:#2d2b27;font-size:15px;line-height:1.5}
.bf-actions{
  display:flex;
  gap:12px;
  padding:20px 34px 28px;
  margin:0;
}
.bf-btn{
  border:1px solid var(--bf-line);
  border-radius:11px;
  padding:12px 18px;
  min-height:46px;
  font-size:16px;
  font-weight:750;
  cursor:pointer;
  background:#fff;
  box-shadow:none;
}
.bf-btn:hover{transform:none}
.bf-btn.primary{background:#111;color:#fff;border-color:#111}
.bf-btn.green{background:var(--bf-green);color:#173f1e;border-color:#a4e894}
.bf-btn:disabled{opacity:.55;cursor:not-allowed}
.bf-result{
  width:calc(100% - 68px);
  margin:0 34px 28px;
  border:1px solid #d7e4d3;
  border-radius:12px;
  padding:14px 16px;
  background:#f1faee;
  color:#237333;
  font-weight:650;
  font-size:14px;
  display:none;
  line-height:1.45;
}
.bf-result.bad{background:#fff3f2;border-color:#efd0cd;color:var(--bf-red)}

.bf-simple-page{padding:34px}
.bf-simple-page h2{font-size:32px;margin-bottom:10px}
.bf-simple-page p{color:#625d55;line-height:1.55}

/* Toasts */
.bf-toast{
  position:fixed;
  top:22px;
  left:50%;
  transform:translateX(-50%);
  z-index:999999;
  max-width:850px;
  border-radius:13px;
  padding:14px 18px;
  font-size:15px;
  font-weight:750;
  line-height:1.35;
  box-shadow:0 14px 38px rgba(31,35,40,.18);
}
.bf-toast.good{background:#e7f7e2;color:#165f25;border:1px solid #cceec3}
.bf-toast.bad{background:#fff0ef;color:#961f1a;border:1px solid #edcbc8}

@media(max-width:1080px){
  .bf-shell{grid-template-columns:280px minmax(0,1fr)}
  .bf-grid{grid-template-columns:1fr}
}
@media(max-width:860px){
  .bf-shell{display:block}
  .bf-side{height:auto;position:relative}
  .bf-main{padding:10px}
  .bf-topbar{height:auto;padding:22px;align-items:flex-start;flex-direction:column}
  .bf-tabs,.bf-filterbar{margin-left:22px;margin-right:22px;padding-left:0;padding-right:0}
  .bf-filterbar{justify-content:flex-start;flex-wrap:wrap}
}
@media(max-width:560px){
  .bf-side{padding:16px}
  .bf-main{padding:8px}
  .bf-card{border-radius:12px}
  .bf-topbar{padding:18px}
  .bf-card h2{font-size:24px}
  .bf-grid-icon{width:42px;height:42px}
  .bf-tabs{gap:18px;overflow:auto;flex-wrap:nowrap}
  .bf-composer-head{padding:22px 20px 8px;align-items:flex-start;flex-direction:column}
  .bf-label{margin-left:20px;margin-right:20px}
  .bf-input,.bf-textarea,.bf-upload,.bf-media,.bf-preview,.bf-result{
    width:calc(100% - 40px);
    margin-left:20px;
    margin-right:20px;
  }
  .bf-grid{padding:0 20px}
  .bf-actions{padding:18px 20px;flex-direction:column}
  #bfQueue .bf-empty:before{width:230px;transform:scale(.85)}
}


/* V16 Hashtag Explorer Addition */
.bf-subnav{margin-left:28px!important;height:34px!important;font-size:14px!important;color:#5c5751!important}
.bf-hashtag-page .bf-topbar{border-bottom:1px solid var(--bf-line)}
.bf-hx-wrap{margin:38px;background:#fff;border:1px solid var(--bf-line);border-radius:22px;padding:28px;box-shadow:0 18px 50px rgba(31,35,40,.06)}
.bf-hx-intro h3{margin:0 0 12px;font-size:30px;line-height:1.1;letter-spacing:-.04em;font-weight:850}
.bf-hx-intro p{margin:0 0 22px;color:#716b63;font-size:16px}
.bf-hx-controls{display:grid;grid-template-columns:minmax(250px,1fr) 220px 190px 150px;gap:10px;align-items:center}
.bf-hx-input,.bf-hx-select{height:58px;border:1px solid var(--bf-line);border-radius:14px;background:#fff;color:#242424;padding:0 18px;font-size:16px}
.bf-hx-input{font-size:18px}.bf-hx-button{height:58px;border:0;border-radius:16px;background:#111;color:#fff;font-weight:850;font-size:16px}
.bf-hx-button:hover{transform:none;background:#000}.bf-hx-chips{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.bf-hx-chips button{border:1px solid var(--bf-line);background:#fff;border-radius:999px;padding:10px 16px;font-size:14px;font-weight:750}
.bf-hx-chips button:hover{background:#f7f5f1;transform:none}.bf-hx-tip{border-left:6px solid #111;background:#f7f2ea;border-radius:14px;padding:16px 18px;margin:18px 0 20px;color:#2a2927;font-size:15px}
.bf-hx-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.bf-hx-summary div{background:#fbfaf7;border:1px solid var(--bf-line);border-radius:14px;padding:14px 15px;color:#5f5a52;line-height:1.4}.bf-hx-summary strong{color:#1f2328}
.bf-hx-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.bf-hx-card{border:1px solid var(--bf-line);border-radius:18px;background:#fff;padding:18px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.bf-hx-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(31,35,40,.08);border-color:#d7d0c6}
.bf-hx-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}.bf-hx-card h4{margin:0;font-size:23px;line-height:1.05;letter-spacing:-.04em}
.bf-hx-card-top span{white-space:nowrap;background:var(--bf-green-soft);color:#174b22;border-radius:999px;padding:7px 10px;font-size:13px;font-weight:850}
.bf-hx-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;color:#716b63;font-size:14px}.bf-hx-metrics strong{color:#333}
.bf-hx-bar{height:9px;background:#eee9e2;border-radius:999px;overflow:hidden;margin:16px 0}.bf-hx-bar i{display:block;height:100%;background:var(--bf-green);border-radius:999px}
.bf-hx-add{width:100%;height:48px;border:0;border-radius:13px;background:#111;color:#fff;font-weight:850;font-size:15px}.bf-hx-add:hover{background:#000;transform:none}
@media(max-width:1250px){.bf-hx-results{grid-template-columns:repeat(3,minmax(0,1fr))}.bf-hx-controls{grid-template-columns:1fr 190px 180px 140px}}
@media(max-width:980px){.bf-hx-controls{grid-template-columns:1fr 1fr}.bf-hx-results{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-hx-summary{grid-template-columns:1fr}}
@media(max-width:620px){.bf-hx-wrap{margin:18px;padding:18px}.bf-hx-controls{grid-template-columns:1fr}.bf-hx-results{grid-template-columns:1fr}}


/* V19 true popup calendar modal */
body.bf-cal-lock{overflow:hidden}
.bf-cal-modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:22px!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
.bf-cal-modal.is-open{display:flex!important}
.bf-cal-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(16,15,13,.46)!important;
  backdrop-filter:blur(7px)!important;
}
.bf-cal-dialog{
  position:relative!important;
  width:min(1120px,96vw)!important;
  max-height:92vh!important;
  overflow:auto!important;
  background:#fffdf9!important;
  border:1px solid #e2d8ca!important;
  border-radius:28px!important;
  box-shadow:0 34px 100px rgba(0,0,0,.28)!important;
  padding:26px!important;
  color:#1f2328!important;
}
.bf-cal-header{
  display:flex!important;
  justify-content:space-between!important;
  align-items:flex-start!important;
  gap:18px!important;
  padding-bottom:18px!important;
  border-bottom:1px solid #e7dfd4!important;
}
.bf-cal-eyebrow{
  color:#7a7369!important;
  font-size:13px!important;
  font-weight:850!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  margin-bottom:4px!important;
}
.bf-cal-header h2{
  margin:0!important;
  font-size:38px!important;
  line-height:1!important;
  letter-spacing:-.055em!important;
}
.bf-cal-x{
  width:46px!important;
  height:46px!important;
  border-radius:999px!important;
  border:1px solid #e2d8ca!important;
  background:#fff!important;
  color:#111!important;
  font-size:30px!important;
  line-height:1!important;
}
.bf-cal-controls{
  display:grid!important;
  grid-template-columns:54px 1fr 54px!important;
  gap:12px!important;
  align-items:center!important;
  margin:20px 0!important;
}
.bf-cal-month{
  text-align:center!important;
  font-size:25px!important;
  font-weight:900!important;
  letter-spacing:-.035em!important;
}
.bf-cal-nav-btn{
  height:48px!important;
  border:1px solid #e2d8ca!important;
  border-radius:14px!important;
  background:#fff!important;
  font-size:20px!important;
  font-weight:900!important;
}
.bf-cal-x:hover,.bf-cal-nav-btn:hover{
  background:#f7f3ed!important;
  transform:none!important;
}
.bf-cal-weekdays{
  display:grid!important;
  grid-template-columns:repeat(7,1fr)!important;
  border:1px solid #e7dfd4!important;
  border-bottom:0!important;
  border-radius:18px 18px 0 0!important;
  overflow:hidden!important;
}
.bf-cal-weekdays span{
  background:#f7f3ed!important;
  padding:13px 8px!important;
  text-align:center!important;
  color:#6d665d!important;
  font-size:13px!important;
  font-weight:900!important;
  border-right:1px solid #e7dfd4!important;
}
.bf-cal-weekdays span:last-child{border-right:0!important}
.bf-cal-grid{
  display:grid!important;
  grid-template-columns:repeat(7,1fr)!important;
  border-left:1px solid #e7dfd4!important;
  border-top:1px solid #e7dfd4!important;
}
.bf-cal-cell{
  min-height:132px!important;
  border:0!important;
  border-right:1px solid #e7dfd4!important;
  border-bottom:1px solid #e7dfd4!important;
  background:#fff!important;
  color:#1f2328!important;
  text-align:left!important;
  padding:10px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  cursor:pointer!important;
}
.bf-cal-cell:hover{
  background:#fbf8f2!important;
  transform:none!important;
}
.bf-cal-cell.is-muted{
  background:#fdfbf7!important;
  color:#b4ada3!important;
}
.bf-cal-cell.is-today .bf-cal-number{
  background:#b8f2a8!important;
  color:#173f1e!important;
}
.bf-cal-cell.is-selected{
  outline:3px solid rgba(46,125,50,.18)!important;
  outline-offset:-3px!important;
}
.bf-cal-number{
  width:32px!important;
  height:32px!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  font-weight:900!important;
}
.bf-cal-events{
  display:grid!important;
  gap:5px!important;
}
.bf-cal-event{
  border-radius:9px!important;
  padding:6px 7px!important;
  font-size:12px!important;
  line-height:1.25!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
.bf-cal-event.scheduled{background:#e8f2ff!important;color:#1b4d8a!important}
.bf-cal-event.published{background:#e6f8df!important;color:#1f6627!important}
.bf-cal-event.queued{background:#fff2cc!important;color:#805600!important}
.bf-cal-more{
  color:#6f6a61!important;
  font-size:12px!important;
  font-weight:850!important;
  padding-left:2px!important;
}
.bf-cal-footer{
  display:flex!important;
  gap:18px!important;
  flex-wrap:wrap!important;
  margin-top:18px!important;
  color:#666058!important;
  font-size:14px!important;
}
.bf-cal-dot{
  width:10px!important;
  height:10px!important;
  border-radius:999px!important;
  display:inline-block!important;
  margin-right:7px!important;
}
.bf-cal-dot.scheduled{background:#77aef2!important}
.bf-cal-dot.published{background:#82dd72!important}
.bf-cal-dot.queued{background:#f3c44f!important}
@media(max-width:820px){
  .bf-cal-modal{padding:10px!important}
  .bf-cal-dialog{padding:18px!important;border-radius:20px!important}
  .bf-cal-header h2{font-size:30px!important}
  .bf-cal-cell{min-height:100px!important;padding:7px!important}
  .bf-cal-event{font-size:11px!important}
}
@media(max-width:620px){
  .bf-cal-weekdays span{font-size:11px!important;padding:8px 2px!important}
  .bf-cal-grid,.bf-cal-weekdays{grid-template-columns:repeat(7,minmax(42px,1fr))!important}
  .bf-cal-cell{min-height:82px!important}
}


/* V22 scheduled queue controls */
.bf-v22-schedule-info{
  margin-top:18px;
  border-top:1px solid var(--bf-line, #e7dfd4);
  padding-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.bf-v22-time span{
  display:block;
  color:#746d64;
  font-size:13px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:4px;
}
.bf-v22-time strong{
  display:block;
  font-size:18px;
  color:#1f2328;
}
.bf-v22-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.bf-v22-actions button{
  border:1px solid var(--bf-line, #e7dfd4);
  background:#fff;
  border-radius:12px;
  padding:10px 14px;
  font-weight:850;
}
.bf-v22-edit-time{
  color:#174b22;
  background:#e6f8df!important;
  border-color:#b8ecaa!important;
}
.bf-v22-delete-post{
  color:#8f1714;
  background:#fff1f0!important;
  border-color:#efc9c5!important;
}
.bf-v22-actions button:hover{
  transform:none;
  filter:brightness(.98);
}
@media(max-width:720px){
  .bf-v22-schedule-info{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* V23 Best Time To Post */
.bf-bt-page .bf-topbar{border-bottom:1px solid var(--bf-line)}
.bf-bt-wrap{
  padding:38px;
}
.bf-bt-desc{
  color:#6f6a61;
  font-size:18px;
  margin:0 0 22px;
}
.bf-bt-topic{
  width:100%;
  height:60px;
  border:1px solid var(--bf-line);
  border-radius:18px;
  background:#fff;
  padding:0 20px;
  font-size:18px;
  margin-bottom:14px;
}
.bf-bt-controls{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:28px;
}
.bf-bt-controls select{
  height:38px;
  min-width:180px;
  border:1px solid #b8b1a8;
  background:#fff;
  font-size:18px;
}
.bf-bt-controls button{
  height:58px;
  border:0;
  border-radius:24px;
  padding:0 28px;
  background:#111;
  color:#fff;
  font-size:18px;
  font-weight:900;
}
.bf-bt-controls button:hover{transform:none;background:#000}
.bf-bt-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-bottom:28px;
}
.bf-bt-metrics div,
.bf-bt-hero,
.bf-bt-profile,
.bf-bt-note,
.bf-bt-row{
  border:1px solid var(--bf-line);
  border-radius:24px;
  background:#fff;
}
.bf-bt-metrics div{
  padding:24px;
}
.bf-bt-metrics span{
  display:block;
  font-size:18px;
  margin-bottom:12px;
}
.bf-bt-metrics strong{
  font-size:44px;
  line-height:1;
}
.bf-bt-feature-grid{
  display:grid;
  grid-template-columns:minmax(0,2.4fr) minmax(260px,.9fr);
  gap:18px;
  margin-bottom:22px;
}
.bf-bt-hero{
  padding:30px;
}
.bf-bt-hero > span{
  display:inline-flex;
  background:#14a447;
  color:#fff;
  border-radius:999px;
  padding:10px 16px;
  font-weight:900;
  margin-bottom:18px;
}
.bf-bt-hero h3{
  margin:0 0 20px;
  font-size:48px;
  line-height:1;
  letter-spacing:-.05em;
}
.bf-bt-hero h3 em{
  font-style:normal;
  color:#15a84a;
}
.bf-bt-hero p{
  color:#443f38;
  font-size:18px;
  line-height:1.45;
  margin:0;
}
.bf-bt-profile{
  padding:40px 28px;
  display:flex;
  justify-content:center;
  flex-direction:column;
}
.bf-bt-profile h3{
  margin:0 0 10px;
  font-size:28px;
  letter-spacing:-.04em;
}
.bf-bt-profile p{
  margin:0;
  color:#706a62;
  font-size:18px;
}
.bf-bt-results{
  display:grid;
  gap:14px;
}
.bf-bt-row{
  display:grid;
  grid-template-columns:90px 150px 130px minmax(160px,1fr) 110px 110px;
  align-items:center;
  gap:14px;
  padding:18px 20px;
}
.bf-bt-rank{
  background:#111;
  color:#fff;
  border-radius:999px;
  padding:12px 16px;
  text-align:center;
  font-weight:900;
  font-size:18px;
}
.bf-bt-row strong{
  font-size:24px;
}
.bf-bt-row em{
  font-style:normal;
  font-size:22px;
  font-weight:900;
}
.bf-bt-row em.green{color:#12a349}
.bf-bt-row em.gold{color:#c98200}
.bf-bt-bar{
  height:12px;
  border-radius:999px;
  background:#eee7d9;
  overflow:hidden;
}
.bf-bt-bar i{
  display:block;
  height:100%;
  background:linear-gradient(90deg,#b8f2a8,#14a84a);
  border-radius:999px;
}
.bf-bt-label{
  color:#514a43;
  font-size:20px;
  font-weight:850;
}
.bf-bt-use{
  height:52px;
  border:0;
  border-radius:18px;
  background:#111;
  color:#fff;
  font-size:19px;
  font-weight:900;
}
.bf-bt-use:hover{transform:none;background:#000}
.bf-bt-note{
  margin-top:22px;
  padding:22px 24px;
  color:#3f3932;
  font-size:18px;
  line-height:1.45;
}
@media(max-width:1100px){
  .bf-bt-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bf-bt-feature-grid{grid-template-columns:1fr}
  .bf-bt-row{grid-template-columns:80px 120px 100px 1fr 90px}
  .bf-bt-use{grid-column:1 / -1}
}
@media(max-width:700px){
  .bf-bt-wrap{padding:22px}
  .bf-bt-metrics{grid-template-columns:1fr}
  .bf-bt-hero h3{font-size:36px}
  .bf-bt-row{grid-template-columns:1fr;gap:10px}
}


/* V24 Viral Score Predictor */
.bf-vs-page .bf-topbar{border-bottom:1px solid var(--bf-line)}
.bf-vs-wrap{padding:38px}.bf-vs-head{display:grid;grid-template-columns:1fr 250px;gap:24px;align-items:start;margin-bottom:26px}.bf-vs-head h3{margin:0 0 12px;font-size:46px;line-height:1;letter-spacing:-.055em}.bf-vs-head p{margin:0;color:#6f6a61;font-size:18px;line-height:1.45;max-width:850px}.bf-vs-scorebox{background:#111;color:#fff;border-radius:28px;padding:28px 24px;text-align:center}.bf-vs-scorebox strong{display:block;font-size:44px;line-height:1;margin-bottom:10px}.bf-vs-scorebox span{font-weight:900}.bf-vs-input-grid{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:22px;margin-bottom:28px}#bfVsText{width:100%;min-height:190px;border:1px solid var(--bf-line);border-radius:22px;background:#fff;padding:18px 20px;font-size:18px;resize:vertical}.bf-vs-controls{display:grid;gap:12px;align-content:start}.bf-vs-controls select{width:100%;height:42px;border:1px solid #b8b1a8;background:#fff;font-size:17px}.bf-vs-controls button{height:58px;border:0;border-radius:18px;background:#111;color:#fff;font-size:18px;font-weight:900}.bf-vs-controls button:hover{transform:none;background:#000}#bfVsUseCaption{background:#b8f2a8;color:#173f1e}.bf-vs-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.bf-vs-metrics div{border:1px solid var(--bf-line);border-radius:22px;background:#fff;padding:22px}.bf-vs-metrics span{display:block;color:#6f6a61;font-size:15px;margin-bottom:12px}.bf-vs-metrics strong{display:block;font-size:34px;line-height:1;margin-bottom:18px}.bf-vs-metrics i{display:block;height:11px;border-radius:999px;background:#eee7d9;overflow:hidden}.bf-vs-metrics b{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#f3d24a,#19a94f)}.bf-vs-lower{display:grid;grid-template-columns:1fr 1fr;gap:24px}.bf-vs-panel{border:1px solid var(--bf-line);border-radius:24px;background:#fff;padding:28px}.bf-vs-panel h3{margin:0 0 22px;font-size:28px;letter-spacing:-.04em}#bfVsBreakdown,#bfVsTips{display:grid;gap:12px}#bfVsBreakdown div,#bfVsTips div{border:1px solid var(--bf-line);border-radius:18px;background:#f7f2ea;padding:16px 18px;font-size:17px;line-height:1.35}@media(max-width:1100px){.bf-vs-head,.bf-vs-input-grid,.bf-vs-lower{grid-template-columns:1fr}.bf-vs-scorebox{max-width:260px}.bf-vs-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.bf-vs-wrap{padding:22px}.bf-vs-head h3{font-size:36px}.bf-vs-metrics{grid-template-columns:1fr}}


/* V26 AI Image Generator Polish */
.bf-ai-page{
  background:#fffdf9;
}
.bf-ai-page .bf-topbar{
  border-bottom:1px solid var(--bf-line);
  background:#fffdf9;
}
.bf-ai-wrap{
  padding:38px;
}
.bf-ai-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 240px;
  gap:28px;
  align-items:start;
  margin-bottom:28px;
}
.bf-ai-kicker{
  display:inline-flex;
  align-items:center;
  border:1px solid #dcd2c3;
  background:#f8f2ea;
  border-radius:999px;
  padding:8px 12px;
  color:#6f675c;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:14px;
}
.bf-ai-hero h3{
  margin:0 0 14px;
  font-size:52px;
  line-height:.98;
  letter-spacing:-.06em;
  font-weight:950;
}
.bf-ai-hero p{
  margin:0;
  color:#6d665f;
  font-size:18px;
  line-height:1.5;
  max-width:880px;
}
.bf-ai-score{
  background:#111;
  color:#fff;
  border-radius:28px;
  padding:30px 24px;
  text-align:center;
  box-shadow:0 18px 45px rgba(0,0,0,.14);
}
.bf-ai-score strong{
  display:block;
  font-size:42px;
  line-height:1;
  letter-spacing:-.04em;
  margin-bottom:10px;
}
.bf-ai-score span{
  font-weight:900;
  color:#f4efe8;
}
.bf-ai-layout{
  display:grid;
  grid-template-columns:minmax(0,1.16fr) minmax(360px,.84fr);
  gap:24px;
  margin-bottom:24px;
}
.bf-ai-card{
  background:#fff;
  border:1px solid var(--bf-line);
  border-radius:26px;
  padding:26px;
  box-shadow:0 18px 50px rgba(31,35,40,.045);
}
.bf-ai-card-head{
  margin-bottom:20px;
}
.bf-ai-card-head h3{
  margin:0 0 6px;
  font-size:25px;
  line-height:1.05;
  letter-spacing:-.045em;
  font-weight:900;
}
.bf-ai-card-head p{
  margin:0;
  color:#766f65;
  font-size:15px;
}
.bf-ai-builder label,
.bf-ai-controls label{
  display:block;
  color:#6d665f;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:8px;
}
#bfAiIdea{
  width:100%;
  min-height:170px;
  border:1px solid #e2d8ca;
  border-radius:20px;
  background:#fffdf9;
  padding:18px 20px;
  color:#1f2328;
  font-size:17px;
  line-height:1.45;
  resize:vertical;
  margin-bottom:18px;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
#bfAiIdea:focus,
#bfAiPrompt:focus,
.bf-ai-controls select:focus{
  border-color:#b8f2a8;
  box-shadow:0 0 0 4px rgba(184,242,168,.28);
}
.bf-ai-controls{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
.bf-ai-controls select{
  width:100%;
  height:52px;
  border:1px solid #e2d8ca;
  border-radius:16px;
  background:#fffdf9;
  color:#1f2328;
  padding:0 14px;
  font-size:16px;
  outline:none;
}
.bf-ai-main-btn{
  width:100%;
  height:60px;
  border:0;
  border-radius:18px;
  background:#111;
  color:#fff;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.02em;
  box-shadow:0 14px 30px rgba(0,0,0,.13);
}
.bf-ai-main-btn:hover{
  background:#000;
  transform:none;
}
.bf-ai-preview{
  display:flex;
  flex-direction:column;
}
.bf-ai-canvas{
  min-height:340px;
  border-radius:26px;
  background:
    radial-gradient(circle at 22% 22%, rgba(184,242,168,.86), transparent 32%),
    radial-gradient(circle at 78% 24%, rgba(52,116,210,.17), transparent 34%),
    linear-gradient(135deg,#fffdf8 0%,#f5efe5 100%);
  border:1px solid #eadfce;
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
  position:relative;
}
.bf-ai-canvas:after{
  content:"";
  position:absolute;
  right:-46px;
  bottom:-58px;
  width:190px;
  height:190px;
  border-radius:50%;
  background:rgba(17,17,17,.06);
}
.bf-ai-mock-badge{
  align-self:flex-start;
  background:#111;
  color:#fff;
  border-radius:999px;
  padding:9px 14px;
  font-weight:900;
  position:relative;
  z-index:1;
}
.bf-ai-mock-title{
  font-size:34px;
  line-height:1.03;
  font-weight:950;
  letter-spacing:-.055em;
  max-width:92%;
  position:relative;
  z-index:1;
}
.bf-ai-mock-sub{
  color:#5f5a52;
  font-size:16px;
  font-weight:800;
  position:relative;
  z-index:1;
}
.bf-ai-specs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}
.bf-ai-specs div,
.bf-ai-direction div{
  border:1px solid var(--bf-line);
  border-radius:16px;
  background:#f8f2ea;
  padding:14px 15px;
  color:#3d3934;
  font-size:15px;
  line-height:1.35;
}
.bf-ai-output-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
#bfAiPrompt{
  width:100%;
  min-height:245px;
  border:1px solid #e2d8ca;
  border-radius:20px;
  background:#fffdf9;
  padding:18px;
  color:#222;
  font-size:15px;
  line-height:1.55;
  resize:vertical;
  outline:none;
}
.bf-ai-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.bf-ai-actions button{
  min-height:50px;
  border:0;
  border-radius:15px;
  padding:0 18px;
  font-weight:950;
  background:#111;
  color:#fff;
}
.bf-ai-actions button:hover{
  transform:none;
  background:#000;
}
#bfAiUseCaption{
  background:#b8f2a8;
  color:#173f1e;
}
#bfAiUseCaption:hover{
  background:#a7ee94;
}
.bf-ai-direction{
  display:grid;
  gap:12px;
}
.bf-ai-note{
  margin-top:24px;
  border:1px solid var(--bf-line);
  border-radius:22px;
  background:#fff;
  padding:20px 22px;
  color:#423d36;
  font-size:16px;
  line-height:1.45;
}
@media(max-width:1120px){
  .bf-ai-hero,
  .bf-ai-layout,
  .bf-ai-output-grid{
    grid-template-columns:1fr;
  }
  .bf-ai-score{
    max-width:260px;
  }
}
@media(max-width:720px){
  .bf-ai-wrap{
    padding:22px;
  }
  .bf-ai-hero h3{
    font-size:38px;
  }
  .bf-ai-controls,
  .bf-ai-specs{
    grid-template-columns:1fr;
  }
  .bf-ai-card{
    padding:20px;
  }
  .bf-ai-mock-title{
    font-size:27px;
  }
}


/* V28 AI visual preview */
.bf-ai-canvas{
  position:relative!important;
  min-height:360px!important;
  overflow:hidden!important;
}
.bf-ai-art-layer{
  position:absolute;
  border-radius:999px;
  background:#111;
  opacity:.08;
  pointer-events:none;
}
.bf-ai-art-layer-one{
  width:260px;
  height:260px;
  right:-70px;
  bottom:-80px;
}
.bf-ai-art-layer-two{
  width:150px;
  height:150px;
  right:130px;
  top:80px;
  opacity:.12;
}
.bf-ai-visual-card{
  position:absolute;
  left:24px;
  right:24px;
  bottom:24px;
  z-index:5;
  background:rgba(255,255,255,.84);
  border:1px solid rgba(255,255,255,.75);
  border-radius:24px;
  padding:22px;
  backdrop-filter:blur(10px);
  box-shadow:0 18px 45px rgba(0,0,0,.08);
}
.bf-ai-visual-chip{
  display:inline-flex;
  background:#111;
  color:#fff;
  border-radius:999px;
  padding:8px 13px;
  font-weight:900;
  margin-bottom:14px;
}
.bf-ai-visual-card h4{
  margin:0 0 8px;
  font-size:26px;
  line-height:1.05;
  letter-spacing:-.05em;
  font-weight:950;
}
.bf-ai-visual-card p{
  margin:0;
  color:#5f5a52;
  font-weight:800;
}
.bf-ai-visual-subject{
  position:absolute;
  top:58px;
  right:60px;
  width:180px;
  height:180px;
  border-radius:44px;
  background:rgba(255,255,255,.35);
  border:1px solid rgba(255,255,255,.55);
  z-index:4;
  box-shadow:0 20px 60px rgba(0,0,0,.06);
}
.bf-ai-visual-subject span{
  position:absolute;
  width:76px;
  height:76px;
  border-radius:50%;
  background:rgba(17,17,17,.16);
  top:30px;
  left:52px;
}
.bf-ai-visual-subject i{
  position:absolute;
  width:120px;
  height:58px;
  border-radius:999px 999px 28px 28px;
  background:rgba(17,17,17,.12);
  bottom:28px;
  left:30px;
}
.bf-ai-preview-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.bf-ai-preview-actions button{
  min-height:46px;
  border:0;
  border-radius:14px;
  padding:0 15px;
  font-weight:900;
  background:#111;
  color:#fff;
}
#bfAiUseVisual{
  background:#b8f2a8;
  color:#173f1e;
}
.bf-ai-preview-actions button:hover{
  transform:none;
  filter:brightness(.98);
}


/* V29 dedicated generated image preview section */
.bf-ai-generated-section{
  margin:24px 0;
  border:1px solid var(--bf-line);
  border-radius:28px;
  background:#fff;
  padding:26px;
  box-shadow:0 18px 50px rgba(31,35,40,.045);
}
.bf-ai-generated-image{
  position:relative;
  min-height:430px;
  border:1px solid #eadfce;
  border-radius:28px;
  overflow:hidden;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:linear-gradient(135deg,#e9f8ff,#f8f3ea);
}
.bf-ai-generated-image:before{
  content:"";
  position:absolute;
  width:250px;
  height:250px;
  right:70px;
  top:80px;
  border-radius:48px;
  background:rgba(17,17,17,.08);
  transform:rotate(8deg);
}
.bf-ai-generated-image:after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  right:-90px;
  bottom:-110px;
  border-radius:999px;
  background:rgba(17,17,17,.07);
}
.bf-ai-generated-chip{
  position:relative;
  z-index:2;
  align-self:flex-start;
  background:#111;
  color:#fff;
  border-radius:999px;
  padding:10px 16px;
  font-weight:950;
}
.bf-ai-generated-copy{
  position:relative;
  z-index:2;
  width:min(720px,100%);
  background:rgba(255,255,255,.86);
  border:1px solid rgba(255,255,255,.7);
  border-radius:26px;
  padding:26px;
  backdrop-filter:blur(10px);
  box-shadow:0 18px 45px rgba(0,0,0,.08);
}
.bf-ai-generated-copy h4{
  margin:0 0 10px;
  color:#111;
  font-size:36px;
  line-height:1.05;
  letter-spacing:-.055em;
  font-weight:950;
}
.bf-ai-generated-copy p{
  margin:0;
  color:#5f5a52;
  font-size:17px;
  font-weight:850;
}
.bf-ai-generated-person{
  position:absolute;
  width:170px;
  height:170px;
  right:110px;
  top:135px;
  border-radius:44px;
  background:rgba(255,255,255,.32);
  border:1px solid rgba(255,255,255,.6);
  z-index:1;
}
.bf-ai-generated-person:before{
  content:"";
  position:absolute;
  width:72px;
  height:72px;
  border-radius:999px;
  left:49px;
  top:28px;
  background:rgba(17,17,17,.16);
}
.bf-ai-generated-person:after{
  content:"";
  position:absolute;
  width:116px;
  height:54px;
  border-radius:999px 999px 28px 28px;
  left:27px;
  bottom:26px;
  background:rgba(17,17,17,.12);
}
@media(max-width:760px){
  .bf-ai-generated-image{
    min-height:350px;
  }
  .bf-ai-generated-copy h4{
    font-size:28px;
  }
  .bf-ai-generated-person{
    opacity:.55;
    right:30px;
  }
}


/* V30 final AI image preview */
.bf-ai-final-render{
  position:relative;
  min-height:520px!important;
  padding:0!important;
  border-radius:30px!important;
  overflow:hidden!important;
}
.bf-v30-final-top{
  position:absolute;
  top:28px;
  left:28px;
  right:28px;
  z-index:6;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.bf-v30-final-top span{
  display:inline-flex;
  background:#111;
  color:#fff;
  border-radius:999px;
  padding:11px 18px;
  font-size:18px;
  font-weight:950;
}
.bf-v30-final-top strong{
  background:rgba(255,255,255,.68);
  border:1px solid rgba(255,255,255,.75);
  border-radius:999px;
  padding:10px 15px;
  color:#3c3832;
  font-size:15px;
  font-weight:950;
  backdrop-filter:blur(10px);
}
.bf-v30-visual-area{
  position:absolute;
  inset:0;
  z-index:1;
}
.bf-v30-photo-card{
  position:absolute;
  right:85px;
  top:115px;
  width:300px;
  height:340px;
  border-radius:48px;
  background:rgba(255,255,255,.34);
  border:1px solid rgba(255,255,255,.65);
  transform:rotate(7deg);
  box-shadow:0 22px 70px rgba(0,0,0,.08);
}
.bf-v30-face{
  position:absolute;
  width:98px;
  height:98px;
  border-radius:999px;
  background:rgba(17,17,17,.16);
  top:78px;
  left:101px;
}
.bf-v30-body{
  position:absolute;
  width:190px;
  height:86px;
  border-radius:999px 999px 32px 32px;
  background:rgba(17,17,17,.12);
  left:55px;
  top:190px;
}
.bf-v30-lines{
  position:absolute;
  left:45px;
  right:45px;
  bottom:35px;
  display:grid;
  gap:10px;
}
.bf-v30-lines i{
  display:block;
  height:9px;
  border-radius:999px;
  background:rgba(17,17,17,.10);
}
.bf-v30-glow{
  position:absolute;
  right:-120px;
  bottom:-150px;
  width:480px;
  height:480px;
  border-radius:999px;
  background:rgba(17,17,17,.06);
}
.bf-v30-copy-card{
  position:absolute;
  left:34px;
  right:34px;
  bottom:34px;
  z-index:7;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.72);
  border-radius:30px;
  padding:30px 34px;
  backdrop-filter:blur(12px);
  box-shadow:0 22px 65px rgba(0,0,0,.10);
}
.bf-v30-copy-card h4{
  margin:0 0 12px;
  max-width:760px;
  font-size:44px;
  line-height:1.02;
  letter-spacing:-.06em;
  font-weight:950;
  color:#111;
}
.bf-v30-copy-card p{
  margin:0 0 20px;
  color:#5f5a52;
  font-size:20px;
  font-weight:800;
}
.bf-v30-bottom-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.bf-v30-bottom-row span,
.bf-v30-bottom-row em{
  display:inline-flex;
  border-radius:999px;
  padding:10px 14px;
  font-style:normal;
  font-weight:950;
}
.bf-v30-bottom-row span{
  background:#111;
  color:#fff;
}
.bf-v30-bottom-row em{
  background:#b8f2a8;
  color:#173f1e;
}
@media(max-width:760px){
  .bf-ai-final-render{
    min-height:450px!important;
  }
  .bf-v30-photo-card{
    right:24px;
    top:110px;
    opacity:.55;
  }
  .bf-v30-copy-card h4{
    font-size:31px;
  }
  .bf-v30-copy-card p{
    font-size:16px;
  }
}


/* V31 hard AI final preview replacement */
.bf-ai-v31 .bf-ai-final-section{
  margin:24px 0!important;
  border:1px solid var(--bf-line)!important;
  border-radius:28px!important;
  background:#fff!important;
  padding:28px!important;
  box-shadow:0 18px 50px rgba(31,35,40,.045)!important;
}
.bf-ai-v31 .bf-ai-final-image{
  position:relative!important;
  min-height:540px!important;
  border:1px solid #eadfce!important;
  border-radius:30px!important;
  overflow:hidden!important;
  padding:0!important;
  background:linear-gradient(135deg,#e9f8ff,#f8f3ea)!important;
}
.bf-ai-v31 .bf-ai-final-topline{
  position:absolute!important;
  top:30px!important;
  left:30px!important;
  right:30px!important;
  z-index:8!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
}
.bf-ai-v31 .bf-ai-final-topline span{
  background:#111!important;
  color:#fff!important;
  border-radius:999px!important;
  padding:12px 19px!important;
  font-size:18px!important;
  font-weight:950!important;
}
.bf-ai-v31 .bf-ai-final-topline strong{
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(255,255,255,.8)!important;
  border-radius:999px!important;
  padding:11px 16px!important;
  color:#3c3832!important;
  font-size:15px!important;
  font-weight:950!important;
  backdrop-filter:blur(10px)!important;
}
.bf-ai-v31 .bf-ai-final-photo{
  position:absolute!important;
  right:85px!important;
  top:125px!important;
  width:310px!important;
  height:350px!important;
  border-radius:56px!important;
  background:rgba(255,255,255,.36)!important;
  border:1px solid rgba(255,255,255,.65)!important;
  transform:rotate(7deg)!important;
  box-shadow:0 24px 75px rgba(0,0,0,.08)!important;
  z-index:2!important;
}
.bf-ai-v31 .bf-ai-final-avatar{
  position:absolute!important;
  width:102px!important;
  height:102px!important;
  border-radius:999px!important;
  background:rgba(17,17,17,.16)!important;
  top:80px!important;
  left:104px!important;
}
.bf-ai-v31 .bf-ai-final-body{
  position:absolute!important;
  width:198px!important;
  height:90px!important;
  border-radius:999px 999px 34px 34px!important;
  background:rgba(17,17,17,.12)!important;
  left:56px!important;
  top:197px!important;
}
.bf-ai-v31 .bf-ai-final-lines{
  position:absolute!important;
  left:46px!important;
  right:46px!important;
  bottom:36px!important;
  display:grid!important;
  gap:10px!important;
}
.bf-ai-v31 .bf-ai-final-lines i{
  display:block!important;
  height:9px!important;
  border-radius:999px!important;
  background:rgba(17,17,17,.10)!important;
}
.bf-ai-v31 .bf-ai-final-image:after{
  content:""!important;
  position:absolute!important;
  right:-130px!important;
  bottom:-160px!important;
  width:520px!important;
  height:520px!important;
  border-radius:999px!important;
  background:rgba(17,17,17,.06)!important;
  z-index:1!important;
}
.bf-ai-v31 .bf-ai-final-copy{
  position:absolute!important;
  left:38px!important;
  right:38px!important;
  bottom:38px!important;
  z-index:9!important;
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(255,255,255,.76)!important;
  border-radius:32px!important;
  padding:32px 36px!important;
  backdrop-filter:blur(12px)!important;
  box-shadow:0 24px 68px rgba(0,0,0,.10)!important;
}
.bf-ai-v31 .bf-ai-final-copy h4{
  margin:0 0 12px!important;
  max-width:780px!important;
  font-size:44px!important;
  line-height:1.02!important;
  letter-spacing:-.06em!important;
  font-weight:950!important;
  color:#111!important;
}
.bf-ai-v31 .bf-ai-final-copy p{
  margin:0 0 20px!important;
  color:#5f5a52!important;
  font-size:20px!important;
  font-weight:800!important;
}
.bf-ai-v31 .bf-ai-final-copy div{
  display:flex!important;
  gap:12px!important;
  align-items:center!important;
  flex-wrap:wrap!important;
}
.bf-ai-v31 .bf-ai-final-copy span,
.bf-ai-v31 .bf-ai-final-copy em{
  display:inline-flex!important;
  border-radius:999px!important;
  padding:10px 14px!important;
  font-style:normal!important;
  font-weight:950!important;
}
.bf-ai-v31 .bf-ai-final-copy span{
  background:#111!important;
  color:#fff!important;
}
.bf-ai-v31 .bf-ai-final-copy em{
  background:#b8f2a8!important;
  color:#173f1e!important;
}
.bf-ai-v31 .bf-ai-preview-actions{
  display:flex!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin-top:16px!important;
}
.bf-ai-v31 .bf-ai-preview-actions button{
  min-height:52px!important;
  border:0!important;
  border-radius:16px!important;
  padding:0 18px!important;
  font-weight:950!important;
  background:#111!important;
  color:#fff!important;
}
.bf-ai-v31 #bfAiUseVisual{
  background:#b8f2a8!important;
  color:#173f1e!important;
}
@media(max-width:760px){
  .bf-ai-v31 .bf-ai-final-image{
    min-height:470px!important;
  }
  .bf-ai-v31 .bf-ai-final-photo{
    right:28px!important;
    top:120px!important;
    opacity:.55!important;
  }
  .bf-ai-v31 .bf-ai-final-copy h4{
    font-size:31px!important;
  }
  .bf-ai-v31 .bf-ai-final-copy p{
    font-size:16px!important;
  }
}


/* V32 real OpenAI image display */
.bf-ai-real-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  z-index:20!important;
  border-radius:30px!important;
}
.bf-ai-real-status{
  position:absolute!important;
  inset:0!important;
  z-index:21!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:30px!important;
  background:rgba(255,255,255,.82)!important;
  color:#1f2328!important;
  font-size:22px!important;
  font-weight:900!important;
  line-height:1.35!important;
  border-radius:30px!important;
}
#bfAiGenerate:disabled{
  opacity:.72!important;
  cursor:wait!important;
}


/* V35 Per-channel overrides polish */
.bf-platform-overrides{
  margin-top:16px;
  padding:20px;
}
.bf-platform-overrides h3{
  margin:0 0 6px;
  font-size:24px;
  letter-spacing:-.04em;
}
.bf-platform-overrides p{
  margin:0 0 16px;
  color:#6f6a61;
}
.bf-platform-overrides-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.bf-platform-overrides-grid label{
  display:block;
  margin-bottom:7px;
  font-weight:900;
  color:#5f5a52;
}
.bf-platform-overrides-grid textarea{
  width:100%;
  min-height:105px;
  border:1px solid var(--bf-line, #e7dfd4);
  border-radius:16px;
  background:#fff;
  padding:14px;
  font:inherit;
  resize:vertical;
}
@media(max-width:760px){
  .bf-platform-overrides-grid{grid-template-columns:1fr}
}


/* V36 Buffer-style platform composer rebuild */
.bf-v36-composer .bf-v36-sub{margin:8px 0 0;color:#6f6a61;font-size:15px}
.bf-v36-tabs-shell{
  width:calc(100% - 68px);
  margin:20px 34px 0;
  border:1px solid var(--bf-line);
  border-radius:22px;
  background:#fff;
  padding:22px;
}
.bf-v36-tabs-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:18px;
}
.bf-v36-tabs-head h3{margin:0 0 6px;font-size:26px;letter-spacing:-.04em}
.bf-v36-tabs-head p{margin:0;color:#6f6a61}
.bf-v36-tabs-head button,.bf-v36-tools button{
  border:1px solid var(--bf-line);
  background:#fff;
  border-radius:12px;
  padding:10px 13px;
  font-weight:850;
}
.bf-v36-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.bf-v36-tabs button{
  border:1px solid var(--bf-line);
  background:#fbfaf7;
  border-radius:999px;
  padding:10px 15px;
  font-weight:900;
}
.bf-v36-tabs button.active{
  background:#111;
  color:#fff;
  border-color:#111;
}
.bf-v36-tabs button.is-selected:not(.active){
  background:#e6f8df;
  color:#173f1e;
  border-color:#b8ecaa;
}
.bf-v36-panel{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(310px,.85fr);
  gap:20px;
}
.bf-v36-platform-title{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.bf-v36-platform-title strong{font-size:22px}
.bf-v36-platform-title span{font-weight:850;color:#4f4942}
.bf-v36-platform-title span.warn{color:#a36b00}
.bf-v36-platform-title span.danger{color:#a5231d}
#bfV36PlatformMessage{
  width:100%;
  min-height:170px;
  border:1px solid var(--bf-line);
  border-radius:18px;
  padding:16px;
  font:inherit;
  resize:vertical;
}
.bf-v36-tools{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0 16px;
}
.bf-v36-media-card{
  display:grid;
  grid-template-columns:1fr 180px;
  gap:16px;
  align-items:center;
  border:1px solid var(--bf-line);
  border-radius:18px;
  padding:16px;
  background:#fbfaf7;
  margin-bottom:16px;
}
.bf-v36-media-card strong{display:block;font-size:18px;margin-bottom:5px}
.bf-v36-media-card p{margin:0;color:#6f6a61}
.bf-v36-cropbox{
  min-height:110px;
  border:2px dashed #cfc7bc;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#5f5a52;
  font-weight:900;
  background:#fff;
}
.bf-v36-schedule-label{display:block;font-weight:900;color:#5f5a52;margin-bottom:8px}
.bf-v36-small,.bf-v36-global-note{display:block;margin:8px 34px 0;color:#777168}
.bf-v36-preview-card{
  border:1px solid var(--bf-line);
  border-radius:22px;
  background:#fbfaf7;
  padding:18px;
  position:sticky;
  top:18px;
}
.bf-v36-preview-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.bf-v36-preview-top span{background:#111;color:#fff;border-radius:999px;padding:8px 12px;font-weight:900}
.bf-v36-preview-top em{font-style:normal;color:#6f6a61;font-weight:850}
.bf-v36-preview-media{
  min-height:190px;
  border-radius:18px;
  background:linear-gradient(135deg,#f8f3ea,#e8f2ff);
  display:grid;
  place-items:center;
  color:#6f6a61;
  font-weight:900;
  overflow:hidden;
}
.bf-v36-preview-media img{width:100%;height:100%;object-fit:cover;display:block}
.bf-v36-preview-body{padding:16px 4px 0}
.bf-v36-preview-body strong{display:block;font-size:20px;margin-bottom:8px}
.bf-v36-preview-body p{margin:0;color:#3c3832;line-height:1.45;white-space:pre-wrap}
#bfV36SummaryPreview{display:grid;gap:8px;margin-top:12px}
.bf-v36-summary-row{
  border:1px solid var(--bf-line);
  border-radius:12px;
  padding:10px;
  background:#fffdf9;
  display:grid;
  gap:4px;
}
.bf-v36-summary-row strong{text-transform:capitalize}
.bf-v36-summary-row span{color:#423d36}
.bf-v36-summary-row em{font-style:normal;color:#777168;font-size:13px}
@media(max-width:980px){
  .bf-v36-panel{grid-template-columns:1fr}
  .bf-v36-media-card{grid-template-columns:1fr}
}
@media(max-width:620px){
  .bf-v36-tabs-shell{width:calc(100% - 40px);margin-left:20px;margin-right:20px;padding:18px}
  .bf-v36-tabs-head{flex-direction:column}
}


/* V37 Buffer-like composer layout */
.bf-v37-composer{
  padding:0!important;
  overflow:hidden;
}
.bf-v37-header{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
  padding:36px 42px 18px;
}
.bf-v37-header h2{
  margin:4px 0 8px;
  font-size:46px;
  letter-spacing:-.06em;
  line-height:1;
}
.bf-v37-header p{
  margin:0;
  color:#6f6a61;
  font-size:16px;
}
.bf-v37-channel-row{
  padding:0 42px 18px;
}
.bf-v37-channel-chips{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  min-height:auto!important;
}
.bf-v37-channel-chips .bf-channel,
.bf-v37-channel-chips .bf-cardcheck,
.bf-v37-channel-chips label{
  width:auto!important;
  min-width:unset!important;
  border:1px solid var(--bf-line)!important;
  border-radius:999px!important;
  padding:10px 14px!important;
  background:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
}
.bf-v37-channel-chips .bf-channel h3,
.bf-v37-channel-chips .bf-channel .count,
.bf-v37-channel-chips .bf-channel .bf-empty,
.bf-v37-channel-chips .bf-channel .bf-icon{
  display:none!important;
}
.bf-v37-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 390px;
  gap:24px;
  padding:0 42px 42px;
}
.bf-v37-left > .bf-label,
.bf-v37-left > .bf-input,
.bf-v37-left > .bf-textarea{
  margin-left:0!important;
  margin-right:0!important;
  width:100%!important;
}
.bf-v37-left > .bf-textarea{
  min-height:150px;
}
.bf-v37-media-schedule{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:18px;
  align-items:start;
  margin-top:18px;
}
.bf-v37-tabs-card{
  border:1px solid var(--bf-line);
  border-radius:24px;
  background:#fff;
  padding:22px;
  margin-top:22px;
}
.bf-v37-tabs-top{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:18px;
}
.bf-v37-tabs-top h3{
  margin:0 0 6px;
  font-size:26px;
  letter-spacing:-.045em;
}
.bf-v37-tabs-top p{
  margin:0;
  color:#6f6a61;
}
.bf-v37-tabs-top button{
  border:1px solid var(--bf-line);
  background:#fff;
  border-radius:14px;
  padding:12px 16px;
  font-weight:900;
}
.bf-v37-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.bf-v37-tabs button{
  border:1px solid var(--bf-line);
  border-radius:999px;
  background:#fbfaf7;
  padding:10px 15px;
  font-weight:900;
}
.bf-v37-tabs button.active{
  background:#111!important;
  color:#fff!important;
  border-color:#111!important;
}
.bf-v37-tabs button.is-selected:not(.active){
  background:#e6f8df!important;
  color:#173f1e!important;
  border-color:#b8ecaa!important;
}
.bf-v37-platform-editor{
  display:grid;
  gap:14px;
}
.bf-v37-spec-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:16px;
  align-items:stretch;
}
.bf-v37-tab-schedule{
  border:1px solid var(--bf-line);
  border-radius:18px;
  background:#fbfaf7;
  padding:16px;
}
.bf-v37-tab-schedule small,
.bf-v37-note{
  color:#777168;
}
.bf-v37-right{
  display:grid;
  gap:16px;
  align-content:start;
}
.bf-v37-preview-card{
  position:sticky!important;
  top:18px!important;
  margin:0!important;
}
.bf-v37-summary{
  margin:0!important;
}
.bf-v37-actions{
  margin:0!important;
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.bf-v37-actions .bf-btn{
  width:100%;
}
@media(max-width:1150px){
  .bf-v37-main-grid{
    grid-template-columns:1fr;
  }
  .bf-v37-right{
    grid-template-columns:1fr;
  }
}
@media(max-width:820px){
  .bf-v37-header,
  .bf-v37-channel-row,
  .bf-v37-main-grid{
    padding-left:22px;
    padding-right:22px;
  }
  .bf-v37-media-schedule,
  .bf-v37-spec-row{
    grid-template-columns:1fr;
  }
  .bf-v37-tabs-top,
  .bf-v37-header{
    flex-direction:column;
  }
}


/* V38 Accessible Buffer-like composer polish */
:root{
  --bf-focus:#2563eb;
  --bf-access-text:#1f2328;
  --bf-access-muted:#5f5a52;
  --bf-access-line:#d8d0c4;
  --bf-access-soft:#fffaf3;
}
.bf-v37-composer,
.bf-v38-accessible{
  color:var(--bf-access-text);
}
.bf-v37-header{
  background:linear-gradient(180deg,#fffdf9 0%,#fbf7ef 100%);
  border-bottom:1px solid var(--bf-line);
}
.bf-v37-header h2{
  font-size:clamp(34px,4vw,50px)!important;
}
.bf-v37-header p{
  max-width:720px;
  line-height:1.45;
}
.bf-v37-channel-row{
  background:#fffdf9;
  border-bottom:1px solid var(--bf-line);
  padding-top:20px!important;
}
.bf-v37-channel-row .bf-label,
.bf-v37-left .bf-label{
  color:#49433c;
  font-size:15px;
  letter-spacing:.01em;
}
.bf-v37-channel-chips{
  padding:8px 0 4px;
}
.bf-v37-channel-chips .bf-channel,
.bf-v37-channel-chips .bf-cardcheck,
.bf-v37-channel-chips label{
  min-height:48px!important;
  color:#1f2328!important;
  box-shadow:0 1px 0 rgba(31,35,40,.04)!important;
}
.bf-v37-channel-chips input[type="checkbox"]{
  width:20px!important;
  height:20px!important;
  accent-color:#178a2f;
}
.bf-v37-main-grid{
  padding-top:28px!important;
}
.bf-v37-left > .bf-input,
.bf-v37-left > .bf-textarea,
#bfV36PlatformMessage,
#bfV36PlatformSchedule,
#bfScheduleAt{
  border-color:var(--bf-access-line)!important;
  color:#1f2328!important;
  background:#fff!important;
  font-size:17px!important;
}
.bf-v37-left > .bf-input{
  min-height:58px;
}
.bf-v37-left > .bf-textarea{
  min-height:170px!important;
  line-height:1.5;
}
.bf-v37-tabs-card{
  border-color:var(--bf-access-line)!important;
  box-shadow:0 18px 45px rgba(31,35,40,.045);
}
.bf-v37-tabs-top{
  align-items:center!important;
}
.bf-v37-tabs-top h3{
  color:#1f2328;
}
.bf-v37-tabs-top p{
  line-height:1.45;
  max-width:720px;
}
.bf-v37-tabs-top button,
.bf-v36-tools button{
  min-height:46px;
  color:#1f2328;
}
.bf-v37-tabs{
  border-bottom:1px solid var(--bf-line);
  padding-bottom:14px;
}
.bf-v37-tabs button{
  min-height:46px;
  font-size:15px;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
.bf-v37-tabs button:hover{
  background:#f0eadf;
}
.bf-v37-tabs button:focus-visible,
.bf-v37-tabs-top button:focus-visible,
.bf-v36-tools button:focus-visible,
.bf-btn:focus-visible,
.bf-pill:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible{
  outline:3px solid var(--bf-focus)!important;
  outline-offset:3px!important;
  box-shadow:none!important;
}
.bf-v37-tabs button.active{
  background:#111!important;
  color:#fff!important;
}
.bf-v37-tabs button.is-selected:not(.active)::after{
  content:"";
  display:inline-block;
  width:8px;
  height:8px;
  margin-left:8px;
  border-radius:999px;
  background:#178a2f;
}
.bf-v36-platform-title{
  margin-top:2px;
  padding:12px 14px;
  border-radius:16px;
  background:#fbf7ef;
  border:1px solid var(--bf-line);
}
.bf-v36-platform-title strong{
  color:#1f2328;
}
.bf-v36-platform-title span{
  border-radius:999px;
  padding:6px 10px;
  background:#fff;
  border:1px solid var(--bf-line);
}
.bf-v36-platform-title span.warn{
  color:#8a5700!important;
  border-color:#f0c36b;
  background:#fff7e3;
}
.bf-v36-platform-title span.danger{
  color:#9f1d1d!important;
  border-color:#ef9a9a;
  background:#fff1f1;
}
#bfV36PlatformMessage{
  min-height:180px!important;
  line-height:1.5;
}
.bf-v38-help{
  display:block;
  margin-top:-4px;
  margin-bottom:8px;
  color:var(--bf-access-muted);
  font-size:14px;
}
.bf-v36-tools{
  gap:10px!important;
}
.bf-v36-tools button{
  background:#fff!important;
}
.bf-v36-tools button:hover{
  background:#fbf7ef!important;
}
.bf-v37-spec-row{
  align-items:stretch!important;
}
.bf-v36-media-card,
.bf-v37-tab-schedule{
  border-color:var(--bf-access-line)!important;
  background:#fffdf9!important;
}
.bf-v36-cropbox{
  background:
    linear-gradient(45deg,rgba(0,0,0,.035) 25%,transparent 25%),
    linear-gradient(-45deg,rgba(0,0,0,.035) 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,rgba(0,0,0,.035) 75%),
    linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.035) 75%);
  background-size:20px 20px;
  background-position:0 0,0 10px,10px -10px,-10px 0;
  background-color:#fff;
}
.bf-v37-right{
  position:relative;
}
.bf-v37-preview-card{
  border-color:var(--bf-access-line)!important;
  box-shadow:0 18px 45px rgba(31,35,40,.055);
}
.bf-v36-preview-top span{
  letter-spacing:.01em;
}
.bf-v36-preview-top em{
  color:#4f4942!important;
}
.bf-v36-preview-media{
  min-height:220px!important;
  color:#49433c!important;
}
.bf-v36-preview-body strong{
  font-size:22px!important;
}
.bf-v36-preview-body p{
  font-size:16px;
}
.bf-v37-summary{
  border-color:var(--bf-access-line)!important;
  background:#fff!important;
}
.bf-v36-summary-row{
  border-color:var(--bf-access-line)!important;
}
.bf-v36-summary-row strong{
  color:#1f2328;
}
.bf-v36-summary-row em{
  color:#5f5a52!important;
}
.bf-v37-actions .bf-btn{
  min-height:60px!important;
  font-size:18px!important;
}
.bf-result[role="status"]{
  min-height:0;
}
@media(max-width:1150px){
  .bf-v37-right{
    grid-template-columns:1fr!important;
  }
  .bf-v37-preview-card{
    position:relative!important;
    top:auto!important;
  }
}
@media(max-width:820px){
  .bf-v37-channel-row,
  .bf-v37-header,
  .bf-v37-main-grid{
    padding-left:18px!important;
    padding-right:18px!important;
  }
  .bf-v37-tabs-top{
    align-items:stretch!important;
  }
  .bf-v37-tabs-top button{
    width:100%;
  }
  .bf-v37-tabs{
    gap:8px!important;
  }
  .bf-v37-tabs button{
    flex:1 1 calc(50% - 8px);
  }
  .bf-v37-actions{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:520px){
  .bf-v37-tabs button{
    flex-basis:100%;
  }
  .bf-v37-channel-chips .bf-channel,
  .bf-v37-channel-chips .bf-cardcheck,
  .bf-v37-channel-chips label{
    width:100%!important;
    justify-content:flex-start!important;
  }
}


/* V39 composer layout hard fix */
.bf-v37-composer{
  max-width:1280px!important;
  margin:0 auto!important;
  overflow:visible!important;
  background:#fffdf9!important;
}
.bf-v37-header{
  padding:34px 40px 24px!important;
}
.bf-v37-channel-row{
  padding:24px 40px!important;
  background:#fffdf9!important;
}
.bf-v37-channel-row > div{
  width:100%!important;
}
.bf-v37-channel-chips,
.bf-v39-channel-chip-wrap{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
  padding:0!important;
}
.bf-v37-channel-chips .bf-channel,
.bf-v37-channel-chips .bf-cardcheck,
.bf-v37-channel-chips label,
.bf-v39-channel-chip-wrap .bf-channel,
.bf-v39-channel-chip-wrap .bf-cardcheck,
.bf-v39-channel-chip-wrap label{
  width:100%!important;
  max-width:none!important;
  min-height:64px!important;
  border:1px solid #ded5c8!important;
  border-radius:18px!important;
  padding:12px 16px!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.bf-v37-channel-chips input[type="checkbox"],
.bf-v39-channel-chip-wrap input[type="checkbox"]{
  flex:0 0 auto!important;
  width:22px!important;
  height:22px!important;
  margin:0!important;
}
.bf-v37-channel-chips strong,
.bf-v37-channel-chips b,
.bf-v37-channel-chips span,
.bf-v37-channel-chips div,
.bf-v39-channel-chip-wrap strong,
.bf-v39-channel-chip-wrap b,
.bf-v39-channel-chip-wrap span,
.bf-v39-channel-chip-wrap div{
  min-width:0!important;
}
.bf-v37-channel-chips .bf-icon,
.bf-v37-channel-chips .count,
.bf-v37-channel-chips .bf-empty,
.bf-v39-channel-chip-wrap .bf-icon,
.bf-v39-channel-chip-wrap .count,
.bf-v39-channel-chip-wrap .bf-empty{
  display:none!important;
}
.bf-v37-main-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 420px!important;
  gap:28px!important;
  align-items:start!important;
  padding:32px 40px 46px!important;
}
.bf-v37-left{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  min-width:0!important;
}
.bf-v37-left > .bf-label{
  margin:0 0 8px!important;
}
.bf-v37-left > .bf-input,
.bf-v37-left > .bf-textarea{
  width:100%!important;
  box-sizing:border-box!important;
  margin:0 0 20px!important;
}
.bf-v37-left > .bf-textarea{
  min-height:190px!important;
}
.bf-v37-media-schedule{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(280px,340px)!important;
  gap:18px!important;
  align-items:start!important;
  margin:4px 0 24px!important;
  order:10!important;
}
.bf-v37-media-schedule > div{
  min-width:0!important;
}
.bf-v37-media-schedule .bf-upload{
  width:100%!important;
  min-height:160px!important;
  margin:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.bf-v37-media-schedule .bf-upload strong{
  display:block!important;
  font-size:22px!important;
  line-height:1.1!important;
}
.bf-v37-media-schedule .bf-upload span{
  display:block!important;
  margin-top:8px!important;
  font-size:14px!important;
  line-height:1.35!important;
}
.bf-v37-media-schedule #bfScheduleAt{
  width:100%!important;
  box-sizing:border-box!important;
}
.bf-v37-tabs-card{
  order:20!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:24px!important;
  overflow:hidden!important;
}
.bf-v37-tabs-top{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:16px!important;
  align-items:start!important;
}
.bf-v37-tabs-top button{
  max-width:190px!important;
  white-space:normal!important;
  line-height:1.1!important;
}
.bf-v37-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  width:100%!important;
}
.bf-v37-tabs button{
  flex:0 0 auto!important;
}
.bf-v37-platform-editor{
  display:block!important;
}
.bf-v36-platform-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin:0 0 16px!important;
}
.bf-v36-platform-title span{
  white-space:nowrap!important;
}
#bfV36PlatformMessage{
  width:100%!important;
  box-sizing:border-box!important;
  min-height:200px!important;
  margin:0 0 12px!important;
}
.bf-v38-help{
  margin:0 0 16px!important;
}
.bf-v36-tools{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin:0 0 20px!important;
}
.bf-v36-tools button{
  flex:0 0 auto!important;
  min-height:48px!important;
}
.bf-v37-spec-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(260px,320px)!important;
  gap:18px!important;
  align-items:stretch!important;
  width:100%!important;
}
.bf-v36-media-card,
.bf-v37-tab-schedule{
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin:0!important;
  overflow:hidden!important;
}
.bf-v36-media-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 160px!important;
  gap:16px!important;
}
.bf-v36-media-card p,
.bf-v37-tab-schedule small{
  overflow-wrap:anywhere!important;
  line-height:1.35!important;
}
.bf-v36-cropbox{
  width:160px!important;
  min-width:160px!important;
  min-height:110px!important;
  box-sizing:border-box!important;
}
.bf-v37-tab-schedule #bfV36PlatformSchedule{
  width:100%!important;
  box-sizing:border-box!important;
}
.bf-v37-right{
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
  min-width:0!important;
  position:sticky!important;
  top:18px!important;
}
.bf-v37-preview-card,
.bf-v37-summary{
  width:100%!important;
  box-sizing:border-box!important;
  margin:0!important;
}
.bf-v36-preview-media{
  min-height:240px!important;
}
.bf-v37-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  width:100%!important;
}
.bf-v37-actions .bf-btn{
  min-width:0!important;
  width:100%!important;
  padding-left:12px!important;
  padding-right:12px!important;
}
@media(max-width:1180px){
  .bf-v37-main-grid{
    grid-template-columns:1fr!important;
  }
  .bf-v37-right{
    position:relative!important;
    top:auto!important;
  }
}
@media(max-width:860px){
  .bf-v37-header,
  .bf-v37-channel-row,
  .bf-v37-main-grid{
    padding-left:22px!important;
    padding-right:22px!important;
  }
  .bf-v37-media-schedule,
  .bf-v37-spec-row,
  .bf-v36-media-card{
    grid-template-columns:1fr!important;
  }
  .bf-v36-cropbox{
    width:100%!important;
    min-width:0!important;
  }
  .bf-v37-tabs-top{
    grid-template-columns:1fr!important;
  }
  .bf-v37-tabs-top button{
    max-width:none!important;
    width:100%!important;
  }
}
@media(max-width:560px){
  .bf-v37-channel-chips,
  .bf-v39-channel-chip-wrap{
    grid-template-columns:1fr!important;
  }
  .bf-v36-platform-title{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  .bf-v37-actions{
    grid-template-columns:1fr!important;
  }
}


/* V40 hard fix for broken Selected Channels cards */
.bf-v37-channel-row{
  padding:24px 40px 28px!important;
  overflow:hidden!important;
}
.bf-v37-channel-row .bf-label{
  display:block!important;
  margin:0 0 14px!important;
}
#bfChannels,
.bf-v37-channel-chips,
.bf-v39-channel-chip-wrap{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  align-items:start!important;
  overflow:visible!important;
}
#bfChannels > *,
.bf-v37-channel-chips > *,
.bf-v39-channel-chip-wrap > *{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  box-sizing:border-box!important;
}
#bfChannels .bf-channel,
#bfChannels .bf-account,
#bfChannels .bf-cardcheck,
#bfChannels .bf-checkline,
#bfChannels label{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:62px!important;
  height:auto!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  padding:12px 16px!important;
  margin:0!important;
  border:1px solid #ded5c8!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
  white-space:normal!important;
  text-align:left!important;
}
#bfChannels input[type="checkbox"]{
  flex:0 0 22px!important;
  width:22px!important;
  height:22px!important;
  margin:0!important;
  position:static!important;
  display:block!important;
}
#bfChannels .bf-icon,
#bfChannels .count,
#bfChannels .bf-empty,
#bfChannels .badge,
#bfChannels .pill,
#bfChannels > .count,
#bfChannels > span.count{
  display:none!important;
}
#bfChannels h3,
#bfChannels h4,
#bfChannels strong,
#bfChannels b,
#bfChannels p,
#bfChannels span,
#bfChannels small,
#bfChannels div{
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  transform:none!important;
  rotate:none!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  line-height:1.2!important;
  max-width:100%!important;
  min-width:0!important;
  text-align:left!important;
}
#bfChannels strong,
#bfChannels b{
  display:block!important;
  font-size:16px!important;
  font-weight:900!important;
  color:#1f2328!important;
}
#bfChannels small,
#bfChannels p,
#bfChannels span{
  color:#6f6a61!important;
  font-size:14px!important;
}
#bfChannels br{
  display:none!important;
}
.bf-v37-main-grid{
  clear:both!important;
  border-top:1px solid #e7dfd4!important;
}
.bf-v37-main-grid,
.bf-v37-left,
.bf-v37-right,
.bf-v37-tabs-card,
.bf-v37-preview-card{
  min-width:0!important;
}
.bf-v37-right{
  max-width:420px!important;
}
.bf-v37-left{
  overflow:hidden!important;
}
@media(max-width:1180px){
  .bf-v37-right{
    max-width:none!important;
  }
}
@media(max-width:760px){
  .bf-v37-channel-row{
    padding-left:20px!important;
    padding-right:20px!important;
  }
  #bfChannels,
  .bf-v37-channel-chips,
  .bf-v39-channel-chip-wrap{
    grid-template-columns:1fr!important;
  }
}


/* V41 simple selected-channel boxes - overrides V39/V40 forced chip layouts */
.bf-v37-channel-row{
  padding:28px 40px!important;
  background:#fffdf9!important;
  overflow:visible!important;
}
.bf-v37-channel-row .bf-label{
  display:block!important;
  margin:0 0 14px!important;
  font-size:16px!important;
  font-weight:900!important;
  color:#49433c!important;
}
#bfChannels,
#bfChannels.bf-v41-simple-channels,
.bf-v37-channel-chips,
.bf-v39-channel-chip-wrap{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  max-width:100%!important;
  align-items:start!important;
}
#bfChannels > *,
.bf-v37-channel-chips > *,
.bf-v39-channel-chip-wrap > *{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  box-sizing:border-box!important;
}
#bfChannels .bf-channel,
#bfChannels .bf-cardcheck,
#bfChannels .bf-checkline,
#bfChannels label,
#bfChannels .bf-account{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:16px!important;
  margin:0!important;
  border:1px solid #ded5c8!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 1px 0 rgba(31,35,40,.04)!important;
  overflow:hidden!important;
  text-align:left!important;
  white-space:normal!important;
}
#bfChannels input[type="checkbox"]{
  width:22px!important;
  height:22px!important;
  margin:0 10px 0 0!important;
  vertical-align:middle!important;
  position:relative!important;
  top:2px!important;
  display:inline-block!important;
  flex:none!important;
}
#bfChannels .bf-icon,
#bfChannels .count,
#bfChannels .bf-empty,
#bfChannels .badge,
#bfChannels .pill,
#bfChannels > .count,
#bfChannels > span.count{
  display:none!important;
}
#bfChannels h3,
#bfChannels h4,
#bfChannels strong,
#bfChannels b,
#bfChannels p,
#bfChannels span,
#bfChannels small,
#bfChannels div{
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  transform:none!important;
  rotate:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.25!important;
  text-align:left!important;
  max-width:100%!important;
}
#bfChannels strong,
#bfChannels b{
  display:inline!important;
  font-size:17px!important;
  font-weight:900!important;
  color:#1f2328!important;
}
#bfChannels small,
#bfChannels p,
#bfChannels span{
  font-size:14px!important;
  color:#6f6a61!important;
}
#bfChannels br{
  display:block!important;
}
.bf-v37-main-grid{
  border-top:1px solid #e7dfd4!important;
  padding-top:32px!important;
}
@media(max-width:900px){
  #bfChannels,
  #bfChannels.bf-v41-simple-channels,
  .bf-v37-channel-chips,
  .bf-v39-channel-chip-wrap{
    grid-template-columns:1fr!important;
  }
  .bf-v37-channel-row{
    padding-left:22px!important;
    padding-right:22px!important;
  }
}


/* V42 clean image specs + platform schedule boxes */
.bf-v37-spec-row{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:16px!important;
  width:100%!important;
  align-items:start!important;
}
.bf-v36-media-card,
.bf-v37-tab-schedule{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  box-sizing:border-box!important;
  display:block!important;
  padding:20px!important;
  border:1px solid #ded5c8!important;
  border-radius:20px!important;
  background:#fffdf9!important;
  overflow:visible!important;
}
.bf-v36-media-card > div,
.bf-v37-tab-schedule > div{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
.bf-v36-media-card strong,
.bf-v37-tab-schedule label,
.bf-v36-schedule-label{
  display:block!important;
  margin:0 0 8px!important;
  font-size:20px!important;
  line-height:1.15!important;
  font-weight:950!important;
  color:#1f2328!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  transform:none!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.bf-v36-media-card p,
.bf-v37-tab-schedule small{
  display:block!important;
  margin:0!important;
  color:#6f6a61!important;
  font-size:16px!important;
  line-height:1.45!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  transform:none!important;
}
.bf-v36-cropbox{
  width:100%!important;
  max-width:360px!important;
  min-width:0!important;
  min-height:150px!important;
  height:150px!important;
  margin:18px 0 0!important;
  box-sizing:border-box!important;
  border:2px dashed #c9bdae!important;
  border-radius:18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  background-color:#fff!important;
  color:#4f4942!important;
  font-size:18px!important;
  font-weight:950!important;
}
.bf-v36-cropbox span{
  display:block!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-height:1.2!important;
}
.bf-v37-tab-schedule #bfV36PlatformSchedule{
  width:100%!important;
  max-width:420px!important;
  min-height:58px!important;
  box-sizing:border-box!important;
  margin:8px 0 10px!important;
  padding:0 16px!important;
  border:1px solid #d8d0c4!important;
  border-radius:16px!important;
  background:#fff!important;
  font-size:17px!important;
}
.bf-v37-tab-schedule{
  display:block!important;
}
.bf-v37-platform-editor{
  overflow:visible!important;
}
.bf-v37-tabs-card{
  overflow:visible!important;
}
@media(min-width:1000px){
  .bf-v37-spec-row{
    grid-template-columns:1fr 1fr!important;
  }
  .bf-v36-media-card,
  .bf-v37-tab-schedule{
    min-height:230px!important;
  }
}
@media(max-width:640px){
  .bf-v36-media-card,
  .bf-v37-tab-schedule{
    padding:16px!important;
  }
  .bf-v36-cropbox{
    max-width:100%!important;
  }
}


/* V43 platform auto-crop UI */
.bf-v43-crop-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin:16px 0 0;
}
#bfV43AutoCropBtn,
#bfV43CropAllBtn{
  border:0;
  background:#111;
  color:#fff;
  border-radius:14px;
  min-height:46px;
  padding:0 15px;
  font-weight:950;
  cursor:pointer;
}
#bfV43AutoCropBtn:disabled,
#bfV43CropAllBtn:disabled{
  opacity:.7;
  cursor:wait;
}
#bfV43CropStatus{
  color:#6f6a61;
  font-size:14px;
  font-weight:800;
}
.bf-v36-cropbox.has-crop{
  display:block!important;
  padding:10px!important;
  height:auto!important;
  min-height:0!important;
  max-width:100%!important;
}
.bf-v36-cropbox.has-crop img{
  width:100%;
  display:block;
  border-radius:12px;
  object-fit:cover;
}
.bf-v36-cropbox.has-crop span{
  display:block;
  margin-top:8px;
  font-size:13px;
  color:#5f5a52;
  font-weight:900;
}
#bfV36PreviewMedia img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


/* V44 selected channel detection visual state */
#bfChannels .bf-v44-selected-account{
  border-color:#9ee68e!important;
  background:#f2ffed!important;
  box-shadow:0 0 0 2px rgba(43,170,73,.12)!important;
}
#bfChannels .bf-v44-selected-account strong,
#bfChannels .bf-v44-selected-account b{
  color:#173f1e!important;
}
.bf-v36-summary-row[data-platform]{
  border-left:4px solid #9ee68e!important;
}


/* V45 selected account state */
#bfChannels .bf-v45-selected{
  border-color:#9ee68e!important;
  background:#f2ffed!important;
  box-shadow:0 0 0 2px rgba(43,170,73,.13)!important;
}
.bf-v45-summary-selected{
  border-left:4px solid #87dd75!important;
  background:#fbfff8!important;
}
#bfV36Tabs button.is-selected:not(.active){
  background:#e6f8df!important;
  border-color:#aee99f!important;
  color:#173f1e!important;
}


/* V46 post state cards + reset support */
.bf-v46-post-state-list{
  display:grid;
  gap:14px;
  margin:24px 0 0;
}
.bf-v46-post-card{
  border:1px solid #ded5c8;
  border-radius:18px;
  background:#fff;
  padding:16px;
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.bf-v46-post-main{
  display:flex;
  gap:14px;
  min-width:0;
}
.bf-v46-post-img{
  width:86px;
  height:86px;
  border-radius:14px;
  object-fit:cover;
  flex:0 0 86px;
}
.bf-v46-post-title{
  font-size:18px;
  font-weight:950;
  color:#1f2328;
  margin-bottom:7px;
}
.bf-v46-post-chips{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:8px;
}
.bf-v46-chip{
  display:inline-flex;
  border-radius:999px;
  background:#e6f8df;
  color:#173f1e;
  font-size:12px;
  font-weight:900;
  padding:5px 8px;
}
.bf-v46-post-card p{
  margin:0 0 8px;
  color:#3f3a33;
  line-height:1.4;
}
.bf-v46-post-card small{
  color:#6f6a61;
  font-weight:800;
}
.bf-v46-post-status{
  border-radius:999px;
  background:#f2eee7;
  color:#3f3a33;
  padding:7px 10px;
  font-weight:950;
  font-size:13px;
  text-transform:capitalize;
}
.bf-v46-empty{
  border:1px dashed #d8d0c4;
  border-radius:16px;
  padding:18px;
  color:#6f6a61;
  background:#fffdf9;
  text-align:center;
  font-weight:850;
}
@media(max-width:700px){
  .bf-v46-post-card,
  .bf-v46-post-main{
    flex-direction:column;
  }
  .bf-v46-post-img{
    width:100%;
    height:170px;
    flex:auto;
  }
}


/* V47 crop/reset support */
#bfV36CropBox.has-crop img,
#bfV36PreviewMedia img{
  object-fit:cover!important;
}
.bf-result{
  transition:opacity .2s ease;
}


/* V48 cleaner crop workflow */
.bf-v37-tabs-top{
  align-items:flex-start!important;
}
.bf-v37-tabs-top button{
  min-width:150px!important;
}
.bf-v48-crop-status-panel{
  margin:16px 0 18px;
  padding:16px;
  border:1px solid #ded5c8;
  border-radius:18px;
  background:#fffdf9;
}
.bf-v48-crop-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  margin-bottom:14px;
}
.bf-v48-crop-head strong{
  display:block;
  font-size:18px;
  font-weight:950;
  color:#1f2328;
  margin-bottom:4px;
}
.bf-v48-crop-head span{
  color:#6f6a61;
  font-size:14px;
}
#bfV48CropSelectedBtn{
  border:0;
  background:#111;
  color:#fff;
  border-radius:14px;
  padding:12px 16px;
  min-height:46px;
  font-weight:950;
  cursor:pointer;
  white-space:nowrap;
}
.bf-v48-crop-rows{
  display:grid;
  gap:8px;
}
.bf-v48-crop-total{
  font-weight:950;
  color:#173f1e;
  background:#e6f8df;
  border:1px solid #aee99f;
  border-radius:12px;
  padding:9px 12px;
}
.bf-v48-crop-row{
  display:grid;
  grid-template-columns:28px 1fr auto auto;
  gap:10px;
  align-items:center;
  border:1px solid #ded5c8;
  border-radius:12px;
  background:#fff;
  padding:10px 12px;
}
.bf-v48-crop-row span{
  width:24px;
  height:24px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:950;
  background:#f2eee7;
  color:#6f6a61;
}
.bf-v48-crop-row.ready span{
  background:#20a04b;
  color:#fff;
}
.bf-v48-crop-row strong{
  font-weight:950;
  color:#1f2328;
}
.bf-v48-crop-row em{
  font-style:normal;
  font-weight:850;
  color:#4f4942;
}
.bf-v48-crop-row small{
  color:#6f6a61;
  font-weight:800;
}
.bf-v48-empty-crops{
  padding:12px;
  border:1px dashed #d8d0c4;
  border-radius:12px;
  color:#6f6a61;
  background:#fff;
  font-weight:850;
}
.bf-v43-crop-actions{
  margin-top:12px!important;
}
#bfV43CropStatus{
  display:block;
  width:100%;
}
@media(max-width:760px){
  .bf-v48-crop-head{
    align-items:stretch;
    flex-direction:column;
  }
  #bfV48CropSelectedBtn{
    width:100%;
  }
  .bf-v48-crop-row{
    grid-template-columns:28px 1fr;
  }
  .bf-v48-crop-row em,
  .bf-v48-crop-row small{
    grid-column:2;
  }
}


/* V49 remove duplicate image-spec/crop controls; keep only platform schedule */
.bf-v37-spec-row{
  display:block!important;
  width:100%!important;
  margin-top:18px!important;
}
.bf-v36-media-card{
  display:none!important;
}
.bf-v37-tab-schedule{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:20px!important;
  margin:0!important;
  border:1px solid #ded5c8!important;
  border-radius:18px!important;
  background:#fffdf9!important;
  box-sizing:border-box!important;
}
.bf-v37-tab-schedule .bf-v36-schedule-label,
.bf-v37-tab-schedule label{
  display:block!important;
  margin:0 0 10px!important;
  font-size:22px!important;
  font-weight:950!important;
  color:#1f2328!important;
}
.bf-v37-tab-schedule #bfV36PlatformSchedule{
  width:100%!important;
  max-width:520px!important;
  min-height:58px!important;
  margin:0 0 10px!important;
  padding:0 16px!important;
  border:1px solid #d8d0c4!important;
  border-radius:16px!important;
  background:#fff!important;
  font-size:17px!important;
  box-sizing:border-box!important;
}
.bf-v37-tab-schedule small{
  display:block!important;
  margin:0!important;
  color:#6f6a61!important;
  font-size:15px!important;
  line-height:1.4!important;
}
.bf-v43-crop-actions,
#bfV43AutoCropBtn,
#bfV43CropStatus,
#bfV36CropBox{
  display:none!important;
}


/* V50 crop checkmark fix */
.bf-v48-crop-total.all-ready{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
}
.bf-v48-crop-row.ready{
  border-color:#86efac!important;
  background:#f0fdf4!important;
}
.bf-v48-crop-row.ready span{
  background:#16a34a!important;
  color:#fff!important;
}
.bf-v48-crop-row.pending span{
  background:#f2eee7!important;
  color:#6f6a61!important;
}
#bfV48CropSelectedBtn:disabled{
  opacity:.72;
  cursor:wait;
}


/* V51 cleanup: remove duplicate channel-caption section, non-sticky preview, platform-labeled account cards */

/* Remove the lower platform-specific caption/tools block entirely */
.bf-v37-platform-editor{
  display:none!important;
}
.bf-v38-help,
.bf-v36-tools,
#bfV36PlatformMessage,
#bfV36PlatformHelp,
#bfV38PlatformHelp{
  display:none!important;
}

/* Keep crop status/tabs, but reduce clutter spacing */
.bf-v37-tabs-card{
  padding:22px!important;
}
.bf-v37-tabs-card .bf-v37-tabs{
  margin-bottom:0!important;
}
.bf-v48-crop-status-panel{
  margin-bottom:0!important;
}

/* Preview must NOT stick/follow while scrolling */
.bf-v37-right,
.bf-v37-preview-card,
.bf-v36-preview-card{
  position:static!important;
  top:auto!important;
}
.bf-v37-right{
  align-self:start!important;
}

/* Cleaner selected channel platform cards */
#bfChannels{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:start!important;
}
#bfChannels > *{
  position:relative!important;
  min-height:0!important;
  height:auto!important;
  padding:54px 18px 18px!important;
  border:1px solid #ded5c8!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(31,35,40,.035)!important;
  overflow:hidden!important;
}
#bfChannels > *::before{
  position:absolute;
  top:16px;
  left:18px;
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:5px 10px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:13px;
  line-height:1;
  font-weight:950;
  letter-spacing:.01em;
}
#bfChannels > *:nth-child(1)::before{content:"Facebook";}
#bfChannels > *:nth-child(2)::before{content:"Instagram";}
#bfChannels > *:nth-child(3)::before{content:"LinkedIn";}
#bfChannels > *:nth-child(4)::before{content:"X";}
#bfChannels > *:nth-child(5)::before{content:"Google";}

/* Hide confusing floating count bubbles in the cards */
#bfChannels > * > .count,
#bfChannels > * > .badge,
#bfChannels > * > .pill,
#bfChannels .count,
#bfChannels .bf-empty{
  display:none!important;
}

/* Make account rows simple and readable */
#bfChannels label,
#bfChannels .bf-channel,
#bfChannels .bf-cardcheck,
#bfChannels .bf-checkline,
#bfChannels .bf-account{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:15px 16px!important;
  margin:0 0 10px!important;
  border:1px solid #ded5c8!important;
  border-radius:18px!important;
  background:#fffdf9!important;
  box-sizing:border-box!important;
  text-align:left!important;
  overflow:hidden!important;
}
#bfChannels label:last-child,
#bfChannels .bf-channel:last-child,
#bfChannels .bf-cardcheck:last-child,
#bfChannels .bf-checkline:last-child,
#bfChannels .bf-account:last-child{
  margin-bottom:0!important;
}
#bfChannels input[type="checkbox"]{
  width:22px!important;
  height:22px!important;
  margin:0 10px 0 0!important;
  vertical-align:middle!important;
  accent-color:#178a2f!important;
}
#bfChannels strong,
#bfChannels b{
  display:inline!important;
  color:#1f2328!important;
  font-size:17px!important;
  font-weight:950!important;
  line-height:1.2!important;
}
#bfChannels span,
#bfChannels small,
#bfChannels p{
  display:block!important;
  color:#6f6a61!important;
  font-size:14px!important;
  line-height:1.25!important;
  margin:5px 0 0 34px!important;
  overflow-wrap:anywhere!important;
}
#bfChannels .bf-v45-selected,
#bfChannels .bf-v44-selected-account{
  border-color:#9ee68e!important;
  background:#f2ffed!important;
  box-shadow:0 0 0 2px rgba(43,170,73,.12)!important;
}
#bfChannels .bf-v45-selected strong,
#bfChannels .bf-v44-selected-account strong,
#bfChannels .bf-v45-selected b,
#bfChannels .bf-v44-selected-account b{
  color:#173f1e!important;
}

/* Prevent preview overlap with summary/cards */
.bf-v37-preview-card{
  margin-bottom:20px!important;
  z-index:auto!important;
}
.bf-v37-summary{
  position:relative!important;
  z-index:1!important;
}

@media(max-width:950px){
  #bfChannels{
    grid-template-columns:1fr!important;
  }
}


/* V67 backend auto crop rebuild */
.bf-v48-crop-total.all-ready{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#14532d!important;
}
.bf-v48-crop-row.ready{
  border-color:#86efac!important;
  background:#f0fdf4!important;
}
.bf-v48-crop-row.ready span{
  background:#16a34a!important;
  color:#fff!important;
}
.bf-v37-right,
.bf-v37-preview-card,
.bf-v36-preview-card{
  position:static!important;
  top:auto!important;
}


/* V68 platform character limits */
.bf-v68-char-counter{
  margin:10px 0 0;
  padding:12px 14px;
  border:1px solid #ded5c8;
  border-radius:14px;
  background:#fffdf8;
  color:#1f2328;
}
.bf-v68-char-top,
.bf-v68-char-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.bf-v68-char-top strong{
  font-size:14px;
  font-weight:950;
}
.bf-v68-char-top span{
  font-size:14px;
  font-weight:950;
}
.bf-v68-meter{
  height:8px;
  margin:10px 0;
  overflow:hidden;
  border-radius:999px;
  background:#eee8dd;
}
.bf-v68-meter i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#22c55e;
}
.bf-v68-char-counter.warn .bf-v68-meter i{
  background:#f59e0b;
}
.bf-v68-char-counter.over .bf-v68-meter i{
  background:#dc2626;
}
.bf-v68-char-counter.over{
  border-color:#fecaca;
  background:#fff1f2;
  color:#991b1b;
}
.bf-v68-char-counter.warn{
  border-color:#fde68a;
  background:#fffbeb;
  color:#92400e;
}
.bf-v68-char-bottom span,
.bf-v68-char-bottom em{
  font-size:13px;
  font-style:normal;
  font-weight:800;
  color:inherit;
}
.bf-v68-tab-count{
  display:inline-flex!important;
  margin-left:8px;
  padding:3px 7px;
  border-radius:999px;
  background:#edf7e8;
  color:#166534;
  font-size:11px!important;
  line-height:1!important;
  font-weight:950!important;
  vertical-align:middle;
}
.bf-v68-tab-count.warn{
  background:#fef3c7;
  color:#92400e;
}
.bf-v68-tab-count.over{
  background:#fee2e2;
  color:#991b1b;
}
.bf-v68-tab-count:empty{
  display:none!important;
}


/* V69 sent history */
.bf-v69-sent-list{
  display:grid;
  gap:16px;
  width:100%;
  margin-top:28px;
}
.bf-v69-sent-card{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:18px;
  padding:18px;
  border:1px solid #ded5c8;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 30px rgba(31,35,40,.04);
}
.bf-v69-sent-card img,
.bf-v69-no-img{
  width:160px;
  height:110px;
  border-radius:16px;
  object-fit:cover;
  background:#f4efe7;
}
.bf-v69-no-img{
  display:grid;
  place-items:center;
  font-weight:900;
  color:#756f66;
}
.bf-v69-sent-body h3{
  margin:0;
  font-size:22px;
  line-height:1.15;
}
.bf-v69-sent-body p{
  margin:10px 0;
  color:#4f4840;
  font-size:15px;
  line-height:1.45;
}
.bf-v69-sent-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.bf-v69-sent-top strong{
  padding:6px 12px;
  border-radius:999px;
  background:#dcfce7;
  color:#14532d;
  font-size:13px;
  font-weight:950;
}
.bf-v69-meta{
  color:#756f66;
  font-size:13px;
  font-weight:800;
}
.bf-v69-platforms{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.bf-v69-platform{
  padding:6px 10px;
  border-radius:999px;
  background:#f4efe7;
  font-size:12px;
  font-weight:950;
}
.bf-v69-platform.instagram{background:#fce7f3;color:#9d174d}
.bf-v69-platform.facebook{background:#dbeafe;color:#1e40af}
.bf-v69-platform.x{background:#e5e7eb;color:#111827}
.bf-v69-platform.linkedin{background:#dbeafe;color:#075985}
.bf-v69-platform.google{background:#fef3c7;color:#92400e}
.bf-v69-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.bf-v69-links a{
  color:#111;
  font-weight:950;
  text-decoration:none;
  border-bottom:2px solid #9bed8d;
}
.bf-v69-empty{
  display:grid;
  place-items:center;
  min-height:280px;
  text-align:center;
  color:#1f2328;
}
.bf-v69-empty strong{
  font-size:24px;
}
.bf-v69-empty span{
  margin-top:8px;
  color:#756f66;
  font-weight:800;
}
@media(max-width:760px){
  .bf-v69-sent-card{grid-template-columns:1fr}
  .bf-v69-sent-card img,.bf-v69-no-img{width:100%;height:190px}
}


/* V75 real dashboard tab pages */
.bf-v75-page{width:100%;}
.bf-v75-page-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin:0 0 18px;
}
.bf-v75-page-head h2{
  margin:0;
  font-size:28px;
  line-height:1.15;
}
.bf-v75-page-head span{
  padding:7px 12px;
  border-radius:999px;
  background:#f4efe7;
  color:#4f4840;
  font-weight:950;
  font-size:13px;
}
.bf-v75-list{
  display:grid;
  gap:16px;
}
.bf-v75-card{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:18px;
  padding:18px;
  border:1px solid #ded5c8;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 30px rgba(31,35,40,.04);
}
.bf-v75-card img,.bf-v75-no-img{
  width:160px;
  height:112px;
  border-radius:16px;
  object-fit:cover;
  background:#f4efe7;
}
.bf-v75-no-img{
  display:grid;
  place-items:center;
  color:#756f66;
  font-weight:900;
}
.bf-v75-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.bf-v75-top h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.bf-v75-top strong{
  padding:6px 10px;
  border-radius:999px;
  background:#dcfce7;
  color:#14532d;
  font-size:12px;
  text-transform:capitalize;
}
.bf-v75-body p{
  margin:9px 0;
  color:#4f4840;
  line-height:1.45;
}
.bf-v75-meta{
  color:#756f66;
  font-size:13px;
  font-weight:800;
}
.bf-v75-platforms{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.bf-v75-platform{
  padding:6px 10px;
  border-radius:999px;
  background:#f4efe7;
  font-size:12px;
  font-weight:950;
}
.bf-v75-platform.instagram{background:#fce7f3;color:#9d174d}
.bf-v75-platform.facebook{background:#dbeafe;color:#1e40af}
.bf-v75-platform.x{background:#e5e7eb;color:#111827}
.bf-v75-platform.linkedin{background:#dbeafe;color:#075985}
.bf-v75-platform.google{background:#fef3c7;color:#92400e}
.bf-v75-empty,.bf-v75-loading{
  min-height:260px;
  display:grid;
  place-items:center;
  text-align:center;
  color:#1f2328;
  background:#fff;
  border:1px dashed #ded5c8;
  border-radius:22px;
  padding:26px;
}
.bf-v75-empty strong{
  display:block;
  font-size:24px;
}
.bf-v75-empty span{
  display:block;
  margin-top:8px;
  color:#756f66;
  font-weight:800;
}
@media(max-width:760px){
  .bf-v75-card{grid-template-columns:1fr}
  .bf-v75-card img,.bf-v75-no-img{width:100%;height:190px}
}


/* V76 tab panel replacement */
.bf-v76-panel{
  width:100%;
  margin-top:28px;
}
.bf-v76-panel.bf-v76-active{
  display:block!important;
}
.bf-v76-page-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
}
.bf-v76-page-head h2{
  margin:0;
  font-size:28px;
  line-height:1.15;
}
.bf-v76-page-head span{
  padding:7px 12px;
  border-radius:999px;
  background:#f4efe7;
  font-weight:950;
}
.bf-v76-list{
  display:grid;
  gap:16px;
}
.bf-v76-card{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:18px;
  padding:18px;
  border:1px solid #ded5c8;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 30px rgba(31,35,40,.04);
}
.bf-v76-card img,
.bf-v76-no-img{
  width:160px;
  height:112px;
  border-radius:16px;
  object-fit:cover;
  background:#f4efe7;
}
.bf-v76-no-img{
  display:grid;
  place-items:center;
  color:#756f66;
  font-weight:900;
}
.bf-v76-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.bf-v76-top h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.bf-v76-top strong{
  padding:6px 10px;
  border-radius:999px;
  background:#dcfce7;
  color:#14532d;
  font-size:12px;
  text-transform:capitalize;
}
.bf-v76-body p{
  margin:9px 0;
  color:#4f4840;
  line-height:1.45;
}
.bf-v76-meta{
  color:#756f66;
  font-size:13px;
  font-weight:800;
}
.bf-v76-platforms{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.bf-v76-platform{
  padding:6px 10px;
  border-radius:999px;
  background:#f4efe7;
  font-size:12px;
  font-weight:950;
}
.bf-v76-empty,
.bf-v76-loading{
  min-height:260px;
  display:grid;
  place-items:center;
  text-align:center;
  color:#1f2328;
  background:#fff;
  border:1px dashed #ded5c8;
  border-radius:22px;
  padding:26px;
}
.bf-v76-empty strong{
  display:block;
  font-size:24px;
}
.bf-v76-empty span{
  display:block;
  margin-top:8px;
  color:#756f66;
  font-weight:800;
}
@media(max-width:760px){
  .bf-v76-card{grid-template-columns:1fr}
  .bf-v76-card img,.bf-v76-no-img{width:100%;height:190px}
}


/* V78 clean dashboard tabs */
.bf-v78-panel{
  width:100%;
  margin-top:28px;
}
.bf-v78-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
}
.bf-v78-head h2{
  margin:0;
  font-size:28px;
  line-height:1.15;
}
.bf-v78-head span{
  padding:7px 12px;
  border-radius:999px;
  background:#f4efe7;
  font-weight:950;
}
.bf-v78-list{
  display:grid;
  gap:16px;
}
.bf-v78-card{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:18px;
  padding:18px;
  border:1px solid #ded5c8;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 30px rgba(31,35,40,.04);
}
.bf-v78-card img,.bf-v78-no-img{
  width:160px;
  height:112px;
  border-radius:16px;
  object-fit:cover;
  background:#f4efe7;
}
.bf-v78-no-img{
  display:grid;
  place-items:center;
  color:#756f66;
  font-weight:900;
}
.bf-v78-card-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.bf-v78-card-top h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.bf-v78-card-top strong{
  padding:6px 10px;
  border-radius:999px;
  background:#dcfce7;
  color:#14532d;
  font-size:12px;
  text-transform:capitalize;
}
.bf-v78-card p{
  margin:9px 0;
  color:#4f4840;
  line-height:1.45;
}
.bf-v78-meta{
  color:#756f66;
  font-size:13px;
  font-weight:800;
}
.bf-v78-platforms{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.bf-v78-platform{
  padding:6px 10px;
  border-radius:999px;
  background:#f4efe7;
  font-size:12px;
  font-weight:950;
}
.bf-v78-empty,.bf-v78-loading{
  min-height:260px;
  display:grid;
  place-items:center;
  text-align:center;
  color:#1f2328;
  background:#fff;
  border:1px dashed #ded5c8;
  border-radius:22px;
  padding:26px;
}
.bf-v78-empty strong{
  display:block;
  font-size:24px;
}
.bf-v78-empty span{
  display:block;
  margin-top:8px;
  color:#756f66;
  font-weight:800;
}
@media(max-width:760px){
  .bf-v78-card{grid-template-columns:1fr}
  .bf-v78-card img,.bf-v78-no-img{width:100%;height:190px}
}


/* V79 unified dashboard content box */
.bf-v79-panel{
  width:100%;
  margin-top:28px;
  clear:both;
}
.bf-v79-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
}
.bf-v79-head h2{
  margin:0;
  font-size:28px;
  line-height:1.15;
}
.bf-v79-head span{
  padding:7px 12px;
  border-radius:999px;
  background:#f4efe7;
  font-weight:950;
}
.bf-v79-list{
  display:grid;
  gap:16px;
}
.bf-v79-card{
  display:grid;
  grid-template-columns:170px 1fr;
  gap:18px;
  padding:18px;
  border:1px solid #ded5c8;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 30px rgba(31,35,40,.04);
}
.bf-v79-card img,.bf-v79-no-img{
  width:170px;
  height:118px;
  border-radius:16px;
  object-fit:cover;
  background:#f4efe7;
}
.bf-v79-no-img{
  display:grid;
  place-items:center;
  color:#756f66;
  font-weight:900;
}
.bf-v79-card-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.bf-v79-card-top h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.bf-v79-card-top strong{
  padding:6px 10px;
  border-radius:999px;
  background:#dcfce7;
  color:#14532d;
  font-size:12px;
  text-transform:capitalize;
}
.bf-v79-body p{
  margin:9px 0;
  color:#4f4840;
  line-height:1.45;
}
.bf-v79-meta{
  color:#756f66;
  font-size:13px;
  font-weight:800;
}
.bf-v79-platforms,.bf-v79-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.bf-v79-platform{
  padding:6px 10px;
  border-radius:999px;
  background:#f4efe7;
  font-size:12px;
  font-weight:950;
}
.bf-v79-platform.instagram{background:#fce7f3;color:#9d174d}
.bf-v79-platform.facebook{background:#dbeafe;color:#1e40af}
.bf-v79-platform.x{background:#e5e7eb;color:#111827}
.bf-v79-platform.linkedin{background:#dbeafe;color:#075985}
.bf-v79-platform.google{background:#fef3c7;color:#92400e}
.bf-v79-link{
  font-size:13px;
  font-weight:950;
  text-decoration:none;
  color:#111;
  border-bottom:2px solid #9bed8d;
}
.bf-v79-empty,.bf-v79-loading{
  min-height:260px;
  display:grid;
  place-items:center;
  text-align:center;
  color:#1f2328;
  background:#fff;
  border:1px dashed #ded5c8;
  border-radius:22px;
  padding:26px;
}
.bf-v79-empty strong{
  display:block;
  font-size:24px;
}
.bf-v79-empty span{
  display:block;
  margin-top:8px;
  color:#756f66;
  font-weight:800;
}
@media(max-width:760px){
  .bf-v79-card{grid-template-columns:1fr}
  .bf-v79-card img,.bf-v79-no-img{width:100%;height:190px}
}


/* V80 core tab renderer */
#bfQueue{
  min-height:260px;
}
#bfQueue .bf-empty,
#bfQueue > p.bf-empty{
  display:none!important;
}
.bf-v80-page{
  width:100%;
  display:block;
}
.bf-v80-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
}
.bf-v80-head h2{
  margin:0;
  font-size:28px;
  line-height:1.15;
}
.bf-v80-head span{
  padding:7px 12px;
  border-radius:999px;
  background:#f4efe7;
  font-weight:950;
}
.bf-v80-list{
  display:grid;
  gap:16px;
}
.bf-v80-card{
  display:grid;
  grid-template-columns:170px 1fr;
  gap:18px;
  padding:18px;
  border:1px solid #ded5c8;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 30px rgba(31,35,40,.04);
}
.bf-v80-card img,
.bf-v80-no-img{
  width:170px;
  height:118px;
  border-radius:16px;
  object-fit:cover;
  background:#f4efe7;
}
.bf-v80-no-img{
  display:grid;
  place-items:center;
  color:#756f66;
  font-weight:900;
}
.bf-v80-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}
.bf-v80-card-top h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.bf-v80-card-top strong{
  padding:6px 10px;
  border-radius:999px;
  background:#dcfce7;
  color:#14532d;
  font-size:12px;
  text-transform:capitalize;
}
.bf-v80-body p{
  margin:9px 0;
  color:#4f4840;
  line-height:1.45;
}
.bf-v80-meta{
  color:#756f66;
  font-size:13px;
  font-weight:800;
}
.bf-v80-platforms,
.bf-v80-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.bf-v80-platform{
  padding:6px 10px;
  border-radius:999px;
  background:#f4efe7;
  font-size:12px;
  font-weight:950;
}
.bf-v80-platform.instagram{background:#fce7f3;color:#9d174d}
.bf-v80-platform.facebook{background:#dbeafe;color:#1e40af}
.bf-v80-platform.x{background:#e5e7eb;color:#111827}
.bf-v80-platform.linkedin{background:#dbeafe;color:#075985}
.bf-v80-platform.google{background:#fef3c7;color:#92400e}
.bf-v80-link{
  color:#111;
  font-weight:950;
  font-size:13px;
  text-decoration:none;
  border-bottom:2px solid #9bed8d;
}
.bf-v80-empty,
.bf-v80-loading{
  min-height:260px;
  display:grid;
  place-items:center;
  text-align:center;
  color:#1f2328;
  background:#fff;
  border:1px dashed #ded5c8;
  border-radius:22px;
  padding:26px;
}
.bf-v80-empty strong{
  display:block;
  font-size:24px;
}
.bf-v80-empty span{
  display:block;
  margin-top:8px;
  color:#756f66;
  font-weight:800;
}
@media(max-width:760px){
  .bf-v80-card{grid-template-columns:1fr}
  .bf-v80-card img,.bf-v80-no-img{width:100%;height:190px}
}


/* V81 stable tabs cleanup */
#bfV71SentList,
#bfV73SentList,
#bfV75Panel,
#bfV76Panel,
#bfV77Panel,
#bfV78Panel,
#bfV79Panel,
.bf-v69-sent-list,
.bf-v75-page,
.bf-v76-panel,
.bf-v78-panel,
.bf-v79-panel{
  display:none!important;
}

.bf-tab[data-filter="published"] span,
.bf-tab[data-filter="sent"] span{
  display:none!important;
}

#bfQueue{
  width:100%;
  margin-top:28px;
}

#bfQueue .bf-v80-page{
  width:100%;
}

#bfQueue .bf-v80-head{
  margin-bottom:18px;
}

#bfQueue .bf-v80-empty{
  min-height:260px;
  border:1px dashed #ded5c8;
  border-radius:22px;
  background:#fff;
}


/* V82 kill old duplicate localStorage/post-state sections */
#bfV46PostStateList,
.bf-v46-post-state-list,
.bf-v46-empty,
.bf-v46-post-card,
#bfV71SentList,
#bfV73SentList,
#bfV75Panel,
#bfV76Panel,
#bfV77Panel,
#bfV78Panel,
#bfV79Panel,
.bf-v69-sent-list,
.bf-v75-page,
.bf-v76-panel,
.bf-v78-panel,
.bf-v79-panel{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
}

.bf-tab[data-filter="published"] span,
.bf-tab[data-filter="sent"] span{
  display:none!important;
}


/* V84 clean dashboard rebuild */
.bf-tab[data-filter="published"] span{display:none!important;}
#bfQueue{width:100%;min-height:260px;}
.bf-v84-page{width:100%;display:block;}
.bf-v84-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px;
}
.bf-v84-head h2{
  margin:0;
  font-size:28px;
  line-height:1.15;
}
.bf-v84-head span{
  padding:7px 12px;
  border-radius:999px;
  background:#f4efe7;
  font-weight:950;
}
.bf-v84-list{display:grid;gap:16px;}
.bf-v84-card{
  display:grid;
  grid-template-columns:170px 1fr;
  gap:18px;
  padding:18px;
  border:1px solid #ded5c8;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 30px rgba(31,35,40,.04);
}
.bf-v84-card img,.bf-v84-no-img{
  width:170px;
  height:118px;
  border-radius:16px;
  object-fit:cover;
  background:#f4efe7;
}
.bf-v84-no-img{
  display:grid;
  place-items:center;
  color:#756f66;
  font-weight:900;
}
.bf-v84-card-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}
.bf-v84-card-top h3{
  margin:0;
  font-size:20px;
  line-height:1.2;
}
.bf-v84-card-top strong{
  padding:6px 10px;
  border-radius:999px;
  background:#dcfce7;
  color:#14532d;
  font-size:12px;
  text-transform:capitalize;
}
.bf-v84-body p{
  margin:9px 0;
  color:#4f4840;
  line-height:1.45;
}
.bf-v84-meta{
  color:#756f66;
  font-size:13px;
  font-weight:800;
}
.bf-v84-platforms,.bf-v84-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.bf-v84-platform{
  padding:6px 10px;
  border-radius:999px;
  background:#f4efe7;
  font-size:12px;
  font-weight:950;
}
.bf-v84-platform.instagram{background:#fce7f3;color:#9d174d;}
.bf-v84-platform.facebook{background:#dbeafe;color:#1e40af;}
.bf-v84-platform.x{background:#e5e7eb;color:#111827;}
.bf-v84-platform.linkedin{background:#dbeafe;color:#075985;}
.bf-v84-platform.google{background:#fef3c7;color:#92400e;}
.bf-v84-link{
  color:#111;
  font-weight:950;
  font-size:13px;
  text-decoration:none;
  border-bottom:2px solid #9bed8d;
}
.bf-v84-empty,.bf-v84-loading{
  min-height:260px;
  display:grid;
  place-items:center;
  text-align:center;
  color:#1f2328;
  background:#fff;
  border:1px dashed #ded5c8;
  border-radius:22px;
  padding:26px;
}
.bf-v84-empty strong{display:block;font-size:24px;}
.bf-v84-empty span{
  display:block;
  margin-top:8px;
  color:#756f66;
  font-weight:800;
}
@media(max-width:760px){
  .bf-v84-card{grid-template-columns:1fr;}
  .bf-v84-card img,.bf-v84-no-img{width:100%;height:190px;}
}


/* V85 sent history completion */
.bf-tab[data-filter="published"] span,
.bf-tab[data-filter="sent"] span{
  display:inline-flex!important;
}
.bf-v85-platform-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 18px;
}
.bf-v85-platform-filters button{
  border:1px solid #ded5c8;
  background:#fff;
  border-radius:999px;
  padding:9px 14px;
  font-weight:950;
  cursor:pointer;
}
.bf-v85-platform-filters button.active{
  background:#111;
  color:#fff;
  border-color:#111;
}



/* V102 Final Schedule Queue */
#bfScheduleAt.bf-v102-native-schedule{
  width:100%!important;
  min-height:56px!important;
  border:1px solid #ded5c8!important;
  border-radius:16px!important;
  padding:0 16px!important;
  font-size:18px!important;
  font-weight:800!important;
  background:#fff!important;
  color:#1f2328!important;
  box-sizing:border-box!important;
}
.bf-v102-scheduled-note{
  margin-top:8px;
  padding:9px 12px;
  border-radius:12px;
  background:#dcfce7;
  color:#14532d;
  font-weight:900;
}
.bf-v102-empty{display:grid;place-items:center;min-height:260px;text-align:center;width:100%}
.bf-v102-list{display:grid;gap:12px;width:100%}
.bf-v102-card{display:flex;gap:18px;align-items:center;border:1px solid #ded5c8;border-radius:20px;padding:16px;background:#fff;box-sizing:border-box;width:100%}
.bf-v102-card img,.bf-v102-noimg{width:130px;height:96px;border-radius:16px;background:#f4efe7;flex:0 0 130px;object-fit:cover}.bf-v102-noimg{display:grid;place-items:center;font-weight:950;color:#756f66}.bf-v102-body{flex:1;min-width:0}.bf-v102-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.bf-v102-top h3{margin:0;font-size:22px;line-height:1.15}.bf-v102-status{padding:8px 12px;border-radius:999px;background:#f4efe7;color:#4f4840;font-weight:950;white-space:nowrap}.bf-v102-caption{margin:7px 0;color:#4f4840;line-height:1.35;word-break:break-word}.bf-v102-meta{font-weight:950;color:#756f66}.bf-v102-platforms{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.bf-v102-platforms span{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#1e40af;font-weight:950;font-size:13px}@media(max-width:760px){.bf-v102-card{align-items:flex-start;flex-direction:column}.bf-v102-card img,.bf-v102-noimg{width:100%;height:180px;flex-basis:auto}.bf-v102-top{width:100%}}


/* V110 Clean Queue Edit/Delete */
.bf-v110-actions{
  display:flex;
  gap:8px;
  margin-top:12px;
  align-items:center;
  flex-wrap:wrap;
}
.bf-v110-edit,
.bf-v110-delete{
  border:1px solid #9ca3af;
  border-radius:7px;
  padding:8px 13px;
  font-weight:850;
  cursor:pointer;
  background:#f8fafc;
  color:#111827;
  font-size:15px;
  line-height:1;
}
.bf-v110-delete{
  border-color:#ef4444;
  color:#991b1b;
  background:#fff1f2;
}
.bf-v110-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  background:rgba(17,24,39,.42);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.bf-v110-modal.open{display:flex}
.bf-v110-box{
  width:min(580px,100%);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  border:1px solid #ded5c8;
  border-radius:24px;
  box-shadow:0 24px 70px rgba(0,0,0,.24);
  padding:22px;
}
.bf-v110-box h2{margin:0 0 14px;font-size:26px;line-height:1.1}
.bf-v110-box label{display:grid;gap:6px;font-weight:900;color:#4f4840;margin:12px 0}
.bf-v110-box input,.bf-v110-box textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #ded5c8;
  border-radius:14px;
  padding:12px;
  font-size:16px;
  font-weight:700;
  background:#fff;
}
.bf-v110-box textarea{min-height:120px;resize:vertical}
.bf-v110-preview{
  width:160px;
  height:112px;
  border-radius:16px;
  background:#f4efe7;
  display:grid;
  place-items:center;
  overflow:hidden;
  color:#756f66;
  font-weight:950;
  margin-top:8px;
}
.bf-v110-preview img{width:100%;height:100%;object-fit:cover}
.bf-v110-modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:16px;
  flex-wrap:wrap;
}
.bf-v110-modal-actions button{
  border:1px solid #ded5c8;
  border-radius:999px;
  padding:11px 16px;
  font-weight:950;
  cursor:pointer;
}
.bf-v110-save{background:#b8f5a8;border-color:#97e887!important;color:#12361c}
.bf-v110-cancel{background:#111;border-color:#111!important;color:#fff}




/* V116 Synced Clean UI */
.bf-v116-tab-badge,
.bf-v111-sent-count,
.bf-sent-count,
.sent-count-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  border-radius:999px!important;
  background:#ececec!important;
  color:#333!important;
  font-size:16px!important;
  font-weight:900!important;
  line-height:1!important;
  padding:0!important;
  margin-left:10px!important;
  vertical-align:middle!important;
  box-sizing:border-box!important;
}

.bf-v116-calendar-popover{
  position:fixed!important;
  z-index:2147483647!important;
  width:285px!important;
  background:#fff!important;
  border:1px solid #ded5c8!important;
  border-radius:18px!important;
  box-shadow:0 24px 70px rgba(0,0,0,.28)!important;
  padding:14px!important;
  display:none!important;
  pointer-events:auto!important;
}

.bf-v116-calendar-popover.open{
  display:block!important;
}

.bf-v116-calendar-title{
  font-weight:950!important;
  color:#1f2328!important;
  font-size:16px!important;
  line-height:1.2!important;
  margin-bottom:6px!important;
}

.bf-v116-calendar-meta{
  color:#756f66!important;
  font-weight:800!important;
  font-size:13px!important;
  margin-bottom:12px!important;
}

.bf-v116-calendar-actions{
  display:flex!important;
  gap:8px!important;
  justify-content:flex-end!important;
}

.bf-v116-calendar-actions button{
  border:1px solid #ded5c8!important;
  border-radius:999px!important;
  padding:9px 13px!important;
  font-weight:950!important;
  cursor:pointer!important;
  pointer-events:auto!important;
}

.bf-v116-calendar-cancel{
  background:#111!important;
  border-color:#111!important;
  color:#fff!important;
}

.bf-v116-calendar-delete{
  background:#fee2e2!important;
  border-color:#fecaca!important;
  color:#991b1b!important;
}

.bf-v116-calendar-event{
  cursor:pointer!important;
}

.bf-v116-calendar-event:hover{
  filter:brightness(.97)!important;
  outline:2px solid rgba(239,68,68,.22)!important;
}


/* V117 Deleted Posts in Approvals */
.bf-v117-approval-card{
  display:flex;
  gap:18px;
  align-items:center;
  border:1px solid #ded5c8;
  border-radius:20px;
  padding:16px;
  background:#fff;
  margin:12px 0;
  box-sizing:border-box;
  width:100%;
}
.bf-v117-approval-thumb,
.bf-v117-approval-noimg{
  width:130px;
  height:96px;
  border-radius:16px;
  background:#f4efe7;
  flex:0 0 130px;
}
.bf-v117-approval-thumb{
  object-fit:cover;
}
.bf-v117-approval-noimg{
  display:grid;
  place-items:center;
  font-weight:950;
  color:#756f66;
}
.bf-v117-approval-body{
  flex:1;
  min-width:0;
}
.bf-v117-approval-title{
  font-size:22px;
  font-weight:950;
  color:#1f2328;
  margin-bottom:6px;
  line-height:1.15;
}
.bf-v117-approval-caption{
  font-size:16px;
  color:#4f4840;
  margin-bottom:8px;
  word-break:break-word;
  line-height:1.35;
}
.bf-v117-approval-time{
  font-weight:950;
  color:#756f66;
  line-height:1.3;
}
.bf-v117-approval-status{
  padding:8px 12px;
  border-radius:999px;
  background:#fee2e2;
  color:#991b1b;
  font-weight:950;
  align-self:flex-start;
}
.bf-v117-approval-empty{
  display:grid;
  place-items:center;
  min-height:260px;
  text-align:center;
  width:100%;
}
