.tpb-tile{
  position:absolute;
  border-radius:14px;
  border:1px solid #E3E6EA;
  background:#F7F9FB;
  box-shadow:0 10px 24px rgba(43,67,90,.10);
  color:#1C3A52;
  overflow:hidden;
  user-select:none;
  touch-action:none;
}
.tpb-head{
  position:absolute; left:0; right:0; top:0;
  z-index:5;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 12px;
  background:#FEC846;
  border-bottom:1px solid rgba(43,67,90,.10);
  cursor:grab;
}
.tpb-head:active{ cursor:grabbing; }
.tpb-badge{ display:none !important; }
.tpb-body{
  position:absolute;
  left:0; right:0;
  top:44px; bottom:0;
  padding:14px;
  overflow:auto;
  font-size:14px;
  line-height:1.55;
  color:#1C3A52;
}
.tpb-resize{
  position:absolute; right:8px; bottom:8px;
  width:14px; height:14px;
  border-right:3px solid rgba(43,67,90,.35);
  border-bottom:3px solid rgba(43,67,90,.35);
  cursor:nwse-resize;
  z-index:6;
}
.tpb-previewHint{ font-size:12px; color:rgba(19,43,64,0.55); margin-bottom:10px; }
.tpb-manualMediaActions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 10px;
}
.tpb-previewBox{
  position:relative;
  border-radius:12px;
  border:1px solid #E3E6EA;
  background:#EEF1F7;
  overflow:hidden;
  cursor:zoom-in;
}
.tpb-previewBox img, .tpb-previewBox video{
  width:100%;
  height:auto;
  display:block;
}
.tpb-previewBox.is-replacing-media img,
.tpb-previewBox.is-replacing-media video{
  filter:grayscale(.72);
  opacity:.34;
}
.tpb-previewReplacing{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:24px;
  text-align:center;
  cursor:default;
  color:#1C3A52;
  background:rgba(238,241,247,.58);
}
.tpb-previewReplacing strong{
  font-size:18px;
  font-weight:800;
}
.tpb-previewReplacing span{
  max-width:320px;
  font-size:13px;
  font-weight:600;
  color:rgba(28,58,82,.72);
}
.tpb-previewPending{
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:24px;
  text-align:center;
  background:#121620;
  color:#eef3f8;
}
.tpb-previewPending strong{
  font-size:18px;
  font-weight:800;
}
.tpb-previewPending span{
  color:rgba(238,243,248,.68);
  font-size:13px;
  font-weight:600;
}
.tpb-mediaRecovery{
  margin:0 0 10px;
  padding:10px;
  border:1px solid #F2C4C4;
  border-radius:10px;
  background:#FFF7F7;
}
.tpb-mediaRecoveryMessage{
  color:#8B2A2A;
  font-size:13px;
  font-weight:600;
  line-height:1.45;
}
.tpb-mediaRecoveryActions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.tpb-mediaErrorDetails{ margin-top:8px; color:#8B2A2A; font-size:12px; }
.tpb-mediaErrorDetails summary{ cursor:pointer; }
.tpb-mediaErrorDetails pre{ white-space:pre-wrap; overflow-wrap:anywhere; max-height:240px; overflow:auto; font:inherit; }
/* === PROYO Tile Edit/Save (light) === */
.tpb-headRight{ display:flex; align-items:center; gap:6px; }
.tpb-actions{ display:flex; gap:6px; align-items:center; }
.tpb-btn{
  background:#ffffff;
  color:#1C3A52;
  border:1px solid #D6DBEA;
  border-radius:8px;
  padding:5px 8px;
  font:600 12px "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  cursor:pointer;
}
.tpb-btn:disabled{ opacity:.45; cursor:default; }
.tpb-fieldView{
  white-space:pre-wrap;
  word-break:break-word;
  line-height:1.55;
  color:#1C3A52;
}
.tpb-fieldEdit{
  width:100%;
  min-height:96px;
  box-sizing:border-box;
  padding:12px;
  border-radius:12px;
  border:2px solid #FEC846;
  background:#ffffff;
  color:#1C3A52;
  font:400 14px "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  outline:none;
  resize:vertical;
}
.tpb-hidden{ display:none !important; }

/* === TPB App Shell (restored after removing inline styles) === */

#tpbApp{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  flex-direction:column;
  padding:14px;
  gap:14px;
  box-sizing:border-box;
  overflow:hidden;
  background:#F5F5F5;
  color:#1C3A52;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.tpb-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:nowrap;
  min-height:58px;
  padding-right:24px;
}

.tpb-titleLine{
  font-size:28px;
  font-weight:900;
  line-height:1.1;
}

.tpb-title{
  font-size:14px;
  font-weight:600;
  color:#1C3A52;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
  flex:1;
}

.tpb-headRight{
  flex:0 0 auto;
}

.tpb-canvas{ font-weight:400; color:#1C3A52; margin-left:6px; }

.tpb-subtitle{
  opacity:.75;
  margin-top:6px;
}

#tpbMeta{
  opacity:.7;
  margin-top:6px;
  font-size:13px;
  display:none;
}

.tpb-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:0 0 auto;
  min-height:52px;
  padding-left:18px;
}
.tpb-homeLink{
  display:inline-flex;
  align-items:center;
  min-height:52px;
  text-decoration:none;
  flex:0 0 auto;
}

.tpb-homeMain{
  display:inline-flex;
  align-items:baseline;
}

.tpb-proyo{
  font-size:26px;
  font-weight:900;
  color:#1C3A52;
  line-height:1;
}

.tpb-book{
  font-size:26px;
  font-weight:800;
  color:#FEC846;
  margin-left:6px;
  line-height:1;
}

.tpb-left .tpb-workspace{
  font-size:26px;
  font-weight:500;
  color:#1C3A52;
  line-height:1;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
}

.tpb-center{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 1 auto;
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width:none;
  row-gap:6px;
}

.tpb-topGroup{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:5px;
  border:1px solid rgba(214,219,234,.82);
  border-radius:14px;
  background:rgba(255,255,255,.62);
}

.tpb-topGroup-primary{
  background:rgba(232,246,243,.72);
  border-color:rgba(159,214,203,.84);
}

.tpb-topGroupLabel{
  padding:0 3px 0 2px;
  color:#7b8794;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tpb-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 150px;
  justify-content:flex-end;
  min-height:52px;
}

.tpb-userMenu{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}

/* .tpb-updateWrap{
  display:inline-flex;
  align-items:stretch;
  justify-content:center;
  flex:0 0 auto;
  min-height:80px;
  padding:0;
  background:transparent;
  border:none;
  border-radius:0;
  box-sizing:border-box;
} */

.tpb-topbtn{
  min-height:34px;
  padding:5px 9px;
  background:#ffffff;
  border:1px solid #d6dbea;
  border-radius:10px;
  color:#1C3A52;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  appearance:none;
  -webkit-appearance:none;
  box-shadow:none;
  white-space:nowrap;
  flex-direction:row;
}

.tpb-homeTopBtn{
  width:70px;
  min-height:44px;
  padding:5px 8px;
  margin-left:0;
  flex-direction:column;
  gap:1px;
  align-self:center;
  line-height:1.05;
  font-size:12px;
}

.tpb-homeTopBtn span{
  display:block;
}

.tpb-topbtn:hover{
  background:#f2f4f7;
  border:1px solid #c8cfdd;
  color:#1C3A52;
}

.tpb-topbtn:focus{
  outline:none;
}

.tpb-topbtn:focus-visible{
  outline:3px solid rgba(28, 58, 82, .22);
  outline-offset:2px;
}

.tpb-previewBtn,
.tpb-knowledgeBtn,
.tpb-summaryBtn,
.tpb-publishingTopBtn{
  background:#e8f6f3;
  border-color:#9fd6cb;
  color:#10483f;
}

.tpb-previewBtn:hover,
.tpb-knowledgeBtn:hover,
.tpb-summaryBtn:hover,
.tpb-publishingTopBtn:hover{
  background:#d5eee8;
  border-color:#6fc4b4;
  color:#10483f;
}

.tpb-topbtn-disabled,
.tpb-topbtn-disabled:hover,
.tpb-topbtn-disabled:focus{
  opacity:.45;
  cursor:default;
  pointer-events:none;
  background:#ffffff;
  color:#1C3A52;
}

.tpb-previewBtn.tpb-topbtn-disabled,
.tpb-previewBtn.tpb-topbtn-disabled:hover,
.tpb-previewBtn.tpb-topbtn-disabled:focus,
.tpb-knowledgeBtn.tpb-topbtn-disabled,
.tpb-knowledgeBtn.tpb-topbtn-disabled:hover,
.tpb-knowledgeBtn.tpb-topbtn-disabled:focus,
.tpb-summaryBtn.tpb-topbtn-disabled,
.tpb-summaryBtn.tpb-topbtn-disabled:hover,
.tpb-summaryBtn.tpb-topbtn-disabled:focus,
.tpb-publishingTopBtn.tpb-topbtn-disabled,
.tpb-publishingTopBtn.tpb-topbtn-disabled:hover,
.tpb-publishingTopBtn.tpb-topbtn-disabled:focus{
  background:#e8f6f3;
  border-color:#9fd6cb;
  color:#10483f;
}

.tpb-publishingTopBtn{
  max-width:120px;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* === Post Preview page === */
.tpb-postPreviewPage{
  min-height:100vh;
  box-sizing:border-box;
  padding:clamp(12px, 2.2vh, 28px);
  background:#f2f4f7;
  color:#1C3A52;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.tpb-postPreviewTop{
  max-width:820px;
  margin:0 auto clamp(10px, 1.6vh, 18px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.tpb-postPreviewEyebrow{
  color:rgba(28,58,82,.65);
  font-size:clamp(10px, 1.25vh, 13px);
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tpb-postPreviewTop h1{
  margin:4px 0 0;
  font-size:clamp(22px, 3vh, 30px);
  line-height:1.1;
}

.tpb-postPreviewShell{
  max-width:820px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.tpb-previewTabs{
  display:flex;
  gap:10px;
  margin-bottom:clamp(10px, 1.6vh, 18px);
}

.tpb-previewTab{
  border:1px solid #d6dbea;
  border-radius:999px;
  background:#ffffff;
  color:#1C3A52;
  padding:9px 14px;
  font:700 13px "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.tpb-previewTab.is-active{
  background:#1C3A52;
  border-color:#1C3A52;
  color:#ffffff;
}

.tpb-previewTab:disabled{
  opacity:.45;
}

.tpb-previewStatus{
  padding:22px;
  border-radius:16px;
  background:#ffffff;
  border:1px solid #E3E6EA;
}

/* === Schedule Preview page === */
.tpb-schedulePage{
  min-height:calc(100vh - 16px);
  box-sizing:border-box;
  margin:8px;
  border:1px solid #d9dde3;
  border-radius:24px;
  background:#f2f4f7;
  color:#1C3A52;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  box-shadow:0 18px 48px rgba(28,58,82,.14);
}

.tpb-scheduleHero{
  min-height:132px;
  box-sizing:border-box;
  padding:22px clamp(18px, 3vw, 42px);
  background:#FEC846;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  border-radius:24px 24px 0 0;
}

.tpb-scheduleEyebrow{
  color:rgba(28,58,82,.68);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tpb-scheduleHero h1{
  margin:6px 0 4px;
  font-size:clamp(26px, 4vw, 42px);
  line-height:1.05;
  color:#1C3A52;
}

.tpb-scheduleHero p{
  margin:0;
  font-size:14px;
  color:#1C3A52;
}

.tpb-scheduleHeroActions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.tpb-scheduleShell{
  width:min(1380px, calc(100% - 40px));
  margin:22px auto 34px;
}

.tpb-scheduleNotice{
  position:sticky;
  top:12px;
  z-index:20;
  margin-bottom:16px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid #b6e4c9;
  background:#eaf8ef;
  color:#08713d;
  font-size:16px;
  font-weight:800;
}

.tpb-scheduleNotice.is-error{
  border-color:#ffb4b4;
  background:#fff0f0;
  color:#a63d35;
}

.tpb-scheduleNotice.is-success{
  border-color:#b6e4c9;
  background:#eaf8ef;
  color:#08713d;
}

.tpb-scheduleStats{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:14px;
  margin-bottom:16px;
}

.tpb-scheduleStats div{
  padding:18px 20px;
  border-radius:18px;
  background:#ffffff;
  border:1px solid #e3e6ea;
  box-shadow:0 8px 20px rgba(43,67,90,.06);
}

.tpb-scheduleStats strong{
  display:block;
  font-size:30px;
  line-height:1;
}

.tpb-scheduleStats span{
  display:block;
  margin-top:8px;
  color:#718093;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.tpb-scheduleToolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.tpb-scheduleTabs,
.tpb-scheduleMonthControls{
  display:flex;
  align-items:center;
  gap:10px;
}

.tpb-scheduleTab{
  min-height:40px;
  padding:8px 14px;
  border-radius:12px;
  border:1px solid #d6dbea;
  background:#ffffff;
  color:#1C3A52;
  font:800 13px "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  cursor:pointer;
}

.tpb-scheduleTab.is-active{
  background:#1C3A52;
  border-color:#1C3A52;
  color:#ffffff;
}

.tpb-scheduleMonthLabel{
  min-width:180px;
  text-align:center;
  font-size:18px;
  font-weight:800;
}

.tpb-scheduleCalendarView{
  overflow-x:auto;
}

.tpb-scheduleWeekdays,
.tpb-scheduleCalendarGrid{
  display:grid;
  grid-template-columns:repeat(7, minmax(138px, 1fr));
}

.tpb-scheduleWeekdays{
  gap:8px;
  margin-bottom:8px;
}

.tpb-scheduleWeekdays span{
  color:#718093;
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.tpb-scheduleCalendarGrid{
  gap:8px;
}

.tpb-scheduleDay{
  min-height:156px;
  padding:10px;
  box-sizing:border-box;
  border-radius:8px;
  border:1px solid #e3e6ea;
  background:#ffffff;
  overflow:visible;
  position:relative;
}

.tpb-scheduleDay.is-muted{
  background:#f7f9fb;
  color:#8a97a5;
}

.tpb-scheduleDay.is-today{
  border-color:#FEC846;
  box-shadow:inset 0 0 0 2px rgba(254,200,70,.28);
}

.tpb-scheduleDayTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
  font-weight:800;
}

.tpb-scheduleDayTop strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:#e8f6f3;
  color:#10483f;
  font-size:12px;
}

.tpb-scheduleCalendarItem{
  display:grid;
  grid-template-columns:minmax(72px, 46%) minmax(0, 1fr);
  gap:10px;
  align-items:start;
  margin-top:10px;
  color:inherit;
  text-decoration:none;
  position:relative;
}

.tpb-scheduleCalendarItem.is-openable{
  cursor:pointer;
}

.tpb-scheduleCalendarItem.is-openable:hover strong{
  color:#0f7f70;
}

.tpb-scheduleCalendarItem:hover,
.tpb-scheduleCalendarItem:focus-visible{
  z-index:20;
}

.tpb-scheduleCalendarItem span{
  display:block;
  color:#718093;
  font-size:12px;
  font-weight:800;
}

.tpb-scheduleCalendarItem strong{
  display:block;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  font-size:13px;
  line-height:1.25;
}

.tpb-scheduleThumb{
  width:100%;
  aspect-ratio:4 / 3;
  border-radius:8px;
  overflow:hidden;
  background:#eef3f8;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#718093;
  font-size:11px;
  font-weight:800;
  position:relative;
  transform-origin:left top;
  transition:transform .16s ease, box-shadow .16s ease;
  z-index:1;
}

.tpb-scheduleCalendarItem:hover .tpb-scheduleThumb,
.tpb-scheduleCalendarItem:focus-visible .tpb-scheduleThumb{
  transform:scale(1.85);
  box-shadow:0 14px 34px rgba(0, 24, 44, .28);
  z-index:30;
}

.tpb-scheduleThumb img,
.tpb-scheduleThumb video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.tpb-scheduleThumb.is-empty{
  aspect-ratio:4 / 3;
  padding:4px;
  box-sizing:border-box;
  text-align:center;
}

.tpb-scheduleMore{
  margin-top:8px;
  color:#718093;
  font-size:12px;
  font-weight:800;
}

.tpb-scheduleList{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.tpb-scheduleListItem{
  display:grid;
  grid-template-columns:120px minmax(0, 1fr) minmax(190px, 260px);
  gap:16px;
  align-items:center;
  padding:14px;
  border-radius:8px;
  border:1px solid #e3e6ea;
  background:#ffffff;
  box-shadow:0 8px 20px rgba(43,67,90,.05);
  color:inherit;
  text-decoration:none;
}

.tpb-scheduleListItem.is-openable{
  cursor:pointer;
}

.tpb-scheduleListItem.is-openable:hover{
  border-color:#9fd6cb;
  box-shadow:0 10px 24px rgba(43,67,90,.10);
}

.tpb-scheduleListItem.is-openable:hover h2{
  color:#0f7f70;
}

.tpb-scheduleListMeta{
  color:#718093;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.tpb-scheduleListMain h2{
  margin:4px 0 8px;
  font-size:18px;
  line-height:1.2;
}

.tpb-scheduleListMain p{
  margin:0;
  color:#25384b;
  font-size:13px;
  line-height:1.45;
}

.tpb-scheduleListTime{
  justify-self:end;
  text-align:right;
}

.tpb-scheduleListTime strong,
.tpb-scheduleListTime span{
  display:block;
}

.tpb-scheduleListTime strong{
  font-size:16px;
}

.tpb-scheduleListTime span{
  margin-top:6px;
  color:#718093;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.tpb-scheduleEmpty{
  padding:18px;
  border-radius:8px;
  background:#ffffff;
  border:1px solid #e3e6ea;
  color:#718093;
  font-weight:700;
}

.tpb-scheduleTimeEditor{
  margin:6px 0 10px;padding:9px;border:1px solid #d7e2ed;border-radius:8px;background:#fff;
  color:#25384b;text-align:left;
}
.tpb-scheduleTimeEditor label{display:block;font-size:12px;font-weight:700;margin-bottom:6px;}
.tpb-scheduleTimeControls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.tpb-scheduleTimeControls input{min-width:95px;max-width:140px;padding:7px;border:1px solid #718093;border-radius:6px;font:inherit;}
.tpb-scheduleTimeControls input[aria-invalid="true"]{border:2px solid #a71924;background:#fff5f5;}
.tpb-scheduleTimeControls button:disabled{opacity:.55;cursor:not-allowed;}
.tpb-scheduleTimeMessage,.tpb-scheduleTimeLocked{font-size:12px;line-height:1.4;margin:7px 0 0;}
.tpb-scheduleTimeMessage.is-error{color:#a71924;font-weight:700;}
.tpb-scheduleTimeLocked{padding:4px;color:#586b7e;}

@media (max-width: 980px){
  .tpb-scheduleHero,
  .tpb-scheduleToolbar{
    flex-direction:column;
    align-items:stretch;
  }

  .tpb-scheduleHeroActions,
  .tpb-scheduleMonthControls{
    justify-content:flex-start;
  }

  .tpb-scheduleStats{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .tpb-scheduleListItem{
    grid-template-columns:96px minmax(0, 1fr);
  }

  .tpb-scheduleListTime{
    grid-column:1 / -1;
    justify-self:start;
    text-align:left;
  }
}

@media (max-width: 620px){
  .tpb-scheduleShell{
    width:calc(100% - 24px);
    margin-top:14px;
  }

  .tpb-scheduleStats{
    grid-template-columns:1fr;
  }

  .tpb-scheduleWeekdays,
  .tpb-scheduleCalendarGrid{
    grid-template-columns:repeat(7, minmax(118px, 1fr));
  }

  .tpb-scheduleDay{
    min-height:120px;
  }

  .tpb-scheduleListItem{
    grid-template-columns:1fr;
  }

  .tpb-scheduleListItem .tpb-scheduleThumb{
    max-width:180px;
  }
}

.tpb-facebookCard{
  width:min(620px, calc((100vh - 250px) * .78), 92vw);
  max-width:92vw;
  margin:0 auto;
  background:#ffffff;
  color:#050505;
  border:1px solid #dadde1;
  border-radius:4px;
  overflow:hidden;
  box-shadow:0 12px 32px rgba(28,58,82,.12);
}

.tpb-facebookHeader{
  display:flex;
  align-items:center;
  gap:10px;
  padding:clamp(9px, 1.5vh, 13px);
}

.tpb-facebookAvatar{
  width:clamp(28px, 4vh, 38px);
  height:clamp(28px, 4vh, 38px);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#FEC846;
  color:#1C3A52;
  font-weight:900;
}

.tpb-facebookAuthor{
  font-weight:800;
  font-size:clamp(12px, 1.5vh, 15px);
}

.tpb-facebookMeta{
  color:#65676b;
  font-size:clamp(10px, 1.25vh, 13px);
  margin-top:2px;
  display:flex;
  align-items:center;
  gap:4px;
}

.tpb-facebookPublicIcon{
  width:12px;
  height:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#65676b;
}

.tpb-facebookPublicIcon svg{
  width:12px;
  height:12px;
  display:block;
}

.tpb-facebookPublicIcon circle{
  fill:currentColor;
}

.tpb-facebookPublicIcon path{
  fill:#ffffff;
}

.tpb-facebookDots{
  margin-left:auto;
  color:#65676b;
  font-size:clamp(16px, 2vh, 22px);
  line-height:1;
}

.tpb-facebookText{
  padding:0 clamp(9px, 1.5vh, 13px) clamp(9px, 1.5vh, 13px);
  white-space:pre-wrap;
  line-height:1.45;
  font-size:clamp(11px, 1.45vh, 14px);
}

.tpb-facebookText a{
  color:#216fdb;
  text-decoration:none;
  overflow-wrap:anywhere;
}

.tpb-facebookText a:hover,
.tpb-facebookText a:focus{
  text-decoration:underline;
}

.tpb-facebookMedia{
  background:#f0f2f5;
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#65676b;
}

.tpb-facebookMedia img,
.tpb-facebookMedia video{
  width:100%;
  height:auto;
  max-height:min(520px, calc(100vh - 430px));
  object-fit:contain;
  display:block;
}

.tpb-facebookFooter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:clamp(8px, 1.2vh, 12px) clamp(9px, 1.5vh, 13px) clamp(9px, 1.5vh, 13px);
  border-top:1px solid #dadde1;
}

.tpb-facebookCta{
  color:#2d88ff;
  font-weight:800;
  margin-top:2px;
  font-size:clamp(11px, 1.45vh, 14px);
}

.tpb-facebookButton{
  border:0;
  border-radius:10px;
  background:#2374e1;
  color:#ffffff;
  padding:clamp(7px, 1vh, 10px) clamp(9px, 1.3vh, 14px);
  font:800 clamp(10px, 1.3vh, 13px) "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  cursor:pointer;
}

.tpb-facebookButton:disabled{
  cursor:default;
  opacity:.72;
}

.tpb-facebookButton.is-accepted{
  background:#31a24c;
}

.tpb-previewActions{
  width:min(620px, calc((100vh - 250px) * .78), 92vw);
  max-width:92vw;
  margin:clamp(10px, 1.6vh, 16px) auto 0;
  display:flex;
  justify-content:flex-end;
}

.tpb-previewActions .tpb-topbtn{
  min-width:130px;
}

.tpb-previewActions .tpb-topbtn.is-accepted{
  background:#e8f6ee;
  border-color:#b9e3c8;
  color:#1d7f3e;
}

.tpb-previewActions .tpb-topbtn:disabled{
  opacity:.78;
  cursor:default;
}

.tpb-instagramCard{
  --tpb-ig-card-width: min(500px, calc((100vh - 250px) * .73), 92vw);
  width:var(--tpb-ig-card-width);
  max-width:92vw;
  margin:0 auto;
  background:#05080c;
  color:#f5f5f5;
  border:1px solid #171c22;
  border-radius:4px;
  overflow:hidden;
  box-shadow:0 12px 32px rgba(28,58,82,.12);
}

.tpb-instagramHeader{
  display:flex;
  align-items:center;
  gap:10px;
  height:calc(var(--tpb-ig-card-width) * .13);
  min-height:50px;
  max-height:65px;
  box-sizing:border-box;
  padding:clamp(8px, 1.2vh, 12px) clamp(12px, 1.7vh, 16px);
}

.tpb-instagramAvatar{
  width:clamp(30px, 4vh, 38px);
  height:clamp(30px, 4vh, 38px);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #feda75, #d62976, #4f5bd5);
  color:#ffffff;
  font-weight:900;
}

.tpb-instagramAuthor{
  font-weight:800;
  font-size:clamp(12px, 1.5vh, 15px);
  color:#f5f5f5;
}

.tpb-instagramStar{
  width:clamp(17px, 2.2vh, 21px);
  height:clamp(17px, 2.2vh, 21px);
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#f5f5f5;
}

.tpb-instagramStar svg{
  width:100%;
  height:100%;
  display:block;
}

.tpb-instagramStar path{
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linejoin:round;
}

.tpb-instagramDots{
  color:#f5f5f5;
  font-size:clamp(16px, 2vh, 22px);
  line-height:1;
}

.tpb-instagramMedia{
  background:#000000;
  height:var(--tpb-ig-card-width);
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#a8adb3;
}

.tpb-instagramMedia img,
.tpb-instagramMedia video{
  width:100%;
  height:100%;
  max-height:none;
  object-fit:contain;
  display:block;
}

.tpb-instagramActions{
  display:flex;
  align-items:center;
  gap:6px;
  padding:clamp(9px, 1.25vh, 12px) clamp(12px, 1.7vh, 16px) 0;
  color:#f5f5f5;
  line-height:1;
}

.tpb-instagramIcon{
  width:clamp(20px, 2.6vh, 26px);
  height:clamp(20px, 2.6vh, 26px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.tpb-instagramIcon svg{
  width:100%;
  height:100%;
  display:block;
}

.tpb-instagramIcon path{
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.tpb-instagramCount{
  color:#f5f5f5;
  font-size:clamp(12px, 1.45vh, 15px);
  font-weight:500;
  margin-right:8px;
}

.tpb-instagramSave{
  margin-left:auto;
}

.tpb-instagramText{
  box-sizing:border-box;
  padding:clamp(6px, .9vh, 8px) clamp(12px, 1.7vh, 16px) 0;
  color:#f5f5f5;
  line-height:1.45;
  font-size:clamp(11px, 1.45vh, 14px);
  display:block;
}

.tpb-instagramText span{
  color:#a8adb3;
}

.tpb-instagramCaptionSnippet{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.tpb-instagramProductURL{
  display:block;
  margin-top:4px;
  color:#a8c7fa;
  overflow-wrap:anywhere;
}

.tpb-instagramAge{
  min-height:calc(var(--tpb-ig-card-width) * .08);
  box-sizing:border-box;
  padding:clamp(3px, .55vh, 5px) clamp(12px, 1.7vh, 16px) clamp(10px, 1.4vh, 13px);
  color:#a8adb3;
  font-size:clamp(10px, 1.25vh, 12px);
}

#tpbViewport{
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: #f7f9fb;
  width: 100%;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

#tpbViewport.tpb-canvas-pending #tpbWorld{
  opacity:0;
  pointer-events:none;
}

#tpbViewport.tpb-canvas-pending{
  background:linear-gradient(180deg, #f8fafc 0%, #f2f6fa 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}

#tpbViewport.tpb-canvas-pending::before{
  content:attr(data-loading-label);
  position:absolute;
  left:50%;
  top:42%;
  min-width:220px;
  max-width:280px;
  min-height:118px;
  box-sizing:border-box;
  padding:66px 22px 18px;
  border:1px solid rgba(198,207,218,.95);
  border-radius:18px;
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 18px 48px rgba(28,58,82,.18), 0 2px 8px rgba(28,58,82,.08);
  color:#1C3A52;
  font-size:16px;
  font-weight:600;
  text-align:center;
  transform:translate(-50%, -50%);
  z-index:2;
}

#tpbViewport.tpb-canvas-pending::after{
  content:"";
  position:absolute;
  left:50%;
  top:42%;
  width:36px;
  height:36px;
  margin:-46px 0 0 -18px;
  border:4px solid rgba(28,58,82,0.15);
  border-top-color:#FEC846;
  border-radius:50%;
  animation:tpbSpin .8s linear infinite;
  z-index:3;
}

#tpbWorld{
  position:absolute;
  left:0;
  top:0;
  transform-origin:0 0;
}

/* Modal */
#tpbMediaModal{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.86);
  z-index:1000000;
}

#tpbMediaModalInner{
  max-width:92vw;
  max-height:88vh;
}

#tpbMediaClose{
  position:absolute;
  top:16px;
  right:16px;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(18,22,32,.96);
  color:#ffffff;
  cursor:pointer;
  font-weight:900;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

#tpbCampaignSummaryModal{
  position:absolute;
  inset:0;
  z-index:1000002;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  box-sizing:border-box;
  background:rgba(12,24,36,.42);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

#tpbCampaignSummaryInner{
  width:min(1120px, 96vw);
  max-height:90vh;
  overflow:auto;
  border-radius:24px;
  border:1px solid #d9dde3;
  background:#f7f9fb;
  box-shadow:0 28px 80px rgba(28,58,82,.28);
  color:#1C3A52;
  clip-path:inset(0 round 24px);
  isolation:isolate;
}

.tpb-summaryStickyTop{
  position:sticky;
  top:0;
  z-index:4;
  background:#f7f9fb;
}

.tpb-summaryHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px;
  background:linear-gradient(135deg, #FEC846 0%, #ffe38a 100%);
  border-bottom:1px solid rgba(28,58,82,.12);
  border-radius:24px 24px 0 0;
}

.tpb-summaryEyebrow{
  font-size:11px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(28,58,82,.72);
}

.tpb-summaryHead h2{
  margin:4px 0 6px;
  font-size:26px;
  line-height:1.15;
}

.tpb-summaryHead p{
  margin:0;
  font-size:13px;
}

.tpb-summaryNotice{
  margin:18px 24px 0;
  padding:12px 14px;
  border-radius:14px;
  background:#e8f6ee;
  border:1px solid #b9e3c8;
  color:#1d7f3e;
  font-weight:700;
}

.tpb-summaryNotice.is-error{
  background:#fff0ef;
  border-color:#f2b9b4;
  color:#a63d35;
}

.tpb-summaryStats{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:12px;
  padding:18px 24px 6px;
}

.tpb-summaryStats div{
  padding:16px;
  border-radius:18px;
  background:#ffffff;
  border:1px solid #e3e6ea;
  box-shadow:0 8px 20px rgba(43,67,90,.06);
}

.tpb-summaryStats strong{
  display:block;
  font-size:26px;
  line-height:1;
}

.tpb-summaryStats span{
  display:block;
  margin-top:6px;
  color:#718093;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.tpb-summaryList{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px 24px;
}

.tpb-summaryPost{
  padding:16px;
  border-radius:20px;
  background:#ffffff;
  border:1px solid #e3e6ea;
  box-shadow:0 10px 24px rgba(43,67,90,.07);
}

.tpb-summaryPostTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

.tpb-summaryPostNo{
  color:#8a97a5;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.tpb-summaryPost h3{
  margin:4px 0 0;
  font-size:18px;
  line-height:1.2;
}

.tpb-summaryStatus{
  flex:0 0 auto;
  padding:7px 10px;
  border-radius:999px;
  background:#eef3f8;
  color:#1C3A52;
  font-size:12px;
  font-weight:800;
}

.tpb-summaryPost.is-removed{
  opacity:.58;
  background:#f3f5f7;
}

.tpb-summaryPost.is-removed .tpb-summaryStatus{
  background:#e5e9ee;
  color:#607080;
}

.tpb-summaryMetaGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-bottom:12px;
}

.tpb-summaryMetaGrid div,
.tpb-summaryMarketing p{
  margin:0;
  padding:10px 12px;
  border-radius:14px;
  background:#f7f9fb;
  border:1px solid #edf0f4;
}

.tpb-summaryMetaGrid span,
.tpb-summaryMarketing span{
  display:block;
  margin-bottom:4px;
  color:#7b8794;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.tpb-summaryMetaGrid strong{
  font-size:13px;
}

.tpb-summaryMarketing{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:12px;
  font-size:13px;
  line-height:1.45;
}

.tpb-summaryReason{
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:14px;
  background:#fff9e8;
  border:1px solid #f2df9e;
  font-size:13px;
  line-height:1.45;
}

.tpb-summaryReason summary{
  cursor:pointer;
  color:#8a6200;
  font-weight:800;
}

.tpb-summaryReason p{
  margin:8px 0 0;
  color:#4f5d6b;
}

.tpb-summaryPostBody{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.tpb-summaryPostBody p{
  margin:0;
  color:#25384b;
  line-height:1.55;
  font-size:14px;
}

.tpb-summaryThumb{
  flex:0 0 150px;
  height:110px;
  border-radius:14px;
  overflow:hidden;
  background:#eef3f8;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#718093;
  font-weight:800;
}

.tpb-summaryThumb img,
.tpb-summaryThumb video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.tpb-summaryActions{
  position:sticky;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 24px 22px;
  background:rgba(247,249,251,.94);
  border-top:1px solid #e3e6ea;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-radius:0 0 24px 24px;
}

.tpb-summaryActionButtons{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.tpb-summarySchedule{
  background:#FEC846;
  border-color:#e2b23d;
  color:#1C3A52;
}

.tpb-summarySchedule:hover{
  background:#f2be36;
  border-color:#d7a930;
  color:#1C3A52;
}

.tpb-summaryScheduleOpen{
  background:#ffffff;
  border-color:#d6dbea;
  color:#1C3A52;
  text-decoration:none;
}

.tpb-summaryScheduleOpen:hover{
  background:#eef3f8;
  border-color:#c7d0dd;
  color:#1C3A52;
}

.tpb-summaryApprove{
  background:#1C3A52;
  border-color:#1C3A52;
  color:#ffffff;
}

.tpb-summaryApprove:hover{
  background:#102638;
  border-color:#102638;
  color:#ffffff;
}

/* === Campaign Knowledge Base === */
.tpb-kbStats{
  display:grid;
  grid-template-columns:170px 170px minmax(0,1fr);
  gap:12px;
  padding:18px 24px 6px;
}

.tpb-kbStats > div{
  padding:16px;
  border-radius:18px;
  background:#ffffff;
  border:1px solid #e3e6ea;
  box-shadow:0 8px 20px rgba(43,67,90,.06);
}

.tpb-kbStats strong{
  display:block;
  color:#1C3A52;
  font-size:26px;
  line-height:1.1;
}

.tpb-kbStats span{
  display:block;
  margin-top:6px;
  color:#718093;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.tpb-kbStats .tpb-kbProgress{
  display:flex;
  flex-direction:column-reverse;
  justify-content:center;
}

.tpb-kbStats .tpb-kbProgress strong{
  font-size:15px;
  line-height:1.35;
}

.tpb-kbControls{
  position:sticky;
  top:105px;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:12px 24px 0;
  padding:10px;
  border:1px solid #e3e6ea;
  border-radius:16px;
  background:rgba(247,249,251,.96);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.tpb-kbTabs,
.tpb-kbTools,
.tpb-kbRecordActions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.tpb-kbTab{
  min-height:38px;
  padding:8px 13px;
  border:1px solid #d6dbea;
  border-radius:10px;
  background:#ffffff;
  color:#1C3A52;
  cursor:pointer;
  font:700 13px "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.tpb-kbTab.is-active{
  border-color:#e2b23d;
  background:#FEC846;
}

.tpb-kbSearch{
  width:min(260px, 28vw);
  min-height:38px;
  padding:8px 12px;
  box-sizing:border-box;
  border:1px solid #D6DBEA;
  border-radius:10px;
  background:#ffffff;
  color:#1C3A52;
  outline:none;
  font:500 13px "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.tpb-kbSearch:focus{
  border-color:#1C3A52;
  box-shadow:0 0 0 3px rgba(28,58,82,.10);
}

.tpb-kbSortLabel{
  display:flex;
  align-items:center;
  gap:6px;
  color:#526477;
  font-size:12px;
  font-weight:700;
}

.tpb-kbSortLabel select{
  min-height:38px;
  padding:8px 28px 8px 10px;
  border:1px solid #D6DBEA;
  border-radius:10px;
  background:#ffffff;
  color:#1C3A52;
  outline:none;
  font:600 13px "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.tpb-kbSortLabel select:focus{
  border-color:#1C3A52;
  box-shadow:0 0 0 3px rgba(28,58,82,.10);
}

.tpb-kbAdd{
  background:#FEC846;
  border-color:#e2b23d;
}

.tpb-kbList{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px 24px 22px;
}

.tpb-kbCard{
  border:1px solid #e3e6ea;
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 8px 22px rgba(43,67,90,.06);
  overflow:hidden;
}

.tpb-kbCard.is-dirty{
  border-color:#e6a700;
  box-shadow:0 0 0 2px rgba(254,200,70,.28), 0 8px 22px rgba(43,67,90,.08);
}

.tpb-kbCardSummary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:56px;
  padding:12px 16px;
  box-sizing:border-box;
  cursor:pointer;
  list-style:none;
}

.tpb-kbCardSummary::-webkit-details-marker{
  display:none;
}

.tpb-kbCardSummary::before{
  content:"▸";
  flex:0 0 auto;
  color:#718093;
  font-size:13px;
}

.tpb-kbCard details[open] .tpb-kbCardSummary::before{
  content:"▾";
}

.tpb-kbCard details[open] .tpb-kbCardSummary{
  border-bottom:1px solid #edf0f4;
  background:#fbfcfe;
}

.tpb-kbCardTitle{
  flex:1 1 auto;
  min-width:0;
  color:#1C3A52;
  font-size:15px;
  font-weight:800;
}

.tpb-kbImportance,
.tpb-kbLocationMeta{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  background:#e8f6f3;
  border:1px solid #9fd6cb;
  color:#10483f;
  font-size:11px;
  font-weight:800;
}

.tpb-kbUnsaved{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  background:#fff2cc;
  color:#8a5a00;
  border:1px solid #e6b53a;
  font-size:11px;
  font-weight:900;
}

.tpb-kbCardBody{
  padding:16px;
}

.tpb-kbFormGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.tpb-kbField{
  display:block;
  min-width:0;
}

.tpb-kbField-wide{
  grid-column:1 / -1;
}

.tpb-kbField > span{
  display:block;
  margin:0 0 7px;
  color:#1C3A52;
  font-size:12px;
  font-weight:800;
}

.tpb-kbField input,
.tpb-kbField select,
.tpb-kbField textarea{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  box-sizing:border-box;
  border:1px solid #D6DBEA;
  border-radius:11px;
  background:#ffffff;
  color:#1C3A52;
  outline:none;
  font:500 13px "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.tpb-kbField textarea{
  min-height:112px;
  resize:vertical;
  line-height:1.5;
}

.tpb-kbField input:focus,
.tpb-kbField select:focus,
.tpb-kbField textarea:focus{
  border-color:#1C3A52;
  box-shadow:0 0 0 3px rgba(28,58,82,.10);
}

.tpb-kbField input:disabled,
.tpb-kbField select:disabled,
.tpb-kbField textarea:disabled{
  background:#f2f4f7;
  color:#526477;
}

.tpb-kbRecordActions{
  justify-content:flex-end;
  margin-top:14px;
}

.tpb-kbEmpty{
  padding:26px;
  border:1px dashed #cfd6df;
  border-radius:16px;
  background:#ffffff;
  color:#718093;
  text-align:center;
  font-size:14px;
  font-weight:700;
}

.tpb-kbActions .tpb-summaryApprove:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.tpb-summaryPublish{
  background:#0f8f72;
  border-color:#0f8f72;
  color:#ffffff;
}

.tpb-summaryPublish:hover{
  background:#0b725b;
  border-color:#0b725b;
  color:#ffffff;
}

.tpb-dangerBtn{
  background:#b42318;
  border-color:#b42318;
  color:#ffffff;
}

.tpb-dangerBtn:hover{
  background:#8f1d14;
  border-color:#8f1d14;
  color:#ffffff;
}

.tpb-publishingSettings{
  padding:18px 24px 20px;
  display:grid;
  gap:14px;
}

.tpb-publishingStatusGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:10px;
}

.tpb-publishingStatusItem{
  min-height:58px;
  padding:10px 12px;
  border:1px solid #e4e8ee;
  border-radius:10px;
  background:#f8fafc;
}

.tpb-publishingStatusItem span{
  display:block;
  margin-bottom:5px;
  color:#718093;
  font-size:10px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.tpb-publishingStatusItem strong{
  display:block;
  color:#1C3A52;
  font-size:15px;
  font-weight:500;
  line-height:1.25;
}

.tpb-publishingPanel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px;
  border:1px solid #e4e8ee;
  border-radius:14px;
  background:#ffffff;
}

.tpb-publishingPanel h3{
  margin:0 0 6px;
  color:#0A2E4D;
  font-size:20px;
  line-height:1.25;
}

.tpb-publishingPanel p{
  margin:0;
  max-width:700px;
  color:#526477;
  font-size:14px;
  line-height:1.45;
}

.tpb-publishingHeroStatus{
  margin:8px 0 0;
  color:#14324a;
  font-size:16px;
  font-weight:800;
  line-height:1.35;
}

.tpb-facebookConnect{
  background:#1877f2;
  border-color:#1877f2;
  color:#ffffff;
}

.tpb-facebookControls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
  max-width:460px;
}

.tpb-facebookPageSelect{
  min-width:220px;
  min-height:42px;
  padding:8px 12px;
  border:1px solid #cfd7e4;
  border-radius:10px;
  background:#ffffff;
  color:#1C3A52;
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:14px;
  font-weight:700;
}

.tpb-facebookPageSelect:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.tpb-publishingControlButtons{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width: 860px){
  .tpb-publishingStatusGrid{
    grid-template-columns:1fr;
  }

  .tpb-publishingPanel{
    align-items:flex-start;
    flex-direction:column;
  }

  .tpb-facebookControls{
    align-items:stretch;
    flex-direction:column;
    width:100%;
    max-width:none;
  }

  .tpb-publishingControlButtons{
    align-items:stretch;
    flex-direction:column;
    width:100%;
  }

  .tpb-facebookPageSelect{
    width:100%;
  }
}

.tpb-summaryActions p{
  margin:0;
  max-width:520px;
  color:#718093;
  font-size:12px;
  line-height:1.45;
}

.tpb-workspaceShell{
	  flex:1;
	  height:100%;
	  min-height:0;
	  display:grid;
	  grid-template-columns:minmax(380px,430px) minmax(0,1fr);
	  gap:14px;
	  justify-content:center;
	}

	.tpb-leftPanel,
	.tpb-rightPanel{
	  position:relative;
	  min-height:0;
	  background:#ffffff;
	  border:1px solid #d9dde3;
	  border-radius:18px;
	  overflow:hidden;
	  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	}

  .tpb-leftPanel{
    display:flex;
    flex-direction:column;
    max-height:100%;
  }

#tpbApp.tpb-auth-logged-out .tpb-rightPanel::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:40;
  background:rgba(247,249,251,.74);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  pointer-events:auto;
}

.tpb-loginGate{
  position:absolute;
  left:50%;
  top:112px;
  z-index:41;
  transform:translateX(-50%);
  width:min(440px, calc(100% - 48px));
  padding:20px 24px;
  border-radius:18px;
  border:1px solid rgba(217,221,227,.95);
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 46px rgba(28,58,82,.16);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  pointer-events:auto;
}

.tpb-loginGate[hidden]{
  display:none;
}

.tpb-loginGateText{
  color:#1C3A52;
  font-size:17px;
  line-height:1.4;
  font-weight:700;
  text-align:center;
}

.tpb-loginGateButton{
  min-width:112px;
  justify-content:center;
}

	.tpb-leftHeader{
	  min-height:70px;
	  padding:18px 22px;
	  box-sizing:border-box;
	  background:#FEC846;
	  border-bottom:1px solid rgba(28,58,82,.10);
	  display:flex;
	  align-items:center;
	  justify-content:space-between;
	  gap:12px;
	}

.tpb-leftTitle{
  margin:0;
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:18px;
  line-height:1.2;
  font-weight:800;
  color:#1C3A52;
}

.tpb-leftSubtitle{
  display:none;
}

.tpb-archiveToggle{
  flex:0 0 auto;
  min-height:34px;
  padding:6px 10px;
  border:1px solid rgba(28,58,82,.22);
  border-radius:8px;
  background:#ffffff;
  color:#1C3A52;
  font-size:11px;
  font-weight:800;
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  cursor:pointer;
}

.tpb-archiveToggle:hover,
.tpb-archiveToggle.is-active{
  border-color:#1C3A52;
}

.tpb-archiveToggle:disabled{
  opacity:.55;
  cursor:not-allowed;
}
	
	.tpb-leftScroll{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:14px;
  box-sizing:border-box;
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.tpb-campaignGroup{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}

.tpb-campaignHead{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:space-between;
  width:100%;
  padding:6px 0;
  border:0;
  border-radius:10px;
  background:transparent;
  box-shadow:none;
  color:#20324a;
  font-size:13px;
  font-weight:700;
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align:left;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}

.tpb-campaignHead:hover{
  background-color:#f2f4f7;
}

.tpb-campaignHead .js-tpb-campaign-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 auto;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.tpb-campaignHead .js-tpb-campaign-archive{
  flex:0 0 auto;
  padding:5px 8px;
  border:1px solid #d7dde8;
  border-radius:8px;
  background:#fff;
  color:#64748b;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}

.tpb-campaignHead .js-tpb-campaign-archive:hover{
  color:#0a2a43;
  border-color:#b7c1d1;
}

.tpb-archivedCampaign .tpb-campaignHead{
  align-items:flex-start;
}

.tpb-archivedCampaignInfo{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.tpb-campaignHead .js-tpb-campaign-restore{
  flex:0 0 auto;
  padding:7px 10px;
  border:1px solid #9ecbb8;
  border-radius:8px;
  background:#eaf8ef;
  color:#08713d;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.tpb-campaignHead .js-tpb-campaign-restore:hover{
  border-color:#08713d;
}

.tpb-campaignArrow{
  font-size:12px;
  opacity:.8;
}
.tpb-campaignTitle{
  display:block;
  text-align:left;
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.tpb-campaignNameWrap{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.tpb-campaignPublishingLine{
  display:block;
  color:#7a8796;
  font-size:10px;
  font-weight:700;
  line-height:1.25;
  white-space:normal;
}

.tpb-postList{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-left:18px;
}

.tpb-postCard{
  width:100%;
  border:0;
  border-radius:10px;
  padding:8px 0;
  background:transparent;
  box-shadow:none;
  min-height:auto;
  box-sizing:border-box;
  text-align:left;
  cursor:pointer;
}

.tpb-postLoading{
  padding:18px 16px;
  border:1px solid #e6edf5;
  border-radius:18px;
  background:#fff;
  color:#51606f;
  font-size:14px;
  font-weight:600;
}

.tpb-emptyCreateCampaign{
  margin-top:14px;
  width:max-content;
  background:#FFC83D;
  border-color:#e6a900;
  color:#0B2C44;
}

.tpb-emptyCreateCampaign:hover{
  background:#f4bd2f;
  border-color:#d69b00;
  color:#0B2C44;
}

.tpb-textAccent,
.tpb-emptyUserName{
  color:#B68B23;
}

.tpb-postLoading-progress{
  border-color:#f5d278;
  background:#fff8e5;
  color:#6a4b00;
}

button.tpb-postLoading-progress{
  width:100%;
  box-sizing:border-box;
  text-align:left;
  cursor:pointer;
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

button.tpb-postLoading-progress:hover{
  border-color:#e2b23d;
  background:#fff2c8;
}

.tpb-postIndex{
  font-size:11px;
  color:#8a97a5;
}

.tpb-postTitle{
  font-size:14px;
  font-weight:600;
  color:#1f2d3d;
}

.tpb-postStatus{
  font-size:11px;
  color:#8a97a5;
  white-space:nowrap;
}

.tpb-leftPanel .tpb-postRow{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  align-items:center;
  column-gap:10px;
  margin-left:12px;
  font-family:"Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.tpb-postCard:hover{
  background-color:#f2f4f7;
}

.tpb-postCard.is-active{
  background:linear-gradient(135deg, rgba(254,200,70,.22) 0%, rgba(247,249,251,.96) 100%);
}

.tpb-postCard.is-media-generating .tpb-postStatus{
  color:#9a6a00;
  font-weight:700;
}

.tpb-postCard.is-removed{
  opacity:.54;
}

.tpb-postCard.is-removed .tpb-postTitle{
  color:#667587;
}

.tpb-postCard.is-removed .tpb-postStatus{
  color:#405161;
  font-weight:700;
}
	.tpb-rightPanel{
	  position:relative;
	  display:flex;
	  flex-direction:column;
	  min-width:0;
	  min-height:0;
	  overflow:hidden;
	}

/* === TPB Workspace === */
#tpbWorkspace.tpb-workspace{
  display:grid;
  grid-template-columns:minmax(320px, 360px) minmax(0, 1fr);
  gap:18px;
  min-height:calc(100vh - 80px);
	max-width:none;
	margin:0;
	padding:0;
  box-sizing:border-box;
  color:#1C3A52;
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.tpb-workspace-sidebar,
.tpb-workspace-main{
  background:#F5F5F5;
  border:1px solid rgba(28,58,82,.12);
  border-radius:24px;
  box-shadow:0 10px 24px rgba(43,67,90,.08);
  overflow:hidden;
}

.tpb-workspace-sidebar{
  display:flex;
  flex-direction:column;
  min-height:calc(100vh - 96px);
}

.tpb-workspace-sidebar-head,
.tpb-workspace-main-head{
  padding:18px 18px 14px;
  border-bottom:1px solid rgba(28,58,82,.08);
  background:linear-gradient(180deg, rgba(254,200,70,.22) 0%, rgba(245,245,245,0) 100%);
}

.tpb-workspace-sidebar-head h2,
.tpb-workspace-main-head h2{
  margin:0;
  font-size:22px;
  line-height:1.1;
}

.tpb-workspace-note{
  margin-top:6px;
  opacity:.72;
  font-size:13px;
}

.tpb-workspace-tree{
  padding:14px;
  overflow:auto;
}

.tpb-workspace-loading,
.tpb-workspace-postsLoading{
  padding:14px;
  border-radius:16px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(28,58,82,.08);
}

.tpb-workspace-campaign + .tpb-workspace-campaign{
  margin-top:12px;
}

.tpb-workspace-campaignHead{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:0;
  border-radius:18px;
  background:linear-gradient(135deg, rgba(254,200,70,.28) 0%, rgba(245,245,245,.96) 100%);
  color:#1C3A52;
  text-align:left;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(43,67,90,.07);
}

.tpb-workspace-campaignArrow{
  width:18px;
  flex:0 0 18px;
  text-align:center;
}

.tpb-workspace-campaignName{
  font-size:14px;
  font-weight:700;
}

.tpb-workspace-postList{
  margin-top:10px;
  padding-left:10px;
}

.tpb-workspace-postCard{
  width:100%;
  display:block;
  padding:12px 12px 10px;
  border:1px solid rgba(28,58,82,.10);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(254,200,70,.18) 0%, rgba(255,255,255,.92) 56%, rgba(245,245,245,.98) 100%);
  color:#1C3A52;
  text-align:left;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(43,67,90,.07);
}

.tpb-workspace-postCard + .tpb-workspace-postCard{
  margin-top:10px;
}

.tpb-workspace-postCard.is-active{
  border-color:#FEC846;
  box-shadow:0 10px 22px rgba(43,67,90,.12), 0 0 0 2px rgba(254,200,70,.22);
}

.tpb-workspace-postTop,
.tpb-workspace-postBottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.tpb-workspace-pill{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  background:#FEC846;
  font-size:11px;
  font-weight:700;
}

.tpb-workspace-pill.is-muted{
  background:rgba(28,58,82,.08);
}

.tpb-workspace-label{
  margin-top:10px;
  font-size:10px;
  letter-spacing:.12em;
  opacity:.62;
}

.tpb-workspace-title{
  margin-top:4px;
  font-size:16px;
  font-weight:800;
  line-height:1.15;
  min-height:36px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.tpb-workspace-status,
.tpb-workspace-progress{
  margin-top:10px;
  font-size:11px;
  font-weight:700;
}

.tpb-workspace-status.is-done{ color:#1d8f4d; }
.tpb-workspace-status.is-warn{ color:#b56d00; }
.tpb-workspace-status.is-busy{ color:#2f6fb2; }
.tpb-workspace-status.is-ready{ color:#4c5a6b; }

.tpb-workspace-main{
  display:flex;
  flex-direction:column;
  min-height:calc(100vh - 96px);
}

.tpb-workspace-canvasShell{
  position:relative;
  flex:1;
  min-height:680px;
  background:#F5F5F5;
}

#tpbWorkspaceCanvas.tpb-workspace-canvas{
  width:100%;
  height:100%;
  min-height:680px;
  border:0;
  display:block;
  background:#F5F5F5;
}

.tpb-workspace-empty{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;
  font-size:16px;
  color:rgba(28,58,82,.72);
  background:linear-gradient(180deg, rgba(254,200,70,.12) 0%, rgba(245,245,245,.98) 100%);
}

@media (max-width: 1180px){
  #tpbWorkspace.tpb-workspace{
    grid-template-columns:1fr;
  }

  .tpb-workspace-sidebar,
  .tpb-workspace-main{
    min-height:auto;
  }

  .tpb-workspace-tree{
    max-height:44vh;
  }

  .tpb-workspace-canvasShell,
  #tpbWorkspaceCanvas.tpb-workspace-canvas{
    min-height:70vh;
  }
}

@media (max-width: 820px){
  .tpb-summaryHead,
  .tpb-summaryActions,
  .tpb-summaryPostBody{
    flex-direction:column;
    align-items:stretch;
  }

  .tpb-summaryStats,
  .tpb-summaryMetaGrid,
  .tpb-summaryMarketing{
    grid-template-columns:1fr;
  }

  .tpb-summaryThumb{
    flex-basis:auto;
    width:100%;
    height:180px;
  }

  .tpb-kbStats,
  .tpb-kbFormGrid{
    grid-template-columns:1fr;
  }

  .tpb-kbField-wide{
    grid-column:auto;
  }

  .tpb-kbControls{
    position:static;
    flex-direction:column;
    align-items:stretch;
  }

  .tpb-kbTools{
    align-items:stretch;
  }

  .tpb-kbSearch{
    width:100%;
  }
}

@media (max-width: 1420px){
  .tpb-left{
    flex:1 1 100%;
    min-height:46px;
  }

  .tpb-homeLink{
    min-height:46px;
  }

  .tpb-center{
    flex:1 1 auto;
    justify-content:flex-start;
    padding-left:0;
  }

  .tpb-right{
    align-self:flex-start;
    margin-left:auto;
  }
}

@media (max-width: 760px){
  .tpb-topbar{
    padding-right:8px;
  }

  .tpb-left{
    padding-left:8px;
  }

  .tpb-center{
    padding-left:8px;
  }

  .tpb-proyo,
  .tpb-book,
  .tpb-left .tpb-workspace{
    font-size:24px;
  }

  .tpb-topGroup{
    width:100%;
    box-sizing:border-box;
    justify-content:flex-start;
  }
}

/* ===== Workspace header: single source of truth ===== */
#tpbCanvasHeader{
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-bottom: none;
  position: relative;
  z-index: 2;
}

.tpb-headerCampaign{
  min-height:70px;
  padding:18px 22px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  background:#FEC846;
  color:#1C3A52;
  font-size:18px;
  font-weight:800;
  line-height:1.2;
}

.tpb-headerMeta{
  display: grid;
  grid-template-columns: 12% 53% 35%;
  gap: 0;
  align-items: stretch;
  background: #f7f9fb;
}

.tpb-headerBlock{
  padding: 14px 18px 16px;
  box-sizing: border-box;
  min-width: 0;
}

.tpb-headerBlock + .tpb-headerBlock{
  border-left: none;
}

.tpb-headerLabel{
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7b8794;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tpb-headerValue{
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  color: #1C3A52;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpb-headerStatusRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-width:0;
}

.tpb-headerStatusRow .tpb-headerValue{
  min-width:0;
}

.tpb-reopenPostBtn,
.tpb-reloadPostBtn{
  min-height:34px;
  padding:7px 12px;
  border-radius:10px;
  font-size:12px;
  line-height:1.1;
  white-space:nowrap;
  flex:0 0 auto;
}

.tpb-reopenPostBtn[hidden],
.tpb-reloadPostBtn[hidden]{
  display:none !important;
}

.tpb-reopenWrap{
  position:relative;
  flex:0 0 auto;
}

.tpb-plannedLockCoachmark{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  z-index:80;
  width:260px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid rgba(28,58,82,.12);
  border-radius:14px;
  background:#fff;
  box-shadow:0 14px 34px rgba(28,58,82,.18);
  color:#1C3A52;
  text-align:left;
  box-sizing:border-box;
}

.tpb-plannedLockCoachmark[hidden]{
  display:none !important;
}

.tpb-plannedLockCoachmark::before{
  content:"";
  position:absolute;
  top:-7px;
  right:24px;
  width:14px;
  height:14px;
  background:#fff;
  border-left:1px solid rgba(28,58,82,.12);
  border-top:1px solid rgba(28,58,82,.12);
  transform:rotate(45deg);
}

.tpb-plannedLockCoachmarkIcon{
  width:28px;
  height:28px;
  border:3px solid rgba(28,58,82,.12);
  border-top-color:#FEC846;
  border-radius:50%;
  flex:0 0 auto;
  animation:tpbSpin .8s linear infinite;
}

.tpb-plannedLockCoachmarkTitle{
  font-size:13px;
  font-weight:800;
  line-height:1.2;
}

.tpb-plannedLockCoachmarkText{
  margin-top:2px;
  color:#526477;
  font-size:12px;
  font-weight:700;
  line-height:1.3;
}

.tpb-tile.is-planned-locked .tpb-fieldView{
  cursor:default;
}

.tpb-tile.is-planned-locked .tpb-actions .tpb-btn,
.tpb-tile.is-planned-locked .tpb-manualMediaActions .tpb-btn{
  opacity:.48;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

.tpb-btn.is-planned-locked-control{
  opacity:.48;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

#tpbHeaderStatus.tpb-status-creating{ color:#C87418; }
#tpbHeaderStatus.tpb-status-ready{ color:#2D6CDF; }
#tpbHeaderStatus.tpb-status-approved{ color:#1D8F5A; }
#tpbHeaderStatus.tpb-status-published{ color:#1D8F5A; }
#tpbHeaderStatus.tpb-status-error{ color:#C0392B; }
#tpbHeaderStatus.tpb-status-missing{ color:#8A6D1D; }

/* === Loading Overlay === */
.tpb-loadingOverlay{
  position:absolute;
  inset:0;
  z-index:1000001;
  display:none;
  align-items:center;
  justify-content:center;
  pointer-events:auto;
  background:transparent;
}

.tpb-loadingOverlayInner{
  min-width:220px;
  max-width:280px;
  padding:18px 22px;
  border-radius:18px;
  border:1px solid rgba(217,221,227,.95);
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 12px 30px rgba(28,58,82,.14);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.tpb-loadingText{
  font-size:16px;
  font-weight:600;
  color:#1C3A52;
}

.tpb-loadingSpinner{
  width:36px;
  height:36px;
  border:4px solid rgba(28,58,82,0.15);
  border-top-color:#FEC846;
  border-radius:50%;
  animation:tpbSpin 0.8s linear infinite;
}

.tpb-updateBtn{
  min-height:36px;
  min-width:92px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-items:center;
  justify-content:center;
  gap:2px;
  text-align:center;
  line-height:1.15;
  padding:8px 10px;
  background:#FEC846;
  border:1px solid #d97a70;
  color:#ffffff;
  box-sizing:border-box;
  cursor:grab;
}

.tpb-updateBtn:disabled{
  background:#ffffff;
  border:1px solid #d6dbea;
  color:#1C3A52;
  opacity:.45;
  cursor:default;
}
.tpb-updateBtn.tpb-topbtn-disabled,
.tpb-updateBtn.tpb-topbtn-disabled:hover,
.tpb-updateBtn[aria-disabled="true"],
.tpb-updateBtn[aria-disabled="true"]:hover{
  background:#ffffff;
  border:1px solid #d6dbea;
  color:#1C3A52;
  opacity:.45;
  cursor:default;
  pointer-events:none;
}
.tpb-updateBtn:not(:disabled):hover{
  background:#e8db5e;
  border:1px solid #fd97a70;
}

.tpb-updateLine{
  display:block;
  width:100%;
}

.tpb-updateLine1{
  font-size:10px;
  font-weight:500;
}

.tpb-updateLine2{
  font-size:14px;
  font-weight:800;
}

.tpb-updateLine3{
  font-size:10px;
  font-weight:500;
}

.tpb-updateBtn.is-updated .tpb-updateLine1,
.tpb-updateBtn.is-updated .tpb-updateLine3{
  visibility:hidden;
}

.tpb-topbtn-2line{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  text-align:center;
  line-height:1.1;
}

.tpb-topbtn-2line span{
  display:block;
  width:100%;
}

.tpb-updateBtn{
  position:relative;
}

.tpb-updateWrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-height:auto;
  padding:0;
  background:transparent;
  border:none;
  border-radius:0;
  box-sizing:border-box;
}
.tpb-updateTip{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  margin-top:10px;
  z-index:1000;
  background:#FFF3C4;
  color:#1C3A52;
  font-size:12px;
  font-weight:400;
  line-height:1.35;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid #e6d48a;
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
  width:200px;
  text-align:center;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .15s ease, transform .15s ease;
}

.tpb-updateWrap.is-update-ready:hover .tpb-updateTip{
  opacity:1;
  visibility:visible;
  transform:translate(-50%, 0);
}

.tpb-updateWrap.is-update-result .tpb-updateTip{
  opacity:1;
  visibility:visible;
  transform:translate(-50%, 0);
}

@keyframes tpbSpin{
  to{ transform:rotate(360deg); }
}
/* Single-post prompt review: isolated modal, existing Workspace colors. */
#tpbPromptReviewDialog{width:min(820px,94vw);max-height:90vh;overflow:auto;border:1px solid #9cbdb9;border-radius:14px;padding:24px;background:#f7f9fa;color:#143b51;font-family:inherit}
#tpbPromptReviewDialog::backdrop{background:rgba(10,30,45,.45)}
#tpbPromptReviewDialog h2{margin:0 0 12px}
#tpbPromptReviewDialog textarea{display:block;width:100%;box-sizing:border-box;min-height:320px;resize:vertical;padding:12px;border:1px solid #9cbdb9;border-radius:8px;font:16px/1.5 sans-serif;color:#143b51;background:#fff}
#tpbPromptReviewDialog p{line-height:1.5}
.tpb-promptReviewActions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
#tpbPromptReviewBar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 22px 12px;box-sizing:border-box;font-size:13px;line-height:1.4;padding:10px 12px;background:#fff4cd;border-radius:7px;white-space:normal}
#tpbPromptReviewNotice{flex:1 1 240px;min-width:0;overflow-wrap:anywhere}
#tpbPromptReviewBar button[hidden]{display:none!important}
#tpbPromptReviewBar[hidden]{display:none}
