/* Owner AutoPost V0 master layout.
   Owner-only: one business switcher + one creator + one queue. No duplicate creator overlay. */
#ownerAutopostV58Preview{display:none!important}
body.owner-ap58-open{overflow:auto!important}
#ownerAutopostControl .owner-ap-v0-hide{display:none!important}
#ownerAutopostControl .owner-ap-flow-map{display:none!important}
#ownerAutopostControl{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}

.owner-ap-v0-business-switcher{
  margin:0 0 18px;padding:16px;border:1px solid #d8e6de;border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbf8 100%);
  box-shadow:0 10px 28px rgba(31,70,49,.07);color:#173c2d
}
.owner-ap-v0-switch-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.owner-ap-v0-eyebrow{display:block;font-size:11px;font-weight:900;color:#31855d;margin-bottom:7px;letter-spacing:.02em}
.owner-ap-v0-current{display:flex;align-items:center;gap:11px;min-width:0}
.owner-ap-v0-avatar{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto;background:#fff5e8;border:1px solid #ead9bf;color:#8d4e12;font-weight:900}
.owner-ap-v0-current strong{display:block;font-size:18px;line-height:1.2;color:#153a2c}
.owner-ap-v0-current small{display:block;margin-top:3px;color:#6e8378}
.owner-ap-v0-summary{display:flex;align-items:stretch;gap:7px}
.owner-ap-v0-summary span{min-width:68px;padding:8px 9px;border-radius:11px;background:#f8fbf9;border:1px solid #e0ebe4;text-align:center}
.owner-ap-v0-summary b{display:block;font-size:15px;color:#21724e}
.owner-ap-v0-summary small{display:block;margin-top:2px;font-size:10px;color:#7b9185}

.owner-ap-v0-business-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px}
.owner-ap-v0-business-tab{
  position:relative;display:flex;align-items:center;gap:10px;width:100%;min-height:66px;padding:10px 38px 10px 10px;
  border:1px solid #dfe8e2;border-radius:14px;background:#fff;color:#254438;text-align:left;cursor:pointer;
  transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease,background .14s ease
}
.owner-ap-v0-business-tab:hover{transform:translateY(-1px);border-color:#9fd1b7;box-shadow:0 7px 18px rgba(34,115,77,.08)}
.owner-ap-v0-business-tab[data-active="1"]{
  border:2px solid #21a56d;background:linear-gradient(180deg,#ecfbf3 0%,#f7fffa 100%);
  box-shadow:0 8px 22px rgba(33,165,109,.14)
}
.owner-ap-v0-tab-avatar{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto;background:#f1f5f2;border:1px solid #e0e8e3;font-weight:900;color:#5e7468}
.owner-ap-v0-business-tab[data-active="1"] .owner-ap-v0-tab-avatar{background:#dff5e9;border-color:#b8e5cb;color:#167a4d}
.owner-ap-v0-tab-copy{min-width:0}
.owner-ap-v0-tab-copy b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.owner-ap-v0-tab-copy small{display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7b8f84;font-size:11px}
.owner-ap-v0-tab-check{position:absolute;right:10px;top:50%;transform:translateY(-50%) scale(.8);opacity:0;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#20a56c;color:#fff;font-size:12px;font-weight:900;transition:.14s ease}
.owner-ap-v0-business-tab[data-active="1"] .owner-ap-v0-tab-check{opacity:1;transform:translateY(-50%) scale(1)}

.owner-ap-v0-select-wrap{display:grid;gap:6px;min-width:0}
.owner-ap-v0-select-wrap>span{font-size:11px;font-weight:800;color:#6a8074}
.owner-ap-v0-select-wrap select{width:100%;height:44px;border:1px solid #bcd5c6;border-radius:12px;background:#fff;padding:0 38px 0 12px;color:#183d2d;font-weight:800;outline:0}
.owner-ap-v0-select-wrap select:focus{border-color:#25a968;box-shadow:0 0 0 3px rgba(37,169,104,.12)}
.owner-ap-v0-select-mobile{display:none}

.owner-ap-v0-business-switcher[data-busy="1"]{opacity:.7;pointer-events:none}
#ownerApComposeSection,#ownerApGlobalQueueSection{border-radius:18px!important;background:#fff!important;border:1px solid #dbe7df!important;box-shadow:0 8px 24px rgba(31,70,49,.06)!important}
#ownerApComposeSection{margin-bottom:18px!important}
#ownerApComposeSection .owner-ap-section-heading h3{font-size:22px!important}
#ownerApNewPost{border-radius:12px!important}
#ownerApGlobalQueueSection .owner-ap-section-heading h3{font-size:22px!important}
#ownerApBusinessHeading{display:none!important}

@media(max-width:900px){
  .owner-ap-v0-business-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .owner-ap-v0-summary{display:none}
}
@media(max-width:640px){
  .owner-ap-v0-business-tabs{display:none}
  .owner-ap-v0-select-mobile{display:grid;margin-top:4px}
  .owner-ap-v0-business-switcher{padding:13px}
  .owner-ap-v0-switch-head{margin-bottom:10px}
  .owner-ap-v0-current strong{font-size:16px}
}


/* V0 visual lock: make the whole AutoPost workspace read as one coherent light surface
   while keeping the Owner shell/sidebar untouched. */
#ownerAutopostControl{
  --ap-v0-ink:#173c2d;
  --ap-v0-muted:#71877c;
  --ap-v0-line:#dce8e1;
  --ap-v0-soft:#f7fbf8;
  --ap-v0-soft-2:#eef8f2;
  --ap-v0-accent:#20a56c;
  --ap-v0-accent-dark:#14764a;
  --ap-v0-shadow:0 10px 28px rgba(31,70,49,.07)
}
#ownerApComposeSection,
#ownerApGlobalQueueSection{
  padding:18px!important;
  border:1px solid var(--ap-v0-line)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:var(--ap-v0-shadow)!important;
  color:var(--ap-v0-ink)!important
}
#ownerApComposeSection .owner-ap-section-heading,
#ownerApGlobalQueueSection .owner-ap-section-heading{margin-bottom:12px}
#ownerApComposeSection .owner-ap-section-heading h3,
#ownerApGlobalQueueSection .owner-ap-section-heading h3{
  color:var(--ap-v0-ink)!important;font-size:22px!important;font-weight:900!important
}
#ownerApComposeSection .owner-ap-section-heading p,
#ownerApGlobalQueueSection .owner-ap-section-heading p{
  color:var(--ap-v0-muted)!important;font-size:13px!important
}
#ownerApNewPost{
  min-height:44px!important;padding:10px 16px!important;border:1px solid #168c59!important;
  border-radius:12px!important;background:linear-gradient(180deg,#24ae73,#188b59)!important;
  box-shadow:0 7px 18px rgba(32,165,108,.2)!important;color:#fff!important
}
#ownerApGlobalQueueRefresh{
  min-height:42px!important;padding:9px 13px!important;border:1px solid #c9dcd0!important;
  border-radius:11px!important;background:#f7fbf8!important;color:#335a48!important
}

#ownerApComposerChannelSummary{
  padding:11px 12px!important;border:1px solid #d9e7de!important;border-radius:14px!important;
  background:var(--ap-v0-soft)!important;color:var(--ap-v0-ink)!important
}
#ownerApComposerChannelSummary .owner-ap-channel-summary-head b{color:#244d39!important}
#ownerApComposerChannelSummary .owner-ap-channel-summary-head small{color:#81958a!important}
#ownerApComposerChannelSummary .owner-ap-platform-button,
#ownerApComposerChannelSummary .owner-ap-platform-status{
  border-color:#d7e4dc!important;background:#fff!important;box-shadow:none!important
}
#ownerApComposerChannelSummary .owner-ap-platform-dot{border-color:#fff!important}

#ownerApGlobalQueueSection.owner-ap-global-queue-section{
  border-color:var(--ap-v0-line)!important;background:#fff!important
}
#ownerApGlobalQueueSummary{gap:7px!important;margin-bottom:10px}
#ownerApGlobalQueueSection .owner-ap-global-queue-chip{
  min-height:32px!important;padding:5px 9px!important;border:1px solid #d8e6de!important;
  background:#f7fbf8!important;color:#305844!important
}
#ownerApGlobalQueueSection .owner-ap-global-queue-chip small{color:#7d9287!important}
#ownerApGlobalQueueSection .owner-ap-global-queue-chip[data-tone="running"]{border-color:#ead9a5!important;background:#fff9e9!important;color:#735a16!important}
#ownerApGlobalQueueSection .owner-ap-global-queue-chip[data-tone="ready"]{border-color:#b8dfc8!important;background:#effaf4!important;color:#176b45!important}
#ownerApGlobalQueueSection .owner-ap-global-queue-chip[data-tone="scheduled"]{border-color:#c7dbec!important;background:#f2f8fd!important;color:#315e83!important}
#ownerApGlobalQueueSection .owner-ap-global-queue-chip[data-tone="failed"]{border-color:#ecc9cf!important;background:#fff4f5!important;color:#8e4150!important}

#ownerApGlobalQueueList{grid-template-columns:1fr!important;gap:8px!important}
#ownerApGlobalQueueSection .owner-ap-global-queue-card{
  grid-template-columns:56px minmax(0,1fr)!important;gap:12px!important;padding:10px 12px!important;
  border:1px solid #dce7e0!important;border-radius:13px!important;background:#fff!important;
  color:#244537!important;box-shadow:0 2px 9px rgba(40,78,56,.035)!important
}
#ownerApGlobalQueueSection .owner-ap-global-queue-card:hover{
  border-color:#9fcfb5!important;background:#fbfffc!important
}
#ownerApGlobalQueueSection .owner-ap-global-queue-card[data-state="ready"]{border-left:4px solid #32a86f!important}
#ownerApGlobalQueueSection .owner-ap-global-queue-card[data-state="scheduled"]{border-left:4px solid #4f8fc3!important}
#ownerApGlobalQueueSection .owner-ap-global-queue-card[data-state="failed"]{border-left:4px solid #c56170!important}
#ownerApGlobalQueueSection .owner-ap-global-queue-thumb,
#ownerApGlobalQueueSection .owner-ap-global-queue-wait{
  width:56px!important;height:56px!important;border-radius:10px!important;background:#eef5f0!important
}
#ownerApGlobalQueueSection .owner-ap-global-queue-top b{color:#204333!important;font-size:13px!important}
#ownerApGlobalQueueSection .owner-ap-global-queue-top em{
  border-color:#d5e3da!important;background:#f6faf7!important;color:#557266!important
}
#ownerApGlobalQueueSection .owner-ap-global-queue-copy>small{color:#6f8579!important}
#ownerApGlobalQueueSection .owner-ap-global-queue-meta{color:#8a9b92!important}

#ownerAutopostControl>.owner-ap-feedback{
  margin:0!important;padding:10px 12px!important;border:1px solid #d9e6de!important;border-radius:12px!important;
  background:#f7fbf8!important;color:#527061!important
}
#ownerAutopostControl>.owner-ap-feedback.ok{border-color:#b8dfc8!important;background:#effaf4!important;color:#176b45!important}
#ownerAutopostControl>.owner-ap-feedback.bad{border-color:#ecc9cf!important;background:#fff4f5!important;color:#8e4150!important}

/* When Creator is open, keep the same visual language instead of dropping back to the old neon panel. */
#ownerApComposer{
  gap:12px!important;padding:14px!important;border:1px solid #dbe7df!important;border-radius:15px!important;
  background:#f9fcfa!important;color:var(--ap-v0-ink)!important
}
#ownerApComposer .owner-ap-step{
  border:1px solid #e1ebe5!important;border-radius:14px!important;background:#fff!important;color:var(--ap-v0-ink)!important
}
#ownerApComposer .owner-ap-step-title b,
#ownerApComposer .owner-ap-label{color:#244b38!important}
#ownerApComposer .owner-ap-step-title small{color:#7f9388!important}
#ownerApComposer .owner-ap-mode-tabs,
#ownerApComposer .owner-ap-post-tabs{
  border-color:#dce8e1!important;background:#f3f8f5!important
}
#ownerApComposer .owner-ap-mode-tabs button,
#ownerApComposer .owner-ap-post-tabs button{
  color:#456454!important;background:transparent!important
}
#ownerApComposer .owner-ap-mode-tabs button[data-active="1"],
#ownerApComposer .owner-ap-post-tabs button[data-active="1"]{
  border-color:#8dceb0!important;background:#eaf8f0!important;box-shadow:none!important;color:#176b45!important
}
#ownerApComposer textarea,
#ownerApComposer input,
#ownerApComposer select{
  border-color:#d3e2d9!important;background:#fff!important;color:#244537!important
}
#ownerApComposer textarea:focus,
#ownerApComposer input:focus,
#ownerApComposer select:focus{
  outline:2px solid rgba(32,165,108,.2)!important;border-color:#78c49e!important
}


@media(max-width:760px){
  #ownerApComposeSection,#ownerApGlobalQueueSection{padding:13px!important}
  #ownerApComposeSection .owner-ap-section-heading,
  #ownerApGlobalQueueSection .owner-ap-section-heading{align-items:flex-start!important}
}


/* Owner AutoPost: match the dark navy / teal menu bar, no functional changes. */
html[data-owner-page="autopost"] #ownerAutopostControl{
 --ap-v0-ink:#ecf9ff;--ap-v0-muted:#9fb9c9;--ap-v0-line:#24526b;
 --ap-v0-soft:#0b2132;--ap-v0-soft-2:#0d2b37;
 --ap-v0-accent:#20bb86;--ap-v0-accent-dark:#12795e;
 --ap-v0-shadow:0 8px 28px rgba(0,7,22,.22)
}
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-business-switcher,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposeSection,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueSection{
 background:linear-gradient(180deg,#0a2135,#081b2d)!important;
 border:1px solid #28516a!important;color:#edfaff!important;
 box-shadow:0 8px 24px #030c1b44!important
}
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-current strong,
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-business-tab,
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-section-heading h3{
 color:#edfcff!important
}
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-eyebrow{color:#64e8b5!important}
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-current small,
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-summary small,
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-tab-copy small,
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-section-heading p{
 color:#a9c4d1!important
}
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-business-tab{
 background:#081b2f!important;border-color:#275676!important
}
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-business-tab[data-active="1"]{
 background:linear-gradient(120deg,#103b42,#0b2b3c)!important;
 border:2px solid #25c88e!important;box-shadow:0 0 12px #19caa729!important
}
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-summary span,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposerChannelSummary{
 background:#0b2836!important;border-color:#2b5e67!important;color:#e4fcf5!important
}
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-summary b{color:#80f6c1!important}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposerChannelSummary .owner-ap-channel-summary-head b{color:#c8ffeb!important}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposerChannelSummary .owner-ap-channel-summary-head small{color:#a3c2bc!important}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueRefresh{
 background:#0e3040!important;border-color:#37697b!important;color:#c9f5e8!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueSection .owner-ap-global-queue-card{
 background:#0a2335!important;border-color:#25526c!important;color:#e9f9ff!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueSection .owner-ap-global-queue-top b{color:#f3ffff!important}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueSection .owner-ap-global-queue-copy>small,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueSection .owner-ap-global-queue-meta{color:#a3bbca!important}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueSection .owner-ap-global-queue-chip{
 background:#0d2b3b!important;border-color:#306175!important;color:#d3f9ed!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueSection .owner-ap-global-queue-chip small{color:#a8c8c3!important}


/* Remove remaining white surfaces from Owner AutoPost while retaining brand platform icons. */
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-business-switcher .owner-ap-v0-summary span,
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-select-wrap select,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposerChannelSummary .owner-ap-platform-button,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposerChannelSummary .owner-ap-platform-status,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueList,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueSection .owner-ap-global-queue-wait,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueSection .owner-ap-global-queue-thumb{
 background:#0d293a!important;color:#edfaff!important;border-color:#285d72!important
}
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-business-tab:hover{
 background:#10334a!important
}
html[data-owner-page="autopost"] #ownerAutopostControl .owner-ap-v0-business-tab .owner-ap-v0-tab-avatar{
 background:#19394a!important;color:#d3faec!important;border-color:#396c74!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueSection .owner-ap-global-queue-list,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApGlobalQueueList .owner-ap-global-queue-empty{
 background:#0a1e30!important;color:#b5d0dc!important
}
html[data-owner-page="autopost"] #ownerAutopostControl>.owner-ap-feedback{
 background:#112e39!important;color:#b5e9d2!important;border-color:#295f68!important
}


/* Owner AutoPost New Post Wizard — remove V0 light-theme overrides only in composer. */
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer{
 background:#091c2c!important;color:#e9f6ff!important;border-color:#28546b!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer .owner-ap-step{
 background:#102b3b!important;color:#edf9ff!important;
 border-color:#2c586a!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer .owner-ap-step-title b,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer .owner-ap-label{
 color:#edfbff!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer .owner-ap-step-title small{
 color:#a7c5d0!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer .owner-ap-mode-tabs,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer .owner-ap-post-tabs,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer .owner-ap-content-type-card,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer .owner-ap-plan-goal-grid button{
 background:#0b2435!important;color:#e8faff!important;
 border-color:#2b5b72!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer .owner-ap-content-type-card[data-active="1"],
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer .owner-ap-plan-goal-grid button[data-active="1"]{
 background:#12423e!important;border-color:#25c88e!important;color:#f1fff8!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer textarea,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer input,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer select{
 background:#0b2232!important;border-color:#356176!important;color:#eefaff!important
}
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer input::placeholder,
html[data-owner-page="autopost"] #ownerAutopostControl #ownerApComposer textarea::placeholder{
 color:#95b3c2!important
}


/* Owner V58: hide the legacy business selector at first paint, independent of async init. */
html[data-owner-page="autopost"] #ownerAutopostControl > nav.owner-ap-tabs,
html[data-owner-page="autopost"] #ownerAutopostControl > nav.owner-ap-tabs + section.owner-ap-section{
 display:none!important;
}
