#ownerAutopostControl{display:grid;gap:18px;font-size:15px}
#ownerAutopostControl .owner-autopost-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
#ownerAutopostControl .owner-autopost-title{display:grid;gap:7px}
#ownerAutopostControl .owner-autopost-title small{color:#68f6d0;font-size:12px;font-weight:900;letter-spacing:.12em}
#ownerAutopostControl .owner-autopost-title h3{margin:0;color:#f0f8ff;font-size:28px;line-height:1.2}
#ownerAutopostControl .owner-autopost-title p{margin:0;color:#b6c9d9;font-size:16px;line-height:1.6}
.owner-autopost-ready-badge{display:inline-flex;align-items:center;min-height:34px;padding:7px 12px;border:1px solid #197053;border-radius:999px;background:#073024;color:#8df4cf;font-size:13px;font-weight:900;white-space:nowrap}
.owner-autopost-step{display:grid;gap:9px}
.owner-autopost-step>b,.owner-autopost-section-title b{color:#f0f8ff;font-size:18px}
.owner-autopost-section-title span{display:block;margin-top:4px;color:#9fb5c8;font-size:14px}
.owner-autopost-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:10px}
.owner-autopost-toolbar select,.owner-autopost-toolbar button{min-height:50px;border:1px solid #2b6386;border-radius:12px;background:#071a2f;color:#f1f9ff;padding:10px 13px;font-size:16px}
.owner-autopost-toolbar select{font-weight:800}
.owner-autopost-toolbar button{font-weight:900;cursor:pointer}
.owner-autopost-toolbar button:disabled,.owner-autopost-toolbar select:disabled{opacity:.5;cursor:not-allowed}
.owner-autopost-feedback{padding:12px 14px;border:1px solid #1d4e69;border-radius:12px;background:#061526;color:#b7c9d8;font-size:14px;line-height:1.5}
.owner-autopost-feedback.ok{border-color:#197053;color:#83efc8}.owner-autopost-feedback.bad{border-color:#783647;color:#ffb1bf}
.owner-autopost-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.owner-autopost-summary>div{padding:13px;border:1px solid #1d4665;border-radius:13px;background:linear-gradient(180deg,#071a30,#061325)}
.owner-autopost-summary span{display:block;color:#94adc1;font-size:13px;font-weight:700}
.owner-autopost-summary strong{display:block;margin-top:5px;color:#ebf8ff;font-size:27px;line-height:1.2}
.owner-autopost-section{display:grid;gap:10px}
.owner-autopost-posts{display:grid;gap:12px}
.owner-autopost-post{display:grid;gap:12px;padding:15px;border:1px solid #1f4b69;border-radius:14px;background:linear-gradient(180deg,#07182b,#061426)}
.owner-autopost-post-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.owner-autopost-post-title{display:grid;gap:4px}
.owner-autopost-post-title b{color:#eef8ff;font-size:17px}
.owner-autopost-post-title span{color:#9fb6c9;font-size:13px}
.owner-autopost-post-caption{padding:12px;border:1px solid #173c56;border-radius:11px;background:#061221;color:#d1deea;font-size:15px;line-height:1.65;white-space:pre-wrap}
.owner-autopost-state{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border:1px solid #31536a;border-radius:999px;background:#08182a;color:#b8cada;font-size:12px;font-weight:900;white-space:nowrap}
.owner-autopost-state.pass{border-color:#167355;color:#7cf1c2}.owner-autopost-state.fail{border-color:#7b3548;color:#ffadbb}.owner-autopost-state.queued{border-color:#675bb5;color:#d0caff}
.owner-autopost-actions{display:flex;gap:9px;flex-wrap:wrap}
.owner-autopost-actions button{min-height:46px;padding:10px 14px;border:1px solid #27694f;border-radius:11px;background:#073024;color:#91f4cf;font-size:15px;font-weight:900;cursor:pointer}
.owner-autopost-actions button.publish-intent{border-color:#4b8f73;background:#0b3b2c;color:#a0f7d7}
.owner-autopost-actions button.publish-intent.secondary{border-color:#665bb8;background:#17123c;color:#ddd7ff}
.owner-autopost-actions button:disabled{opacity:.35;cursor:not-allowed}
.owner-autopost-system,.owner-autopost-row-system{border:1px solid #1b4665;border-radius:12px;background:#061426}
.owner-autopost-system>summary,.owner-autopost-row-system>summary{cursor:pointer;color:#b8c9d7;font-weight:800;font-size:14px;padding:11px 13px}
.owner-autopost-system-body{display:grid;gap:10px;padding:0 13px 13px}
.owner-autopost-system-body>p{margin:0;color:#8fa8bc;font-size:13px;line-height:1.5}
.owner-autopost-row-system{border-color:#173c56;background:#061221}
.owner-autopost-row-system-body{display:flex;gap:8px;flex-wrap:wrap;padding:0 11px 11px}
.owner-autopost-row-system-body span{padding:5px 8px;border-radius:8px;background:#0a1b2c;color:#94aabd;font-size:12px}
.owner-autopost-campaigns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.owner-autopost-campaign{padding:11px;border:1px solid #1b4665;border-radius:11px;background:#061426}
.owner-autopost-campaign b{display:block;color:#eaf7ff;font-size:14px}.owner-autopost-campaign span{display:block;margin-top:4px;color:#91aabd;font-size:12px}
.owner-autopost-empty{padding:18px;color:#94aabd;text-align:center;font-size:15px}
.owner-autopost-policy{padding:12px 14px;border:1px solid #665928;border-radius:11px;background:#211d08;color:#efe29b;font-size:14px;line-height:1.5}
@media(max-width:900px){.owner-autopost-summary{grid-template-columns:repeat(2,1fr)}.owner-autopost-campaigns{grid-template-columns:1fr}}
@media(max-width:650px){
  #ownerAutopostControl{gap:16px;font-size:16px}
  #ownerAutopostControl .owner-autopost-head{flex-direction:column}
  #ownerAutopostControl .owner-autopost-title h3{font-size:26px}
  #ownerAutopostControl .owner-autopost-title p{font-size:17px}
  .owner-autopost-toolbar{grid-template-columns:1fr}
  .owner-autopost-toolbar select,.owner-autopost-toolbar button{min-height:54px;font-size:17px}
  .owner-autopost-summary{grid-template-columns:1fr 1fr}
  .owner-autopost-summary span{font-size:14px}.owner-autopost-summary strong{font-size:28px}
  .owner-autopost-post{padding:14px}
  .owner-autopost-post-top{align-items:flex-start}
  .owner-autopost-post-title b{font-size:18px}
  .owner-autopost-post-caption{font-size:16px}
  .owner-autopost-actions{display:grid;grid-template-columns:1fr}
  .owner-autopost-actions button{width:100%;min-height:52px;font-size:16px}
  .owner-autopost-policy,.owner-autopost-feedback{font-size:15px}
}

#ownerAutopostControl{display:grid;gap:16px;min-width:0;color:#eff7ff;font-size:16px}
#ownerAutopostControl *{box-sizing:border-box}
#ownerAutopostControl button,#ownerAutopostControl input,#ownerAutopostControl textarea{font:inherit}
.owner-ap-hero{position:relative;overflow:hidden;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;min-height:154px;padding:22px 24px;border:1px solid #255a92;border-radius:20px;background:radial-gradient(ellipse at 86% 20%,rgba(19,180,255,.28),transparent 34%),linear-gradient(118deg,#101934 0%,#092a52 58%,#0b1330 100%);box-shadow:0 15px 38px #02091680}
.owner-ap-brand{display:flex;align-items:center;gap:10px;z-index:1}.owner-ap-brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#22f4d0,#287aff);font-size:22px;font-weight:1000;color:#05172a}.owner-ap-brand strong,.owner-ap-brand small{display:block}.owner-ap-brand strong{font-size:18px}.owner-ap-brand small{color:#64e9ef;font-size:9px;font-weight:900;letter-spacing:.1em}
.owner-ap-hero-copy{position:absolute;left:24px;bottom:17px}.owner-ap-hero-copy>span,.owner-ap-kicker{color:#53e9d4;font-size:11px;font-weight:900;letter-spacing:.14em}.owner-ap-hero-copy h2{margin:2px 0;font-size:34px;line-height:1.1}.owner-ap-hero-copy p{margin:4px 0 0;color:#bed4e9}.owner-ap-hero-orb{position:absolute;right:9%;top:18px;display:grid;place-items:center;width:95px;height:95px;border:1px solid #4bdcf5;border-radius:25px;background:linear-gradient(145deg,#187cf5,#45d6fa);box-shadow:0 0 35px #20baff55;font-size:64px;font-weight:900}
.owner-ap-tabs,.owner-ap-post-tabs,.owner-ap-mode-tabs{display:flex;gap:8px;overflow:auto;padding:5px;border:1px solid #294566;border-radius:14px;background:#0a1830}
.owner-ap-tabs button,.owner-ap-post-tabs button,.owner-ap-mode-tabs button{flex:1;min-width:max-content;min-height:52px;padding:10px 16px;border:1px solid transparent;border-radius:10px;background:transparent;color:#d7e4f1;font-weight:800;cursor:pointer}
.owner-ap-tabs button[data-active="1"],.owner-ap-post-tabs button[data-active="1"],.owner-ap-mode-tabs button[data-active="1"]{border-color:#31f0b2;background:linear-gradient(110deg,#073e3b,#104b6e);box-shadow:0 0 16px #21eaba36;color:#f4ffff}
.owner-ap-section{min-width:0;padding:18px;border:1px solid #244466;border-radius:18px;background:linear-gradient(145deg,#0c1b34,#0a1429)}
.owner-ap-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.owner-ap-section-heading h3{margin:0;font-size:22px}.owner-ap-section-heading p{margin:4px 0 0;color:#9eb8d0;font-size:14px}
.owner-ap-business-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.owner-ap-business-card{display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;gap:7px 10px;min-width:0;min-height:112px;padding:13px;border:1px solid #34516f;border-radius:14px;background:#0c1b31;color:#f2f7fd;text-align:left;cursor:pointer}
.owner-ap-business-card[data-selected="1"]{border:2px solid #36efba;box-shadow:0 0 18px #22efb644,inset 0 0 20px #1a8c7950}
.owner-ap-business-logo{grid-row:1 / span 2;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:linear-gradient(145deg,#113765,#061226);color:#48eed4;font-size:22px;font-weight:900}
.owner-ap-business-main{min-width:0}.owner-ap-business-main b,.owner-ap-business-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.owner-ap-business-main b{font-size:16px}.owner-ap-business-main small{margin-top:2px;color:#aabdd1;font-size:12px}
.owner-ap-connect-state{grid-column:2;font-size:12px;font-weight:800}.owner-ap-connect-state.connected{color:#38efb3}.owner-ap-connect-state.reconnect{color:#ff9f6e}.owner-ap-connect-state.disconnected{color:#ffd768}.owner-ap-post-count{display:none}
.owner-ap-workflow-progress{grid-column:1 / -1;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:9px;padding:8px;border:1px solid #2d5c83;border-radius:11px;background:#08182b;color:#dceeff}
.owner-ap-workflow-progress[hidden]{display:none}.owner-ap-workflow-progress[data-state="running"]{border-color:#456f9b}.owner-ap-workflow-progress[data-state="ready"]{border-color:#278b69;background:#08251f}.owner-ap-workflow-progress[data-state="failed"]{border-color:#995166;background:#2a1420}
.owner-ap-workflow-thumb,.owner-ap-workflow-wait{width:48px;height:48px;border-radius:9px;background:#071426}.owner-ap-workflow-thumb{display:block;object-fit:cover}.owner-ap-workflow-thumb.is-loading{opacity:.6;animation:ownerApImagePulse 1.1s ease-in-out infinite alternate}.owner-ap-workflow-thumb.is-fallback{object-fit:contain;padding:5px}.owner-ap-workflow-wait{display:grid;place-items:center;font-size:20px}
.owner-ap-workflow-copy{display:grid;gap:3px;min-width:0}.owner-ap-workflow-copy b,.owner-ap-workflow-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.owner-ap-workflow-copy b{font-size:12px}.owner-ap-workflow-copy small{color:#9fbad1;font-size:11px}
.owner-ap-business-actions,.owner-ap-compose-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.owner-ap-primary,.owner-ap-secondary,.owner-ap-danger{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 20px;border:1px solid transparent;border-radius:12px;font-weight:900;cursor:pointer;transition:transform .15s ease,filter .15s ease}
.owner-ap-primary{background:linear-gradient(105deg,#6c39f4,#0d9be7 80%,#19c9dc);box-shadow:0 7px 20px #1267e94d;color:white}
.owner-ap-business-actions .owner-ap-primary:first-child{background:linear-gradient(110deg,#742be7,#4b39ed);box-shadow:0 7px 20px #6736e755}
.owner-ap-secondary{border-color:#426183;background:#111f37;color:#edf6ff}
.owner-ap-danger{border-color:rgba(255,88,126,.45);color:#ffb2c3;background:rgba(63,15,31,.66)}
.owner-ap-primary:hover,.owner-ap-secondary:hover,.owner-ap-danger:hover{filter:brightness(1.15);transform:translateY(-1px)}.owner-ap-primary:disabled,.owner-ap-secondary:disabled,.owner-ap-danger:disabled{opacity:.45;cursor:not-allowed;transform:none}
.owner-ap-feedback{padding:11px 14px;border:1px solid #35516d;border-radius:11px;background:#0a1830;color:#bed3e6;font-size:14px}.owner-ap-feedback.ok{border-color:#218a67;background:#07281f;color:#8bf4cb}.owner-ap-feedback.bad{border-color:#b14a61;background:#321521;color:#ffc0cb}
.owner-ap-compose-section{background:linear-gradient(120deg,#2c28a0 0%,#123b81 36%,#0a1a32 100%);border-color:#4a68d0}
.owner-ap-composer{display:grid;gap:11px;padding:15px;border:1px solid #406389;border-radius:15px;background:#09172be8}.owner-ap-composer[hidden],.owner-ap-preview[hidden]{display:none}
.owner-ap-label{font-weight:850;color:#e6f4ff}.owner-ap-composer textarea,.owner-ap-edit-caption{width:100%;min-height:96px;resize:vertical;padding:13px;border:1px solid #3a5774;border-radius:11px;background:#071429;color:#fff;line-height:1.55}
.owner-ap-composer textarea:focus,.owner-ap-edit-caption:focus{outline:2px solid #34dfc1;border-color:transparent}
.owner-ap-post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.owner-ap-post-card{display:grid;grid-template-columns:minmax(100px,34%) minmax(0,1fr);gap:13px;min-width:0;padding:12px;border:1px solid #2c4765;border-radius:16px;background:linear-gradient(145deg,#0d1c34,#09152a)}
.owner-ap-thumb{width:100%;height:100%;min-height:190px;max-height:280px;object-fit:cover;border-radius:11px;background:#071426}
.owner-ap-thumb.is-loading,.owner-ap-preview-image.is-loading{opacity:.6;animation:ownerApImagePulse 1.1s ease-in-out infinite alternate}.owner-ap-thumb.is-fallback,.owner-ap-preview-image.is-fallback{object-fit:contain;padding:10px}@keyframes ownerApImagePulse{from{opacity:.42}to{opacity:.78}}
.owner-ap-post-body{display:grid;align-content:start;gap:11px;min-width:0}.owner-ap-post-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.owner-ap-post-top b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.owner-ap-state{flex:none;padding:5px 9px;border:1px solid #328e70;border-radius:999px;color:#82f4c6;font-size:12px;font-weight:800}
.owner-ap-caption{display:-webkit-box;overflow:hidden;margin:0;color:#d8e6f4;line-height:1.55;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.owner-ap-post-actions{display:flex;flex-wrap:wrap;gap:7px}.owner-ap-post-actions button{flex:1;min-width:125px;min-height:48px;padding:9px;border-radius:10px;font-size:13px}
.owner-ap-preview-card{display:grid;grid-template-columns:minmax(220px,40%) minmax(0,1fr);gap:20px;padding:18px;border:1px solid #3671ad;border-radius:18px;background:linear-gradient(135deg,#0c1930,#09284b)}
.owner-ap-preview-image{width:100%;max-height:520px;object-fit:contain;border-radius:12px;background:#071426}.owner-ap-preview-copy{display:grid;align-content:start;gap:12px}.owner-ap-preview-copy h3{margin:0;font-size:21px}.owner-ap-cta{color:#a8c0d9}
.owner-ap-system{padding:12px 15px;border:1px solid #304862;border-radius:12px;background:#09152a;color:#d3dfec}.owner-ap-system summary,.owner-ap-system-row summary{min-height:38px;padding:7px;font-weight:800;cursor:pointer}.owner-ap-system>p{color:#9db3c7}.owner-ap-system-row{display:grid;gap:4px;padding:8px;border-top:1px solid #263a52;color:#9eb6cd;font-size:12px}
.owner-ap-empty{grid-column:1/-1;display:grid;place-items:center;min-height:82px;padding:15px;border:1px dashed #426180;border-radius:12px;color:#a8bfd5;text-align:center}
@media(max-width:1000px){.owner-ap-business-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-ap-post-grid{grid-template-columns:1fr}}

@media(max-width:1180px){
  #ownerAutopostControl .owner-ap-image-lightbox{padding:24px}
  #ownerAutopostControl .owner-ap-image-lightbox-img{max-width:72vw;max-height:60dvh}
}
@media(max-width:640px){#ownerAutopostControl{gap:12px;font-size:16px}.owner-ap-hero{min-height:150px;padding:15px}.owner-ap-hero-copy{left:16px;bottom:15px}.owner-ap-hero-copy h2{font-size:29px}.owner-ap-hero-orb{right:6%;top:25px;width:67px;height:67px;border-radius:18px;font-size:46px}.owner-ap-tabs,.owner-ap-post-tabs{gap:5px}.owner-ap-tabs button,.owner-ap-post-tabs button{min-height:54px;padding:9px 11px;font-size:13px}.owner-ap-section{padding:13px}.owner-ap-section-heading h3{font-size:20px}.owner-ap-business-grid{grid-template-columns:1fr 1fr;gap:8px}.owner-ap-business-card{grid-template-columns:35px minmax(0,1fr);min-height:108px;padding:9px;gap:6px}.owner-ap-business-logo{width:34px;height:34px;font-size:18px}.owner-ap-business-main b{font-size:14px}.owner-ap-business-main small,.owner-ap-connect-state{font-size:11px}.owner-ap-primary,.owner-ap-secondary{min-height:52px;padding:11px 14px}.owner-ap-business-actions button{flex:1 1 100%}.owner-ap-post-card,.owner-ap-preview-card{grid-template-columns:1fr}.owner-ap-thumb{height:auto;min-height:0;max-height:none;aspect-ratio:4/5}.owner-ap-preview-image{max-height:60vh}.owner-ap-post-actions{display:grid;grid-template-columns:1fr 1fr}.owner-ap-post-actions button{min-width:0;min-height:52px;font-size:12px}.owner-ap-mode-tabs button{min-height:52px;padding:8px;font-size:13px}}
@media(max-width:380px){.owner-ap-business-grid{grid-template-columns:1fr}.owner-ap-tabs button,.owner-ap-post-tabs button{font-size:12px;padding:8px}.owner-ap-hero-orb{width:54px;height:54px;font-size:38px}}

.owner-ap-business-create{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:end;gap:9px;width:100%;padding:13px;border:1px solid #4c58b8;border-radius:13px;background:#0b1730}.owner-ap-business-create .owner-ap-label{grid-column:1/-1}.owner-ap-business-create input{min-width:0;min-height:52px;padding:10px 12px;border:1px solid #3a5774;border-radius:10px;background:#071429;color:#fff}.owner-ap-business-create input:focus{outline:2px solid #34dfc1;border-color:transparent}@media(max-width:640px){.owner-ap-business-create{grid-template-columns:1fr 1fr}.owner-ap-business-create .owner-ap-label,.owner-ap-business-create input{grid-column:1/-1}}


/* Owner AutoPost UX polish v3 */
#ownerAutopostControl .owner-ap-business-logo{
  width:58px!important;height:58px!important;display:grid!important;place-items:center!important;
  overflow:hidden!important;border-radius:14px!important;background:#07182b!important;
  border:1px solid #2a5577!important;padding:3px!important;
}
#ownerAutopostControl .owner-ap-business-logo-img{
  display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;
  border-radius:10px!important;background:#fff!important;
}
#ownerAutopostControl .owner-ap-logo-fallback{font-size:22px!important;font-weight:900!important;color:#9fffe7!important}
#ownerAutopostControl .owner-ap-business-card{grid-template-columns:58px minmax(0,1fr)!important}
#ownerAutopostControl .owner-ap-plan-select{
  width:100%;min-height:52px;border:1px solid #2b6386;border-radius:12px;
  background:#071a2f;color:#f1f9ff;padding:10px 13px;font-size:16px;font-weight:900;
}
#ownerAutopostControl .owner-ap-plan-help{
  display:block;margin:-4px 0 4px;color:#93abc0;font-size:13px;line-height:1.55
}
#ownerAutopostControl .owner-ap-pager{
  display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;
  padding:4px 0 2px;
}
#ownerAutopostControl .owner-ap-page-btn{
  min-width:42px;min-height:42px;border:1px solid #2a5577;border-radius:10px;
  background:#07182b;color:#dcecff;font-weight:900;cursor:pointer
}
#ownerAutopostControl .owner-ap-page-btn[data-active="1"]{
  border-color:#71f7d5;background:linear-gradient(135deg,#1e8d70,#3f6fc7);color:#fff;
  box-shadow:0 0 16px #35f0be35
}
#ownerAutopostControl .owner-ap-page-btn:disabled{opacity:.35;cursor:not-allowed}
#ownerAutopostControl .owner-ap-page-info{color:#9eb4c6;font-size:13px;font-weight:800;margin-left:4px}
#ownerAutopostControl .owner-ap-thumb.is-fallback{
  object-fit:contain!important;padding:18px!important;background:#07182b!important
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-business-logo{width:48px!important;height:48px!important;border-radius:12px!important}
  #ownerAutopostControl .owner-ap-business-card{grid-template-columns:48px minmax(0,1fr)!important}
  #ownerAutopostControl .owner-ap-plan-select{min-height:54px;font-size:17px}
  #ownerAutopostControl .owner-ap-page-info{width:100%;text-align:center;margin-left:0}
}


/* Owner AutoPost final polish v4 */
#ownerAutopostControl .owner-ap-one-day-timing{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:2px 0 8px;
}
#ownerAutopostControl .owner-ap-one-day-timing[hidden]{display:none!important}
#ownerAutopostControl .owner-ap-one-day-timing label{
  display:grid;gap:6px;color:#9fb6ca;font-size:12px;font-weight:800;
}
#ownerAutopostControl .owner-ap-one-day-timing input{
  width:100%;min-height:48px;border:1px solid #2b6386;border-radius:12px;
  background:#071a2f;color:#f1f9ff;padding:10px 12px;font-size:15px;
}
#ownerAutopostControl .owner-ap-planned-time{
  display:block;margin:2px 0 8px;color:#8ff3d7;font-size:12px;font-weight:800;
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-one-day-timing{grid-template-columns:1fr}
}


/* Owner AutoPost guided UX v6 */
#ownerAutopostControl .owner-ap-feedback.degraded{
  border-color:#8c6a21;background:#2b210c;color:#ffe7a8
}
#ownerAutopostControl .owner-ap-guided{
  gap:16px;padding:18px;border-color:#3f70a5;
  background:
    radial-gradient(circle at 0 0,#103a6640,transparent 36%),
    linear-gradient(145deg,#08182d,#071326 75%);
}
#ownerAutopostControl .owner-ap-mode-tabs button{
  display:grid;gap:2px;place-items:center;min-height:68px
}
#ownerAutopostControl .owner-ap-mode-tabs button small{
  display:block;color:#8faac2;font-size:11px;font-weight:650
}
#ownerAutopostControl .owner-ap-mode-tabs button[data-active="1"] small{color:#d9fff5}
#ownerAutopostControl .owner-ap-step{
  display:grid;gap:12px;padding:15px;border:1px solid #234866;border-radius:15px;
  background:linear-gradient(145deg,#0a1a31dd,#09162aee)
}
#ownerAutopostControl .owner-ap-step-title{
  display:flex;align-items:flex-start;gap:10px
}
#ownerAutopostControl .owner-ap-step-title>span{
  flex:0 0 29px;width:29px;height:29px;display:grid;place-items:center;border-radius:50%;
  background:linear-gradient(135deg,#1ca9e8,#5c4df5);box-shadow:0 0 15px #2a8be64f;
  color:white;font-weight:950
}
#ownerAutopostControl .owner-ap-step-title>div{display:grid;gap:2px;min-width:0}
#ownerAutopostControl .owner-ap-step-title b{font-size:16px;color:#f3f8ff}
#ownerAutopostControl .owner-ap-step-title small{color:#90abc3;font-size:12px;line-height:1.45}
#ownerAutopostControl .owner-ap-step-title em{font-style:normal;color:#8da9c1;font-weight:650;font-size:12px}
#ownerAutopostControl .owner-ap-plan-select{
  position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;
  pointer-events:none!important;overflow:hidden!important
}
#ownerAutopostControl .owner-ap-horizon-chips{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px
}
#ownerAutopostControl .owner-ap-horizon-chips button{
  min-height:48px;border:1px solid #325879;border-radius:12px;background:#0b1c34;
  color:#dbeaff;font-weight:900;font-size:15px;cursor:pointer
}
#ownerAutopostControl .owner-ap-horizon-chips button[data-active="1"]{
  border-color:#4ce9f6;background:linear-gradient(110deg,#1267e7,#1bb5d5);
  box-shadow:0 0 18px #1ab7eb42;color:white
}
#ownerAutopostControl .owner-ap-horizon-chips button:disabled{
  opacity:.38;cursor:not-allowed
}
#ownerAutopostControl .owner-ap-auto-plan-info{
  display:grid;gap:5px;padding:12px 14px;border:1px solid #1c806f;border-radius:12px;
  background:linear-gradient(135deg,#082b2d,#0b2742);color:#c8fff2
}
#ownerAutopostControl .owner-ap-auto-plan-info[hidden]{display:none!important}
#ownerAutopostControl .owner-ap-auto-plan-info b{color:#6ff1ca}
#ownerAutopostControl .owner-ap-auto-plan-info span{font-size:12px;line-height:1.55;color:#aed8d2}
#ownerAutopostControl .owner-ap-choice-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px
}
#ownerAutopostControl .owner-ap-choice-grid button{
  display:grid;align-content:start;gap:5px;min-height:108px;padding:12px 10px;
  border:1px solid #31516e;border-radius:13px;background:linear-gradient(145deg,#0b1a30,#0a1629);
  color:#ecf5ff;text-align:left;cursor:pointer;transition:.15s ease
}
#ownerAutopostControl .owner-ap-choice-grid button>span{font-size:24px;line-height:1}
#ownerAutopostControl .owner-ap-choice-grid button>b{font-size:13px;line-height:1.35}
#ownerAutopostControl .owner-ap-choice-grid button>small{font-size:11px;line-height:1.35;color:#8fa9bf}
#ownerAutopostControl .owner-ap-choice-grid button[data-active="1"]{
  border-color:#38e8f1;background:linear-gradient(145deg,#123e69,#112b55);
  box-shadow:0 0 18px #1fd6e430,inset 0 0 18px #1f84d428
}
#ownerAutopostControl .owner-ap-choice-grid button:disabled{
  opacity:.46;cursor:not-allowed;filter:saturate(.55)
}
#ownerAutopostControl .owner-ap-topic-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px
}
#ownerAutopostControl .owner-ap-topic-choice{
  display:flex;align-items:center;gap:9px;min-height:64px;padding:10px 12px;
  border:1px solid #31516e;border-radius:12px;background:linear-gradient(145deg,#091a2e,#091526);
  color:#eaf5ff;text-align:left;cursor:pointer;transition:.15s ease
}
#ownerAutopostControl .owner-ap-topic-choice>span{font-size:20px;line-height:1}
#ownerAutopostControl .owner-ap-topic-choice>b{font-size:12px;line-height:1.35}
#ownerAutopostControl .owner-ap-topic-choice[data-active="1"]{
  border-color:#38e8f1;background:linear-gradient(145deg,#123e69,#112b55);
  box-shadow:0 0 16px #1fd6e42b,inset 0 0 14px #1f84d425
}
#ownerAutopostControl .owner-ap-topic-choice.is-ai{border-color:#347a6f}
#ownerAutopostControl .owner-ap-topic-choice.is-random{border-color:#6b5ec2}
#ownerAutopostControl .owner-ap-topic-choice.is-custom{border-color:#8b5f35}
#ownerAutopostControl .owner-ap-topic-choice.is-more{border-style:dashed;color:#a8c7df}
#ownerAutopostControl .owner-ap-topic-choice:disabled{opacity:.46;cursor:not-allowed;filter:saturate(.55)}
#ownerAutopostControl .owner-ap-topic-selected{
  padding:9px 12px;border:1px solid #276c73;border-radius:10px;background:#082334;color:#9df3e6;
  font-size:12px;font-weight:800
}
#ownerAutopostControl .owner-ap-topic-selected[hidden],
#ownerAutopostControl .owner-ap-topic-custom[hidden]{display:none!important}
#ownerAutopostControl .owner-ap-topic-custom{display:grid;gap:7px}
#ownerAutopostControl .owner-ap-topic-custom label{color:#b8d0e3;font-size:12px;font-weight:900}
#ownerAutopostControl .owner-ap-topic-custom textarea{
  min-height:92px;border:1px solid #3a6384;border-radius:12px;background:#06172a;color:#edf7ff;
  padding:12px 13px;font:inherit;line-height:1.55;resize:vertical
}
#ownerAutopostControl .owner-ap-upload-box{
  display:grid;place-items:center;gap:6px;min-height:124px;padding:18px;
  border:1px dashed #3b85ad;border-radius:14px;background:#07182c;cursor:pointer;text-align:center
}
#ownerAutopostControl .owner-ap-upload-box:hover{border-color:#43e5dc;background:#082037}
#ownerAutopostControl .owner-ap-upload-box input{
  position:absolute;width:1px;height:1px;opacity:0;pointer-events:none
}
#ownerAutopostControl .owner-ap-upload-box>span{font-weight:900;color:#e8fbff}
#ownerAutopostControl .owner-ap-upload-box>small{color:#8ba8bd;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#ownerAutopostControl .owner-ap-caption-guide{background:linear-gradient(145deg,#0b2138,#101932)}
#ownerAutopostControl .owner-ap-caption-example{
  min-height:72px;padding:13px 14px;border:1px solid #304f70;border-radius:12px;
  background:#071427;color:#cde1f4;line-height:1.6;font-size:13px
}
#ownerAutopostControl .owner-ap-caption-guide textarea{
  min-height:140px;border-color:#2f6c8f;background:#06172b
}
#ownerAutopostControl .owner-ap-caption-guide textarea[readonly]{opacity:.78}
#ownerAutopostControl .owner-ap-caption-state{
  display:block;margin-top:-3px;color:#8fb7d5;font-size:12px;line-height:1.5
}
#ownerAutopostControl .owner-ap-pipeline-stages{
  display:flex;flex-wrap:wrap;gap:6px
}
#ownerAutopostControl .owner-ap-pipeline-stages span{
  padding:4px 8px;border:1px solid #315575;border-radius:999px;background:#081a2f;color:#a8c7df;
  font-size:11px;font-weight:800
}
#ownerAutopostControl .owner-ap-generate{
  flex:1 1 360px;min-height:58px;background:linear-gradient(105deg,#10c9e9,#166cf5 48%,#8b35f4);
  box-shadow:0 8px 28px #236ee64f;font-size:16px
}
#ownerAutopostControl .owner-ap-compose-actions .owner-ap-secondary{min-width:130px}
@media(max-width:1100px){
  #ownerAutopostControl .owner-ap-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #ownerAutopostControl .owner-ap-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:720px){
  #ownerAutopostControl .owner-ap-guided{padding:12px}
  #ownerAutopostControl .owner-ap-horizon-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
  #ownerAutopostControl .owner-ap-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #ownerAutopostControl .owner-ap-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #ownerAutopostControl .owner-ap-choice-grid button{min-height:100px}
  #ownerAutopostControl .owner-ap-mode-tabs{display:grid;grid-template-columns:1fr 1fr}
  #ownerAutopostControl .owner-ap-mode-tabs button{min-width:0}
}
@media(max-width:420px){
  #ownerAutopostControl .owner-ap-choice-grid{grid-template-columns:1fr}
  #ownerAutopostControl .owner-ap-topic-grid{grid-template-columns:1fr}
}


/* Owner AutoPost QC live feedback v16 */
#ownerAutopostControl .owner-ap-post-card{position:relative;overflow:hidden}
#ownerAutopostControl .owner-ap-post-card.is-qc-running{
  border-color:#2bb6d9;
  box-shadow:0 0 0 1px #2bb6d944,0 0 28px #1aa8d22b,inset 0 0 24px #0d6d8c1f;
}
#ownerAutopostControl .owner-ap-post-card.is-qc-running::after{
  content:"";position:absolute;left:-35%;top:0;width:28%;height:2px;pointer-events:none;
  background:linear-gradient(90deg,transparent,#6fffe8,#5cb8ff,transparent);
  box-shadow:0 0 12px #56e9ff;
  animation:ownerApQcSweep 1.45s linear infinite;
}
#ownerAutopostControl .owner-ap-state{display:inline-flex;align-items:center;gap:6px;transition:.18s ease}
#ownerAutopostControl .owner-ap-state-running{
  border-color:#2acbdd;background:linear-gradient(120deg,#082d3a,#0c2748);
  color:#9cf7ff;box-shadow:0 0 16px #2acbdd33;
}
#ownerAutopostControl .owner-ap-state-running::before{
  content:"";width:7px;height:7px;border-radius:50%;background:#62f5ea;
  box-shadow:0 0 0 0 #62f5ea99;animation:ownerApQcPulse 1.25s ease-out infinite;
}
#ownerAutopostControl .owner-ap-state-waiting{border-color:#45617f;color:#aac3d9;background:#0a1729}
#ownerAutopostControl .owner-ap-state-pass{border-color:#2a9f73;color:#8bf4cb;background:#08251e}
#ownerAutopostControl .owner-ap-state-fail{border-color:#a84b61;color:#ffc0ca;background:#2c1520}
#ownerAutopostControl .owner-ap-state-stale{border-color:#aa7b2d;color:#ffe4a3;background:#2b220d}
#ownerAutopostControl .owner-ap-state-error{border-color:#a84b61;color:#ffc0ca;background:#2c1520}
#ownerAutopostControl .owner-ap-qc-live-copy{
  color:#9deeea;font-weight:800;padding:7px 9px;border-left:2px solid #2acbdd;
  background:linear-gradient(90deg,#0b324044,transparent);border-radius:4px;
}
#ownerAutopostControl .owner-ap-qc-action.is-running{
  border-color:#2acbdd;background:linear-gradient(115deg,#0a3847,#102b50);
  color:#a8fbff;box-shadow:0 0 15px #2acbdd28;
}
@keyframes ownerApQcPulse{
  0%{box-shadow:0 0 0 0 #62f5ea99;opacity:1}
  70%{box-shadow:0 0 0 8px #62f5ea00;opacity:.82}
  100%{box-shadow:0 0 0 0 #62f5ea00;opacity:1}
}
@keyframes ownerApQcSweep{
  from{left:-35%}
  to{left:110%}
}
@media(prefers-reduced-motion:reduce){
  #ownerAutopostControl .owner-ap-post-card.is-qc-running::after,
  #ownerAutopostControl .owner-ap-state-running::before{animation:none}
}

#ownerAutopostControl .owner-ap-qc-error-copy{
  color:#ffd0d7;
  border-left:2px solid #e25a78;
  background:linear-gradient(90deg,#3a172244,transparent);
  padding:7px 9px;
  border-radius:4px;
  font-weight:800;
}

/* Owner AutoPost v23: scrollable card copy + full-image lightbox */
#ownerAutopostControl .owner-ap-post-copy-scroll{
  display:grid;gap:8px;max-height:250px;min-height:0;overflow-y:auto;overflow-x:hidden;
  padding:2px 8px 4px 2px;overscroll-behavior:contain;scrollbar-gutter:stable;
  border-radius:8px;outline:none
}
#ownerAutopostControl .owner-ap-post-copy-scroll:focus{
  box-shadow:0 0 0 2px #35d9d855
}
#ownerAutopostControl .owner-ap-post-copy-scroll::-webkit-scrollbar{width:8px}
#ownerAutopostControl .owner-ap-post-copy-scroll::-webkit-scrollbar-track{background:#071426;border-radius:999px}
#ownerAutopostControl .owner-ap-post-copy-scroll::-webkit-scrollbar-thumb{background:#315a77;border-radius:999px}
#ownerAutopostControl .owner-ap-post-copy-scroll .owner-ap-caption{
  display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important;
  white-space:pre-wrap;overflow-wrap:anywhere
}
#ownerAutopostControl .owner-ap-thumb-wrap{
  position:relative;align-self:start;width:100%;min-height:190px;max-height:280px;
  overflow:hidden;border-radius:11px;background:#071426
}
#ownerAutopostControl .owner-ap-thumb-wrap .owner-ap-thumb{
  display:block;width:100%;height:100%;min-height:190px;max-height:280px;border-radius:11px;
  object-fit:cover;cursor:zoom-in
}
#ownerAutopostControl .owner-ap-thumb:focus{
  outline:3px solid #47e6da;outline-offset:-3px
}
#ownerAutopostControl .owner-ap-thumb-zoom{
  position:absolute;right:8px;bottom:8px;z-index:2;padding:5px 8px;border:1px solid #ffffff44;
  border-radius:999px;background:#061426d9;color:#f3fbff;font-size:11px;font-weight:900;
  pointer-events:auto;cursor:zoom-in;backdrop-filter:blur(5px)
}
#ownerAutopostControl .owner-ap-image-lightbox[hidden]{display:none!important}
#ownerAutopostControl .owner-ap-image-lightbox{
  position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:24px;
  background:#020711eF;backdrop-filter:blur(10px)
}
#ownerAutopostControl .owner-ap-image-lightbox-img{
  display:block;max-width:min(64vw,820px);max-height:64dvh;width:auto;height:auto;
  object-fit:contain;border-radius:12px;background:#071426;box-shadow:0 24px 70px #000b
}
#ownerAutopostControl .owner-ap-image-lightbox-close{
  position:fixed;top:max(16px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));
  z-index:2;width:48px;height:48px;border:1px solid #ffffff44;border-radius:50%;
  background:#0b1930e8;color:#fff;font-size:30px;line-height:1;cursor:pointer
}
#ownerAutopostControl .owner-ap-image-lightbox-help{
  position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);
  color:#bcd2e5;font-size:12px;white-space:nowrap
}
body.owner-ap-lightbox-open{overflow:hidden}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-image-lightbox{z-index:70}
  #ownerAutopostControl .owner-ap-post-copy-scroll{max-height:320px}
  #ownerAutopostControl .owner-ap-thumb-wrap{min-height:0;max-height:none;aspect-ratio:4/5}
  #ownerAutopostControl .owner-ap-thumb-wrap .owner-ap-thumb{min-height:0;max-height:none;aspect-ratio:4/5}
  #ownerAutopostControl .owner-ap-image-lightbox{padding:18px}
  #ownerAutopostControl .owner-ap-image-lightbox-img{max-width:82vw;max-height:58dvh}
}

#ownerAutopostControl .owner-ap-post-actions button:disabled{
  opacity:.38;
  cursor:not-allowed;
  filter:saturate(.45);
  box-shadow:none;
}

#ownerAutopostControl .owner-ap-post-timeline{
  display:flex;gap:8px;flex-wrap:wrap;margin-top:2px
}
#ownerAutopostControl .owner-ap-post-time{
  display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;
  border:1px solid #284c68;border-radius:999px;background:#07182a;
  color:#9fb8cc;font-size:12px;font-weight:800
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-post-timeline{display:grid;grid-template-columns:1fr}
  #ownerAutopostControl .owner-ap-post-time{width:100%;border-radius:9px}
}

/* Owner AutoPost v26: high-clarity modern status language */
#ownerAutopostControl .owner-ap-post-card{
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
@media(hover:hover){
  #ownerAutopostControl .owner-ap-post-card:hover{
    transform:translateY(-1px);box-shadow:0 14px 34px #020a1738;
  }
}
#ownerAutopostControl .owner-ap-post-card::before{
  content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:999px;
  background:#35516d;box-shadow:none;transition:.18s ease;
}
#ownerAutopostControl .owner-ap-card-ready::before{background:#39e2a6;box-shadow:0 0 14px #39e2a655}
#ownerAutopostControl .owner-ap-card-scheduled::before{background:#4cb8ff;box-shadow:0 0 14px #4cb8ff55}
#ownerAutopostControl .owner-ap-card-published::before{background:#57f0b8;box-shadow:0 0 14px #57f0b844}
#ownerAutopostControl .owner-ap-card-checking::before{background:#37dff1;box-shadow:0 0 14px #37dff155}
#ownerAutopostControl .owner-ap-card-waiting::before{background:#f5c65b;box-shadow:0 0 14px #f5c65b44}
#ownerAutopostControl .owner-ap-card-failed::before{background:#ff6883;box-shadow:0 0 14px #ff688344}
#ownerAutopostControl .owner-ap-card-override::before{background:#9a7cff;box-shadow:0 0 14px #9a7cff44}
#ownerAutopostControl .owner-ap-card-retired::before{background:#5a6b7a;box-shadow:none}
#ownerAutopostControl .owner-ap-card-retired{opacity:.62}
#ownerAutopostControl .owner-ap-card-current{outline:2px solid #ffcf4d55;outline-offset:-1px}
#ownerAutopostControl .owner-ap-current-badge{
  margin-left:8px;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:950;
  color:#3a2a00;background:linear-gradient(120deg,#ffd975,#ffb84d)
}

#ownerAutopostControl .owner-ap-post-top b{
  font-size:16px;font-weight:950;letter-spacing:.01em;color:#f5fbff
}
#ownerAutopostControl .owner-ap-state{
  min-height:31px;padding:6px 11px;font-size:12.5px;font-weight:950;letter-spacing:.01em
}
#ownerAutopostControl .owner-ap-status-ready{
  border-color:#31c992!important;background:linear-gradient(120deg,#082b25,#0b3c30)!important;
  color:#a3ffd9!important;box-shadow:0 0 16px #31c99228
}
#ownerAutopostControl .owner-ap-status-scheduled{
  border-color:#3d9de2!important;background:linear-gradient(120deg,#0a2540,#0d3354)!important;
  color:#b7e5ff!important;box-shadow:0 0 16px #3d9de22b
}
#ownerAutopostControl .owner-ap-status-published{
  border-color:#2fb47e!important;background:linear-gradient(120deg,#08261f,#0b3528)!important;
  color:#adffdd!important
}
#ownerAutopostControl .owner-ap-status-checking{
  border-color:#33cbd8!important;background:linear-gradient(120deg,#092b37,#0c3345)!important;
  color:#a8fbff!important;box-shadow:0 0 16px #33cbd82b
}
#ownerAutopostControl .owner-ap-status-waiting{
  border-color:#a67c2e!important;background:linear-gradient(120deg,#2b220e,#362a10)!important;
  color:#ffe29a!important
}
#ownerAutopostControl .owner-ap-status-failed{
  border-color:#c9506b!important;background:linear-gradient(120deg,#32151f,#411825)!important;
  color:#ffd0d8!important;box-shadow:0 0 16px #c9506b24
}
#ownerAutopostControl .owner-ap-status-retired{
  border-color:#5a6b7a!important;background:linear-gradient(120deg,#1c2329,#242c33)!important;
  color:#c1cbd3!important;box-shadow:none
}
#ownerAutopostControl .owner-ap-status-override{
  border-color:#8c72ff!important;background:linear-gradient(120deg,#21194a,#2d225f)!important;
  color:#e0d9ff!important;box-shadow:0 0 16px #8c72ff24
}

#ownerAutopostControl .owner-ap-pipeline-stages{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px
}
#ownerAutopostControl .owner-ap-pipeline-stages .owner-ap-stage-chip{
  min-height:34px;display:flex;align-items:center;justify-content:center;padding:7px 9px;
  border:1px solid #315575;border-radius:10px;background:#081a2f;color:#b7ccde;
  font-size:12.5px;font-weight:950;line-height:1.2;text-align:center;letter-spacing:.005em
}
#ownerAutopostControl .owner-ap-stage-chip[data-tone="ready"],
#ownerAutopostControl .owner-ap-stage-chip[data-tone="pass"]{
  border-color:#2b9f77;background:linear-gradient(145deg,#08271f,#0b3429);color:#9df6ce;
  box-shadow:inset 0 0 14px #2b9f7714
}
#ownerAutopostControl .owner-ap-stage-chip[data-tone="waiting"]{
  border-color:#8a6a31;background:linear-gradient(145deg,#29200d,#211b10);color:#f4d98c
}
#ownerAutopostControl .owner-ap-stage-chip[data-tone="running"]{
  border-color:#2cc5d5;background:linear-gradient(145deg,#082b37,#0a3243);color:#a9f9ff;
  box-shadow:0 0 14px #2cc5d522
}
#ownerAutopostControl .owner-ap-stage-chip[data-tone="fail"]{
  border-color:#a94f64;background:linear-gradient(145deg,#2d151e,#351822);color:#ffc3cd
}
#ownerAutopostControl .owner-ap-stage-chip[data-tone="override"]{
  border-color:#846ce6;background:linear-gradient(145deg,#201948,#2a215c);color:#ded7ff
}
#ownerAutopostControl .owner-ap-stage-chip[data-tone="running"]::before{
  content:"";width:7px;height:7px;margin-right:6px;border-radius:50%;background:#67f3f7;
  box-shadow:0 0 0 0 #67f3f78f;animation:ownerApStatusPulse 1.35s ease-out infinite
}

#ownerAutopostControl .owner-ap-post-timeline{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:1px
}
#ownerAutopostControl .owner-ap-post-time{
  min-height:36px;padding:7px 10px;border-radius:10px;font-size:12.5px;font-weight:900;
  line-height:1.25;background:linear-gradient(145deg,#07182a,#0a1e34);border-color:#2d506d;color:#bad0e0
}
#ownerAutopostControl .owner-ap-time-created::before{content:"◷";margin-right:6px;color:#7ebee8}
#ownerAutopostControl .owner-ap-time-publish::before{content:"↗";margin-right:6px;color:#79d2ff}
#ownerAutopostControl .owner-ap-post-status-line[data-tone="ready"]{border-color:#2c9974;color:#9ef2c9;background:#08271f}
#ownerAutopostControl .owner-ap-post-status-line[data-tone="scheduled"]{border-color:#398cc8;color:#b4e4ff;background:#09233b}
#ownerAutopostControl .owner-ap-post-status-line[data-tone="published"]{border-color:#2d9970;color:#a6f5d1;background:#08271f}
#ownerAutopostControl .owner-ap-post-status-line[data-tone="checking"]{border-color:#2fbac7;color:#a6f8ff;background:#082b37}
#ownerAutopostControl .owner-ap-post-status-line[data-tone="waiting"]{border-color:#89692f;color:#f6dc94;background:#28200d}
#ownerAutopostControl .owner-ap-post-status-line[data-tone="failed"]{border-color:#aa4f64;color:#ffc3cd;background:#2e151f}
#ownerAutopostControl .owner-ap-post-status-line[data-tone="override"]{border-color:#846ce6;color:#ded7ff;background:#21194a}
#ownerAutopostControl .owner-ap-post-remaining{
  grid-column:1/-1;justify-content:center;font-size:13px;font-weight:950
}
#ownerAutopostControl .owner-ap-post-remaining[data-tone="scheduled"]{
  border-color:#3e9bd6;background:linear-gradient(90deg,#0a2540,#0b3152);color:#bfe9ff;
  box-shadow:0 0 18px #3e9bd61d
}
#ownerAutopostControl .owner-ap-post-remaining[data-tone="ready"]{border-color:#2c9974;color:#a9f7d2}
#ownerAutopostControl .owner-ap-post-remaining[data-tone="failed"]{border-color:#aa4f64;color:#ffc3cd}
#ownerAutopostControl .owner-ap-post-remaining[data-tone="checking"]{border-color:#2fbac7;color:#acf9ff}
#ownerAutopostControl .owner-ap-post-remaining[data-tone="waiting"]{border-color:#89692f;color:#f6dc94}
#ownerAutopostControl .owner-ap-post-remaining[data-tone="override"]{border-color:#846ce6;color:#ded7ff}

#ownerAutopostControl .owner-ap-preview-draft-state{
  display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:31px;padding:6px 10px;
  border:1px solid #7567e8;border-radius:999px;background:linear-gradient(120deg,#221d55,#29246b);
  color:#d9d4ff;font-size:12px;font-weight:950;letter-spacing:.04em;
  box-shadow:0 0 18px #7567e829
}

@keyframes ownerApStatusPulse{
  0%{box-shadow:0 0 0 0 #67f3f78f}
  70%{box-shadow:0 0 0 7px #67f3f700}
  100%{box-shadow:0 0 0 0 #67f3f700}
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-post-top b{font-size:17px}
  #ownerAutopostControl .owner-ap-state{font-size:13px;min-height:34px}
  #ownerAutopostControl .owner-ap-pipeline-stages{grid-template-columns:1fr}
  #ownerAutopostControl .owner-ap-pipeline-stages .owner-ap-stage-chip{
    justify-content:flex-start;min-height:38px;font-size:13px;padding:8px 11px
  }
  #ownerAutopostControl .owner-ap-post-timeline{grid-template-columns:1fr}
  #ownerAutopostControl .owner-ap-post-time{min-height:40px;font-size:13px;padding:9px 11px}
  #ownerAutopostControl .owner-ap-post-remaining{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){
  #ownerAutopostControl .owner-ap-stage-chip[data-tone="running"]::before{animation:none}
  #ownerAutopostControl .owner-ap-post-card{transition:none}
}

/* Owner AutoPost v27: compact semantic status chips */
#ownerAutopostControl .owner-ap-pipeline-stages{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px
}
#ownerAutopostControl .owner-ap-pipeline-stages .owner-ap-stage-chip{
  width:auto;min-width:0;min-height:28px;display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;padding:4px 8px;border-radius:999px;font-size:12px;line-height:1.15;
  white-space:nowrap
}
#ownerAutopostControl .owner-ap-state{
  width:auto;max-width:100%;min-height:28px;padding:4px 9px;font-size:12px;line-height:1.15;
  white-space:normal;text-align:center
}
#ownerAutopostControl .owner-ap-post-status-line,
#ownerAutopostControl .owner-ap-post-remaining{
  width:max-content;max-width:100%;min-height:28px;padding:4px 8px;justify-self:start
}
/* Keep short status boxes close to the text instead of stretching across the card. */
#ownerAutopostControl .owner-ap-status-waiting,
#ownerAutopostControl .owner-ap-status-published{
  width:max-content;max-width:100%;min-height:26px;padding:3px 8px;align-self:center
}
#ownerAutopostControl .owner-ap-post-status-line[data-tone="waiting"],
#ownerAutopostControl .owner-ap-post-status-line[data-tone="published"]{
  width:max-content;max-width:100%;min-height:28px;padding:4px 8px;justify-self:start
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-pipeline-stages{
    display:flex;grid-template-columns:none;gap:6px
  }
  #ownerAutopostControl .owner-ap-pipeline-stages .owner-ap-stage-chip{
    width:auto;min-height:30px;justify-content:center;font-size:12.5px;padding:5px 9px
  }
  #ownerAutopostControl .owner-ap-state{
    min-height:30px;font-size:12.5px;padding:5px 9px
  }
  #ownerAutopostControl .owner-ap-status-waiting,
  #ownerAutopostControl .owner-ap-status-published{
    min-height:28px;padding:4px 8px
  }
}

/* Owner AutoPost v29: caption readability and hashtag review */
#ownerAutopostControl .owner-ap-post-copy-scroll .owner-ap-caption{
  white-space:pre-wrap;
  line-height:1.68;
  letter-spacing:.002em;
}
#ownerAutopostControl .owner-ap-hashtags{
  margin:2px 0 0;
  padding:8px 10px;
  border:1px solid #256a82;
  border-radius:10px;
  background:linear-gradient(120deg,#071d2d,#082738);
  color:#7ee6ff;
  font-size:12.5px;
  font-weight:850;
  line-height:1.5;
  overflow-wrap:anywhere;
}
#ownerAutopostControl .owner-ap-preview-hashtags{
  padding:9px 11px;
  border:1px solid #256a82;
  border-radius:10px;
  background:#071d2d;
  color:#7ee6ff;
  font-size:13px;
  font-weight:850;
  line-height:1.45;
  overflow-wrap:anywhere;
}
#ownerAutopostControl .owner-ap-edit-caption{
  white-space:pre-wrap;
  line-height:1.65;
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-post-copy-scroll .owner-ap-caption{line-height:1.72}
  #ownerAutopostControl .owner-ap-hashtags,
  #ownerAutopostControl .owner-ap-preview-hashtags{font-size:13px}
}

/* Owner AutoPost v31: persistent selection visibility */
#ownerAutopostControl .owner-ap-selection-summary{
  display:flex;flex-wrap:wrap;gap:7px;padding:10px 12px;border:1px solid #2d6d78;
  border-radius:12px;background:linear-gradient(135deg,#071f31,#0b2d3a);min-height:42px
}
#ownerAutopostControl .owner-ap-selection-chip{
  display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border:1px solid #35d8bf;
  border-radius:999px;background:#0b493f;color:#dffff8;font-size:11px;font-weight:900;
  box-shadow:0 0 12px #26d5b92e;white-space:nowrap
}
#ownerAutopostControl .owner-ap-tabs button,
#ownerAutopostControl .owner-ap-mode-tabs button,
#ownerAutopostControl .owner-ap-horizon-chips button,
#ownerAutopostControl .owner-ap-choice-grid button,
#ownerAutopostControl .owner-ap-topic-choice,
#ownerAutopostControl .owner-ap-business-card{position:relative}
#ownerAutopostControl .owner-ap-tabs button[data-active="1"],
#ownerAutopostControl .owner-ap-mode-tabs button[data-active="1"]{
  border:2px solid #43f1c3;background:linear-gradient(110deg,#075449,#10567b);
  box-shadow:0 0 0 2px #20dcb329,0 0 22px #24e2bd4f
}
#ownerAutopostControl .owner-ap-horizon-chips button[data-active="1"],
#ownerAutopostControl .owner-ap-choice-grid button[data-active="1"],
#ownerAutopostControl .owner-ap-topic-choice[data-active="1"]{
  border:2px solid #55f0d0;background:linear-gradient(145deg,#104e62,#16386f);
  box-shadow:0 0 0 2px #26d7bd25,0 0 22px #1fd6e44d,inset 4px 0 0 #4cf2c8
}
#ownerAutopostControl .owner-ap-business-card[data-selected="1"]{
  border:2px solid #55f0d0;background:linear-gradient(145deg,#10374a,#0c2540);
  box-shadow:0 0 0 2px #26d7bd25,0 0 24px #22efb65c,inset 5px 0 0 #4cf2c8
}
#ownerAutopostControl .owner-ap-business-card[data-selected="1"]::after,
#ownerAutopostControl .owner-ap-choice-grid button[data-active="1"]::after,
#ownerAutopostControl .owner-ap-topic-choice[data-active="1"]::after{
  content:"✓ เลือกแล้ว";position:absolute;top:6px;right:7px;z-index:2;
  padding:2px 6px;border:1px solid #62f5d2;border-radius:999px;background:#073d36;
  color:#cffff3;font-size:9px;font-weight:950;line-height:1.3;box-shadow:0 0 10px #2be8c244
}
#ownerAutopostControl .owner-ap-tabs button[data-active="1"]::after,
#ownerAutopostControl .owner-ap-mode-tabs button[data-active="1"]::after,
#ownerAutopostControl .owner-ap-horizon-chips button[data-active="1"]::after{
  content:"✓";position:absolute;top:6px;right:7px;display:grid;place-items:center;
  width:18px;height:18px;border:1px solid #68f8d7;border-radius:50%;background:#073d36;
  color:#dffff8;font-size:10px;font-weight:1000;box-shadow:0 0 10px #2be8c244
}
#ownerAutopostControl .owner-ap-choice-grid button[data-active="1"],
#ownerAutopostControl .owner-ap-topic-choice[data-active="1"]{padding-top:28px}
#ownerAutopostControl .owner-ap-business-card[data-selected="1"]{padding-top:27px}
@media(max-width:720px){
  #ownerAutopostControl .owner-ap-selection-summary{gap:5px;padding:8px}
  #ownerAutopostControl .owner-ap-selection-chip{font-size:10px;min-height:26px}
}

/* Post tabs use the existing data-active state; reserve border/check space in every tab. */
#ownerAutopostControl .owner-ap-post-tabs button{
  box-sizing:border-box;min-height:52px;padding:10px 14px;border-width:2px;border-style:solid;border-color:transparent;
  background:#0a1830;color:#d7e4f1;box-shadow:none;font-size:14px;transform:none
}
#ownerAutopostControl .owner-ap-post-tabs button::before{
  content:"";display:inline-block;width:16px;height:1em;margin-right:6px;opacity:0;
  color:#dffff8;font-weight:1000;line-height:1;vertical-align:baseline
}
#ownerAutopostControl .owner-ap-post-tabs button[data-active="1"]{
  border-color:#55f0d0;background:linear-gradient(110deg,#075449,#0b3d46);color:#f4ffff;
  box-shadow:0 0 0 2px #26d7bd25,0 0 18px #22efb644
}
#ownerAutopostControl .owner-ap-post-tabs button[data-active="1"]::before{content:"✓";opacity:1}
@media(hover:hover){
  #ownerAutopostControl .owner-ap-post-tabs button[data-active="0"]:hover{
    border-color:#42617e;background:#10253c;box-shadow:none
  }
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-post-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  #ownerAutopostControl .owner-ap-post-tabs button{
    display:flex;align-items:center;justify-content:center;min-width:0;min-height:60px;
    padding:9px 10px;font-size:13px;line-height:1.4;white-space:normal
  }
  #ownerAutopostControl .owner-ap-post-tabs button::before{flex:0 0 16px}
}
@media(max-width:380px){
  #ownerAutopostControl .owner-ap-post-tabs button{padding:8px;font-size:12px}
}



/* Owner AutoPost v39: channel-neutral publication target selector */
#ownerAutopostControl .owner-ap-publish-targets{
  display:grid;gap:7px;padding:10px 11px;border:1px solid #244d69;border-radius:11px;
  background:linear-gradient(145deg,#07182b,#091a30);
}
#ownerAutopostControl .owner-ap-target-title{
  color:#9ebbd1;font-size:11px;font-weight:900;letter-spacing:.03em
}
#ownerAutopostControl .owner-ap-target-chips{
  display:flex;flex-wrap:wrap;gap:7px
}
#ownerAutopostControl .owner-ap-target-chip{
  display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 9px;
  border:1px solid #315b78;border-radius:999px;background:#0a1b30;color:#bfd3e4;
  font-size:11.5px;font-weight:850;cursor:pointer;transition:.15s ease
}
#ownerAutopostControl .owner-ap-target-chip[data-selected="1"]{
  border-color:#3ee0c2;background:linear-gradient(115deg,#0b3d3a,#103b56);
  color:#dffef6;box-shadow:0 0 13px #32d8bb2c
}
#ownerAutopostControl .owner-ap-target-chip:disabled{
  opacity:.48;cursor:not-allowed;box-shadow:none
}
#ownerAutopostControl .owner-ap-target-icon{
  display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 3px;border-radius:6px;
  background:#102a45;color:#9eeeff;font-size:10px;font-weight:950
}
#ownerAutopostControl .owner-ap-target-chip[data-selected="1"] .owner-ap-target-icon{
  background:#135b54;color:#d8fff5
}
#ownerAutopostControl .owner-ap-target-check{
  display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;
  background:#17314a;color:#8eabc2;font-size:12px;font-weight:950
}
#ownerAutopostControl .owner-ap-target-chip[data-selected="1"] .owner-ap-target-check{
  background:#32d6aa;color:#03251c
}
#ownerAutopostControl .owner-ap-target-empty{
  color:#d8ae62;font-size:11.5px;font-weight:800
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-target-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #ownerAutopostControl .owner-ap-target-chip{justify-content:flex-start;border-radius:10px}
}
@media(max-width:390px){
  #ownerAutopostControl .owner-ap-target-chips{grid-template-columns:1fr}
}


/* Owner AutoPost v41: one clear create flow */
#ownerAutopostControl .owner-ap-flow-map{
  display:flex;align-items:center;gap:8px;overflow-x:auto;padding:10px 12px;
  border:1px solid #2b5f84;border-radius:13px;background:linear-gradient(120deg,#08182c,#0a2440);
  scrollbar-width:thin
}
#ownerAutopostControl .owner-ap-flow-map span{
  display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 9px;
  border:1px solid #2a5270;border-radius:999px;background:#0a1c31;color:#d8e8f5;
  font-size:11.5px;font-weight:850;white-space:nowrap
}
#ownerAutopostControl .owner-ap-flow-map span b{
  display:grid;place-items:center;width:20px;height:20px;border-radius:50%;
  background:#1f7c72;color:#eafff9;font-size:10px
}
#ownerAutopostControl .owner-ap-flow-map i{color:#5ba6c9;font-style:normal;font-weight:900}

#ownerAutopostControl .owner-ap-channel-summary{
  display:grid;gap:9px;padding:12px;border:1px solid #2b5472;border-radius:13px;
  background:linear-gradient(145deg,#09182b,#0a1f36)
}
#ownerAutopostControl .owner-ap-channel-summary-head{display:grid;gap:3px}
#ownerAutopostControl .owner-ap-channel-summary-head b{font-size:13px;color:#eff9ff}
#ownerAutopostControl .owner-ap-channel-summary-head small{font-size:11.5px;color:#9eb6c9;line-height:1.45}
#ownerAutopostControl .owner-ap-channel-status-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
#ownerAutopostControl .owner-ap-channel-status{
  display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;align-items:center;
  min-width:0;padding:8px;border:1px solid #2c4f69;border-radius:10px;background:#09192c
}
#ownerAutopostControl .owner-ap-channel-status-icon{
  grid-row:1 / span 2;display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#102b46;
  color:#a8ecff;font-size:10px;font-weight:950
}
#ownerAutopostControl .owner-ap-channel-status b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px}
#ownerAutopostControl .owner-ap-channel-status small{font-size:10.5px;color:#9fb4c5}
#ownerAutopostControl .owner-ap-channel-status[data-state="connected"]{border-color:#23785d;background:#08261f}
#ownerAutopostControl .owner-ap-channel-status[data-state="connected"] small{color:#78ebbf}
#ownerAutopostControl .owner-ap-channel-status[data-state="reconnect"]{border-color:#9a6843;background:#2b1e12}
#ownerAutopostControl .owner-ap-channel-status[data-state="reconnect"] small{color:#ffbd7f}
#ownerAutopostControl .owner-ap-channel-status[data-state="disconnected"] small{color:#a6b3bf}

#ownerAutopostControl .owner-ap-content-type-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px
}
#ownerAutopostControl .owner-ap-content-type-card{
  position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) auto;grid-template-rows:auto auto;
  align-items:center;gap:3px 9px;min-height:78px;padding:12px;border:1px solid #365b78;border-radius:13px;
  background:linear-gradient(145deg,#0b1c33,#0a172b);color:#eef8ff;text-align:left
}
#ownerAutopostControl .owner-ap-content-type-card>span{
  grid-row:1 / span 2;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#102d4c;font-size:20px
}
#ownerAutopostControl .owner-ap-content-type-card>b{font-size:14px}
#ownerAutopostControl .owner-ap-content-type-card>small{color:#9fb7ca;font-size:11.5px}
#ownerAutopostControl .owner-ap-content-type-card>em{
  grid-column:3;grid-row:1 / span 2;align-self:center;padding:4px 7px;border:1px solid #2e8067;border-radius:999px;
  background:#0a382e;color:#8ff0cd;font-size:10px;font-style:normal;font-weight:900;white-space:nowrap
}
#ownerAutopostControl .owner-ap-content-type-card[data-active="1"]{
  border:2px solid #49ebc7;background:linear-gradient(145deg,#0d413b,#10344f);box-shadow:0 0 18px #2ce2bd30
}
#ownerAutopostControl .owner-ap-content-type-card:disabled{
  opacity:.58;cursor:not-allowed;filter:saturate(.7)
}
#ownerAutopostControl .owner-ap-content-type-card:disabled>em{
  border-color:#665a3a;background:#2b2514;color:#e8cf82
}

@media(max-width:820px){
  #ownerAutopostControl .owner-ap-channel-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-flow-map{gap:6px;padding:8px}
  #ownerAutopostControl .owner-ap-flow-map span{font-size:11px}
  #ownerAutopostControl .owner-ap-channel-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #ownerAutopostControl .owner-ap-content-type-grid{grid-template-columns:1fr}
}


/* Owner AutoPost v42: terminal cards never show editable/pending semantics */
#ownerAutopostControl .owner-ap-target-terminal{
  display:inline-flex;align-items:center;min-height:34px;padding:6px 9px;
  border:1px solid #2c7c65;border-radius:10px;background:#082c24;
  color:#a7f4d7;font-size:11.5px;font-weight:850;line-height:1.4
}
#ownerAutopostControl .owner-ap-caption-terminal{
  border-color:#2c6a59;background:#08261f;color:#bff5df
}


/* Owner AutoPost v43: consistent connection actions and LINE system-managed status */
#ownerAutopostControl .owner-ap-line-system-note{
  display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;
  border:1px dashed #3d6b82;border-radius:10px;background:#0a1b2c;
  color:#a9c5d6;font-size:12px;font-weight:850
}
#ownerAutopostControl .owner-ap-channel-status[data-connection-mode="system"]{
  border-style:dashed
}


/* Owner AutoPost v44: one global queue across Owner businesses */
#ownerAutopostControl .owner-ap-global-queue-section{
  border-color:#2f6e7d;background:linear-gradient(145deg,#08192d,#0a2337)
}
#ownerAutopostControl .owner-ap-global-queue-summary{
  display:flex;flex-wrap:wrap;gap:8px
}
#ownerAutopostControl .owner-ap-global-queue-chip{
  display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 10px;
  border:1px solid #365d75;border-radius:999px;background:#0a1d31
}
#ownerAutopostControl .owner-ap-global-queue-chip b{font-size:14px}
#ownerAutopostControl .owner-ap-global-queue-chip small{font-size:11px;color:#a9bfd0}
#ownerAutopostControl .owner-ap-global-queue-chip[data-tone="running"]{border-color:#927430;background:#2b2410}
#ownerAutopostControl .owner-ap-global-queue-chip[data-tone="ready"]{border-color:#2b8466;background:#082b23}
#ownerAutopostControl .owner-ap-global-queue-chip[data-tone="scheduled"]{border-color:#387bb7;background:#0b2540}
#ownerAutopostControl .owner-ap-global-queue-chip[data-tone="failed"]{border-color:#8d4650;background:#32151b}
#ownerAutopostControl .owner-ap-global-queue-list{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px
}
#ownerAutopostControl .owner-ap-global-queue-card{
  display:grid;grid-template-columns:64px minmax(0,1fr);gap:11px;align-items:center;
  width:100%;min-width:0;padding:10px;border:1px solid #31546d;border-radius:13px;
  background:linear-gradient(145deg,#09192d,#0b1f34);color:#eef8ff;text-align:left
}
#ownerAutopostControl .owner-ap-global-queue-card:hover{border-color:#4fa8bf}
#ownerAutopostControl .owner-ap-global-queue-card[data-state="ready"]{border-color:#2c7f65}
#ownerAutopostControl .owner-ap-global-queue-card[data-state="scheduled"]{border-color:#387ab6}
#ownerAutopostControl .owner-ap-global-queue-card[data-state="failed"]{border-color:#914752}
#ownerAutopostControl .owner-ap-global-queue-thumb{
  width:64px;height:64px;border-radius:10px;object-fit:cover;background:#0a1422
}
#ownerAutopostControl .owner-ap-global-queue-wait{
  display:grid;place-items:center;width:64px;height:64px;border-radius:10px;background:#102842;font-size:24px
}
#ownerAutopostControl .owner-ap-global-queue-copy{display:grid;gap:4px;min-width:0}
#ownerAutopostControl .owner-ap-global-queue-top{
  display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0
}
#ownerAutopostControl .owner-ap-global-queue-top b{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px
}
#ownerAutopostControl .owner-ap-global-queue-top em{
  flex:0 0 auto;padding:4px 7px;border:1px solid #416883;border-radius:999px;
  color:#cfeeff;font-size:10.5px;font-style:normal;font-weight:900
}
#ownerAutopostControl .owner-ap-global-queue-copy>small{font-size:11px;color:#b7c8d6;line-height:1.4}
#ownerAutopostControl .owner-ap-global-queue-meta{color:#829caf!important}
@media(max-width:780px){
  #ownerAutopostControl .owner-ap-global-queue-list{grid-template-columns:1fr}
}


/* Owner AutoPost v45: compact, logo-only channel controls */
#ownerAutopostControl .owner-ap-platform-actions,
#ownerAutopostControl .owner-ap-platform-row{
  display:flex;align-items:center;flex-wrap:wrap;gap:9px
}
#ownerAutopostControl .owner-ap-platform-button,
#ownerAutopostControl .owner-ap-platform-status{
  position:relative;display:inline-grid;place-items:center;width:46px;height:46px;
  min-width:46px;padding:0;border:1px solid #36566d;border-radius:13px;background:#0b1b2c
}
#ownerAutopostControl .owner-ap-platform-button{cursor:pointer}
#ownerAutopostControl .owner-ap-platform-button:disabled{cursor:default;opacity:.42}
#ownerAutopostControl .owner-ap-platform-button.is-readonly{cursor:default}
#ownerAutopostControl .owner-ap-platform-logo{
  position:relative;display:inline-grid;place-items:center;width:31px;height:31px;
  border-radius:9px;font-weight:1000;font-size:18px;line-height:1;color:#fff;overflow:hidden
}
#ownerAutopostControl .owner-ap-platform-logo.is-small{width:27px;height:27px;border-radius:8px;font-size:16px}
#ownerAutopostControl .owner-ap-platform-logo[data-platform="facebook"]{background:#1877f2;font-family:Arial,sans-serif;font-size:23px;align-items:end;padding-bottom:1px}
#ownerAutopostControl .owner-ap-platform-logo[data-platform="instagram"]{
  background:radial-gradient(circle at 32% 105%,#ffd600 0 22%,#ff7a00 35%,#ff0169 58%,#d300c5 78%,#7638fa 100%)
}
#ownerAutopostControl .owner-ap-platform-logo[data-platform="instagram"]::before{
  content:"";width:17px;height:17px;border:2px solid #fff;border-radius:6px;box-sizing:border-box
}
#ownerAutopostControl .owner-ap-platform-logo[data-platform="instagram"]::after{
  content:"";position:absolute;width:5px;height:5px;border:2px solid #fff;border-radius:50%
}
#ownerAutopostControl .owner-ap-platform-logo[data-platform="tiktok"]{
  background:#050505;text-shadow:-2px 0 #25f4ee,2px 0 #fe2c55;font-size:21px
}
#ownerAutopostControl .owner-ap-platform-logo[data-platform="threads"]{background:#050505;font-size:20px}
#ownerAutopostControl .owner-ap-platform-logo[data-platform="line"]{background:#06c755;font-size:8px;letter-spacing:-.4px}
#ownerAutopostControl .owner-ap-platform-logo[data-platform="lazada"]{
  background:linear-gradient(135deg,#0f146d,#5a1fcf 42%,#ff005b 72%,#ff8a00);font-size:16px
}
#ownerAutopostControl .owner-ap-platform-logo[data-platform="shopee"]{background:#ee4d2d;font-size:18px}
#ownerAutopostControl .owner-ap-platform-dot{
  position:absolute;right:3px;bottom:3px;width:9px;height:9px;border:2px solid #081421;border-radius:50%;background:#6d7d89
}
#ownerAutopostControl [data-state="connected"]>.owner-ap-platform-dot{background:#28d17c}
#ownerAutopostControl [data-state="reconnect"]>.owner-ap-platform-dot{background:#ff9b32}
#ownerAutopostControl [data-state="future"]>.owner-ap-platform-dot,
#ownerAutopostControl [data-state="disconnected"]>.owner-ap-platform-dot{background:#73818b}
#ownerAutopostControl .owner-ap-target-chip{
  width:48px;min-width:48px;height:44px;padding:5px;justify-content:center;position:relative
}
#ownerAutopostControl .owner-ap-target-chip>b,
#ownerAutopostControl .owner-ap-target-icon{display:none}
#ownerAutopostControl .owner-ap-target-check{
  position:absolute;right:-3px;bottom:-3px;display:grid;place-items:center;
  width:18px;height:18px;border-radius:50%;font-size:11px;font-weight:1000
}
#ownerAutopostControl .owner-ap-channel-status-grid,
#ownerAutopostControl .owner-ap-line-system-note{display:none!important}
@media(max-width:620px){
  #ownerAutopostControl .owner-ap-platform-button,
  #ownerAutopostControl .owner-ap-platform-status{width:43px;height:43px;min-width:43px}
}


/* Owner AutoPost v48: explicit reconnect CTA for expired TikTok OAuth */
#ownerAutopostControl .owner-ap-reconnect-callout{
  flex:1 1 100%;display:flex;align-items:center;gap:10px;min-width:0;
  padding:10px 12px;border:1px solid #9a6843;border-radius:12px;
  background:linear-gradient(135deg,#2b1e12,#21170f);color:#ffe3c1
}
#ownerAutopostControl .owner-ap-reconnect-copy{
  display:grid;gap:2px;min-width:0;flex:1
}
#ownerAutopostControl .owner-ap-reconnect-copy b{font-size:13px;color:#ffd29d}
#ownerAutopostControl .owner-ap-reconnect-copy small{font-size:11px;line-height:1.35;color:#e7b77e}
#ownerAutopostControl .owner-ap-reconnect-button{
  flex:none;min-height:38px;padding:8px 13px;border:1px solid #ff9b32;border-radius:10px;
  background:#5a3212;color:#fff4e4;font-weight:900;cursor:pointer
}
#ownerAutopostControl .owner-ap-reconnect-button:hover{filter:brightness(1.12)}
#ownerAutopostControl .owner-ap-reconnect-button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:620px){
  #ownerAutopostControl .owner-ap-reconnect-callout{align-items:flex-start;flex-wrap:wrap}
  #ownerAutopostControl .owner-ap-reconnect-copy{min-width:180px}
  #ownerAutopostControl .owner-ap-reconnect-button{width:100%}
}

/* Owner AutoPost v57: separate failed provider targets from verified published destinations */
#ownerAutopostControl .owner-ap-target-failed{
  display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;
  border:1px solid #8d4650;border-radius:9px;background:#32151b;
  color:#ffb8bf;font-size:11.5px;font-weight:850;line-height:1.35
}


/* Owner AutoPost TikTok Audit-ready publish settings */
#ownerAutopostControl .owner-ap-tiktok-summary{
  flex:1 1 100%;display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  padding:9px 11px;border:1px solid #3b556d;border-radius:11px;background:#091a2b
}
#ownerAutopostControl .owner-ap-tiktok-summary-title{font-size:12px;font-weight:900;color:#f2fbff}
#ownerAutopostControl .owner-ap-tiktok-summary small{color:#a9bed0;font-size:10.5px}
.owner-ap-tiktok-dialog{
  width:min(560px,calc(100vw - 28px));border:1px solid #365f79;border-radius:18px;
  padding:0;background:#071526;color:#edf8ff;box-shadow:0 28px 90px #000b
}
.owner-ap-tiktok-dialog::backdrop{background:#020713c7;backdrop-filter:blur(5px)}
.owner-ap-tiktok-settings{display:grid;gap:11px;padding:18px}
.owner-ap-tiktok-settings h3{margin:0;font-size:19px}
.owner-ap-tiktok-identity{margin:0;color:#80f1da;font-weight:850}
.owner-ap-tiktok-note{margin:0;color:#a8bccd;font-size:11.5px;line-height:1.45}
.owner-ap-tiktok-field{display:grid;gap:5px}
.owner-ap-tiktok-field>span{font-size:11px;font-weight:850;color:#cce0ee}
.owner-ap-tiktok-field select{
  width:100%;min-height:42px;border:1px solid #335c76;border-radius:10px;
  background:#0b2035;color:#eef9ff;padding:8px 10px
}
.owner-ap-tiktok-consent{display:flex;gap:8px;align-items:flex-start;font-size:11.5px;line-height:1.45;color:#d7e8f3}
.owner-ap-tiktok-consent input{margin-top:3px}
.owner-ap-tiktok-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
@media(max-width:620px){
  .owner-ap-tiktok-settings{padding:14px}
  .owner-ap-tiktok-actions>button{flex:1 1 140px}
}

/* Owner AutoPost plan review */
#ownerAutopostControl .owner-ap-plan-review{
  border-color:#376f75;background:linear-gradient(145deg,#071b2d,#0a2632)
}
#ownerAutopostControl .owner-ap-plan-review-summary{
  display:inline-flex;align-items:center;min-height:38px;padding:7px 11px;
  border:1px solid #2f806f;border-radius:999px;background:#0a3028;color:#bff7df;
  font-size:12px;font-weight:900
}
#ownerAutopostControl .owner-ap-plan-review-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px
}
#ownerAutopostControl .owner-ap-plan-day{
  display:grid;gap:8px;padding:10px;border:1px solid #31566c;border-radius:13px;background:#09192b
}
#ownerAutopostControl .owner-ap-plan-day h4{
  margin:0;color:#eaf8ff;font-size:13px
}
#ownerAutopostControl .owner-ap-plan-day-rows{display:grid;gap:7px}
#ownerAutopostControl .owner-ap-plan-slot{
  display:grid;grid-template-columns:22px 58px minmax(0,1fr) auto;gap:8px;align-items:center;
  min-width:0;padding:9px;border:1px solid #2e5068;border-radius:10px;background:#0a1c30;cursor:pointer
}
#ownerAutopostControl .owner-ap-plan-slot[data-excluded="1"]{
  opacity:.58;border-style:dashed;background:#151923
}
#ownerAutopostControl .owner-ap-plan-slot input{
  width:18px;height:18px;margin:0;accent-color:#35d9af
}
#ownerAutopostControl .owner-ap-plan-time{
  color:#8fe8d3;font-size:12px;font-weight:950
}
#ownerAutopostControl .owner-ap-plan-copy{
  display:grid;gap:2px;min-width:0
}
#ownerAutopostControl .owner-ap-plan-copy b{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#edf8ff;font-size:12px
}
#ownerAutopostControl .owner-ap-plan-copy small{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9eb7c9;font-size:10.5px
}
#ownerAutopostControl .owner-ap-plan-choice{
  min-width:46px;padding:4px 7px;border:1px solid #2d7f64;border-radius:999px;
  background:#0a3027;color:#9df0cf;font-size:10px;font-style:normal;font-weight:950;text-align:center
}
#ownerAutopostControl .owner-ap-plan-slot[data-excluded="1"] .owner-ap-plan-choice{
  border-color:#72535b;background:#2d171d;color:#efa6b4
}
#ownerAutopostControl .owner-ap-plan-review-actions{
  display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end
}
@media(max-width:820px){
  #ownerAutopostControl .owner-ap-plan-review-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  #ownerAutopostControl .owner-ap-plan-slot{grid-template-columns:22px 54px minmax(0,1fr)}
  #ownerAutopostControl .owner-ap-plan-choice{grid-column:3;justify-self:start}
}


/* Owner AutoPost readable typography · 2026-10-06
   System-font only: clearer Thai/Latin text without external font loading. */
#ownerAutopostControl{
  font-family:"Noto Sans Thai","Leelawadee UI",Tahoma,"Segoe UI",Arial,sans-serif;
  font-size:17px;
  line-height:1.55;
  font-kerning:normal;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
#ownerAutopostControl button,
#ownerAutopostControl input,
#ownerAutopostControl select,
#ownerAutopostControl textarea{
  font-family:inherit;
  line-height:1.45;
}
#ownerAutopostControl .owner-ap-section-heading h3{font-size:24px;line-height:1.35;font-weight:850}
#ownerAutopostControl .owner-ap-section-heading p{font-size:16px;line-height:1.55}
#ownerAutopostControl .owner-ap-label{font-size:16px;line-height:1.5}
#ownerAutopostControl .owner-ap-tabs button,
#ownerAutopostControl .owner-ap-post-tabs button,
#ownerAutopostControl .owner-ap-mode-tabs button{font-size:15px}
#ownerAutopostControl .owner-ap-primary,
#ownerAutopostControl .owner-ap-secondary,
#ownerAutopostControl .owner-ap-danger{font-size:15px}
#ownerAutopostControl .owner-ap-feedback{font-size:15px;line-height:1.55}
#ownerAutopostControl .owner-ap-business-main b{font-size:17px}
#ownerAutopostControl .owner-ap-business-main small,
#ownerAutopostControl .owner-ap-connect-state{font-size:13px;line-height:1.45}
#ownerAutopostControl .owner-ap-workflow-copy b{font-size:14px}
#ownerAutopostControl .owner-ap-workflow-copy small{font-size:12.5px;line-height:1.45}
#ownerAutopostControl .owner-ap-post-top b{font-size:16px}
#ownerAutopostControl .owner-ap-state{font-size:13px}
#ownerAutopostControl .owner-ap-caption{font-size:16px;line-height:1.7}
#ownerAutopostControl .owner-ap-post-actions button{font-size:14.5px}
#ownerAutopostControl .owner-ap-preview-copy h3{font-size:23px}
#ownerAutopostControl .owner-ap-system,
#ownerAutopostControl .owner-ap-system-row{font-size:14px;line-height:1.55}

/* 7-day / 21-slot review: prioritize readability over density. */
#ownerAutopostControl .owner-ap-plan-review-summary{
  font-size:15px;
  line-height:1.45;
  padding:9px 13px;
}
#ownerAutopostControl .owner-ap-plan-day{gap:10px;padding:13px}
#ownerAutopostControl .owner-ap-plan-day h4{
  font-size:18px;
  line-height:1.4;
  font-weight:850;
}
#ownerAutopostControl .owner-ap-plan-day-rows{gap:9px}
#ownerAutopostControl .owner-ap-plan-slot{
  grid-template-columns:24px 66px minmax(0,1fr) auto;
  gap:10px;
  min-height:76px;
  padding:11px 12px;
}
#ownerAutopostControl .owner-ap-plan-slot input{width:20px;height:20px}
#ownerAutopostControl .owner-ap-plan-time{
  font-size:16px;
  line-height:1.35;
  font-weight:900;
}
#ownerAutopostControl .owner-ap-plan-copy{gap:4px}
#ownerAutopostControl .owner-ap-plan-copy b{
  font-size:15.5px;
  line-height:1.4;
  white-space:normal;
}
#ownerAutopostControl .owner-ap-plan-copy small{
  font-size:13.5px;
  line-height:1.5;
  white-space:normal;
}
#ownerAutopostControl .owner-ap-plan-choice{
  min-width:56px;
  padding:6px 9px;
  font-size:13px;
  line-height:1.25;
}
#ownerAutopostControl .owner-ap-plan-review-actions button{font-size:15px}
#ownerAutopostControl .owner-ap-caption-state{font-size:14px;line-height:1.55}

@media(max-width:640px){
  #ownerAutopostControl{font-size:16.5px}
  #ownerAutopostControl .owner-ap-section-heading h3{font-size:22px}
  #ownerAutopostControl .owner-ap-section-heading p{font-size:15px}
  #ownerAutopostControl .owner-ap-plan-slot{
    grid-template-columns:24px 62px minmax(0,1fr);
    min-height:82px;
    padding:11px 10px;
  }
  #ownerAutopostControl .owner-ap-plan-time{font-size:15px}
  #ownerAutopostControl .owner-ap-plan-copy b{font-size:15px}
  #ownerAutopostControl .owner-ap-plan-copy small{font-size:13px}
  #ownerAutopostControl .owner-ap-plan-choice{grid-column:3;font-size:13px}
}


/* Owner AutoPost chat-like readable typography v2 · 2026-10-06
   System sans feel similar to modern chat UIs; slightly larger for Owner readability. */
#ownerAutopostControl{
  font-family:"Segoe UI","Noto Sans Thai","Leelawadee UI",Tahoma,Arial,sans-serif;
  font-size:18px;
  line-height:1.6;
  letter-spacing:0;
}
#ownerAutopostControl button,
#ownerAutopostControl input,
#ownerAutopostControl select,
#ownerAutopostControl textarea{
  font-family:inherit;
  line-height:1.5;
}
#ownerAutopostControl .owner-ap-section-heading h3{font-size:25px;line-height:1.35;font-weight:800}
#ownerAutopostControl .owner-ap-section-heading p{font-size:17px;line-height:1.6}
#ownerAutopostControl .owner-ap-label{font-size:17px;line-height:1.55}
#ownerAutopostControl .owner-ap-tabs button,
#ownerAutopostControl .owner-ap-post-tabs button,
#ownerAutopostControl .owner-ap-mode-tabs button{font-size:16px}
#ownerAutopostControl .owner-ap-primary,
#ownerAutopostControl .owner-ap-secondary,
#ownerAutopostControl .owner-ap-danger{font-size:16px}
#ownerAutopostControl .owner-ap-feedback{font-size:16px;line-height:1.6}
#ownerAutopostControl .owner-ap-business-main b{font-size:18px}
#ownerAutopostControl .owner-ap-business-main small,
#ownerAutopostControl .owner-ap-connect-state{font-size:14px;line-height:1.5}
#ownerAutopostControl .owner-ap-workflow-copy b{font-size:15px}
#ownerAutopostControl .owner-ap-workflow-copy small{font-size:13.5px;line-height:1.5}
#ownerAutopostControl .owner-ap-post-top b{font-size:17px}
#ownerAutopostControl .owner-ap-state{font-size:14px}
#ownerAutopostControl .owner-ap-caption{font-size:17px;line-height:1.75}
#ownerAutopostControl .owner-ap-post-actions button{font-size:15.5px}
#ownerAutopostControl .owner-ap-preview-copy h3{font-size:24px}
#ownerAutopostControl .owner-ap-system,
#ownerAutopostControl .owner-ap-system-row{font-size:15px;line-height:1.6}

#ownerAutopostControl .owner-ap-plan-review-summary{
  font-size:16px;
  line-height:1.5;
  padding:10px 14px;
}
#ownerAutopostControl .owner-ap-plan-day{gap:11px;padding:14px}
#ownerAutopostControl .owner-ap-plan-day h4{
  font-size:19px;
  line-height:1.4;
  font-weight:800;
}
#ownerAutopostControl .owner-ap-plan-day-rows{gap:10px}
#ownerAutopostControl .owner-ap-plan-slot{
  grid-template-columns:24px 70px minmax(0,1fr) auto;
  gap:11px;
  min-height:80px;
  padding:12px 13px;
}
#ownerAutopostControl .owner-ap-plan-slot input{width:21px;height:21px}
#ownerAutopostControl .owner-ap-plan-time{
  font-size:17px;
  line-height:1.4;
  font-weight:850;
}
#ownerAutopostControl .owner-ap-plan-copy b{
  font-size:17px;
  line-height:1.45;
  font-weight:750;
}
#ownerAutopostControl .owner-ap-plan-copy small{
  font-size:15px;
  line-height:1.55;
}
#ownerAutopostControl .owner-ap-plan-choice{
  min-width:60px;
  padding:7px 10px;
  font-size:14px;
  line-height:1.3;
}
#ownerAutopostControl .owner-ap-plan-review-actions button{font-size:16px}
#ownerAutopostControl .owner-ap-caption-state{font-size:15px;line-height:1.6}

@media(max-width:640px){
  #ownerAutopostControl{font-size:17.5px}
  #ownerAutopostControl .owner-ap-section-heading h3{font-size:23px}
  #ownerAutopostControl .owner-ap-section-heading p{font-size:16px}
  #ownerAutopostControl .owner-ap-plan-slot{
    grid-template-columns:24px 66px minmax(0,1fr);
    min-height:86px;
    padding:12px 10px;
  }
  #ownerAutopostControl .owner-ap-plan-time{font-size:16.5px}
  #ownerAutopostControl .owner-ap-plan-copy b{font-size:16.5px}
  #ownerAutopostControl .owner-ap-plan-copy small{font-size:14.5px}
  #ownerAutopostControl .owner-ap-plan-choice{grid-column:3;font-size:14px}
}


/* Owner AutoPost planning cadence controls · 2026-10-06 */
#ownerAutopostControl .owner-ap-plan-schedule{
  display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr);gap:12px;
  padding:14px;border:1px solid #3a6082;border-radius:14px;background:#08182c
}
#ownerAutopostControl .owner-ap-plan-schedule[hidden]{display:none}
#ownerAutopostControl .owner-ap-plan-frequency,
#ownerAutopostControl .owner-ap-plan-times{display:grid;gap:8px}
#ownerAutopostControl .owner-ap-plan-frequency label{display:grid;gap:3px}
#ownerAutopostControl .owner-ap-plan-frequency b,
#ownerAutopostControl .owner-ap-plan-times>b{font-size:16px;color:#eff9ff}
#ownerAutopostControl .owner-ap-plan-frequency small,
#ownerAutopostControl .owner-ap-plan-times>small{font-size:13.5px;line-height:1.5;color:#a8bfd2}
#ownerAutopostControl .owner-ap-plan-frequency select{
  min-height:50px;padding:10px 12px;border:1px solid #3d6687;border-radius:11px;
  background:#07162a;color:#f2f9ff;font:inherit;font-size:16px;font-weight:750
}
#ownerAutopostControl .owner-ap-plan-time-inputs{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px
}
#ownerAutopostControl .owner-ap-plan-time-inputs label{
  display:grid;gap:5px;padding:8px;border:1px solid #304f69;border-radius:10px;background:#0a1c30
}
#ownerAutopostControl .owner-ap-plan-time-inputs label[hidden]{display:none}
#ownerAutopostControl .owner-ap-plan-time-inputs span{font-size:12.5px;color:#9fb8cc;font-weight:750}
#ownerAutopostControl .owner-ap-plan-time-inputs input{
  width:100%;min-height:44px;padding:7px 8px;border:1px solid #3e6988;border-radius:9px;
  background:#061526;color:#f4fbff;font:inherit;font-size:16px;font-weight:800
}
#ownerAutopostControl .owner-ap-plan-count-preview{
  padding:9px 11px;border:1px solid #2f806f;border-radius:10px;background:#082c25;
  color:#aef3d6;font-size:15px;font-weight:800;line-height:1.5
}
@media(max-width:760px){
  #ownerAutopostControl .owner-ap-plan-schedule{grid-template-columns:1fr}
  #ownerAutopostControl .owner-ap-plan-time-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  #ownerAutopostControl .owner-ap-plan-time-inputs{grid-template-columns:1fr}
}


/* AutoPost Editorial Planner · research-led visual planning surface · 2026-10-06 */
#ownerAutopostControl .owner-ap-plan-goal-section{
  display:grid;gap:10px;margin:4px 0 14px;padding:15px;
  border:1px solid rgba(105,181,255,.32);border-radius:16px;
  background:linear-gradient(145deg,rgba(11,31,54,.98),rgba(8,24,43,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)
}
#ownerAutopostControl .owner-ap-plan-goal-section[hidden]{display:none}
#ownerAutopostControl .owner-ap-plan-subhead{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;margin:2px 0 8px
}
#ownerAutopostControl .owner-ap-plan-subhead b{font-size:17px;color:#f3f9ff}
#ownerAutopostControl .owner-ap-plan-subhead small{font-size:14px;color:#9fb7ca;line-height:1.5}
#ownerAutopostControl .owner-ap-plan-duration-head{margin-top:12px}
#ownerAutopostControl .owner-ap-plan-goal-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px
}
#ownerAutopostControl .owner-ap-plan-goal-grid button{
  display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;
  gap:2px 9px;align-items:center;min-height:78px;padding:11px 12px;text-align:left;
  border:1px solid #31516c;border-radius:13px;background:#0a1b2f;color:#eef8ff;
  cursor:pointer;transition:border-color .15s ease,transform .15s ease,background .15s ease,box-shadow .15s ease
}
#ownerAutopostControl .owner-ap-plan-goal-grid button:hover:not(:disabled){
  transform:translateY(-1px);border-color:#4e8db6;background:#0c233b
}
#ownerAutopostControl .owner-ap-plan-goal-grid button[data-active="1"]{
  border-color:#40d9b0;background:linear-gradient(145deg,#0a302b,#0b2536);
  box-shadow:0 0 0 1px rgba(64,217,176,.18),0 8px 24px rgba(0,0,0,.12)
}
#ownerAutopostControl .owner-ap-plan-goal-grid button>span{
  grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;
  background:rgba(116,179,230,.10);font-size:20px
}
#ownerAutopostControl .owner-ap-plan-goal-grid button[data-active="1"]>span{background:rgba(64,217,176,.14)}
#ownerAutopostControl .owner-ap-plan-goal-grid button>b{font-size:15.5px;line-height:1.35}
#ownerAutopostControl .owner-ap-plan-goal-grid button>small{font-size:12.5px;line-height:1.4;color:#a8bed0}
#ownerAutopostControl .owner-ap-plan-goal-grid button:disabled{opacity:.48;cursor:not-allowed}

#ownerAutopostControl .owner-ap-plan-live-status{
  display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;
  min-height:74px;padding:13px 15px;margin-bottom:10px;border:1px solid #34566f;border-radius:15px;
  background:linear-gradient(145deg,#0a1b2e,#0a2035)
}
#ownerAutopostControl .owner-ap-plan-live-status[data-tone="ready"]{border-color:#31866f;background:linear-gradient(145deg,#092920,#0a2230)}
#ownerAutopostControl .owner-ap-plan-live-status[data-tone="working"],
#ownerAutopostControl .owner-ap-plan-live-status[data-tone="running"]{border-color:#356f9c;background:linear-gradient(145deg,#0a2540,#0a1e32)}
#ownerAutopostControl .owner-ap-plan-live-status[data-tone="fail"]{border-color:#915160;background:linear-gradient(145deg,#30161d,#171927)}
#ownerAutopostControl .owner-ap-plan-live-icon{
  display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:rgba(101,184,242,.12);
  color:#a9ddff;font-size:20px;font-weight:900
}
#ownerAutopostControl .owner-ap-plan-live-status[data-tone="ready"] .owner-ap-plan-live-icon{background:rgba(57,209,167,.14);color:#a8f2d5}
#ownerAutopostControl .owner-ap-plan-live-status[data-tone="fail"] .owner-ap-plan-live-icon{background:rgba(235,119,142,.13);color:#ffb6c4}
#ownerAutopostControl .owner-ap-plan-live-copy{display:grid;gap:2px;min-width:0}
#ownerAutopostControl .owner-ap-plan-live-copy>b{font-size:17px;line-height:1.4;color:#f2f9ff}
#ownerAutopostControl .owner-ap-plan-live-copy>small{font-size:14px;line-height:1.55;color:#a8bfd2}
#ownerAutopostControl .owner-ap-plan-source{
  justify-self:end;padding:6px 9px;border:1px solid #3e6580;border-radius:999px;background:#0b2438;
  color:#b8d7ea;font-size:12.5px;font-style:normal;font-weight:800;white-space:nowrap
}
#ownerAutopostControl .owner-ap-plan-source[data-source="AI"]{border-color:#317c69;background:#0a2e27;color:#a9efd4}

#ownerAutopostControl .owner-ap-plan-review-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:14px
}
#ownerAutopostControl .owner-ap-plan-day{
  gap:11px;padding:14px;border-color:#345975;border-radius:15px;
  background:linear-gradient(155deg,#091b2e,#081725);box-shadow:0 10px 26px rgba(0,0,0,.08)
}
#ownerAutopostControl .owner-ap-plan-day h4{
  display:flex;align-items:center;justify-content:space-between;margin:0;padding-bottom:8px;
  border-bottom:1px solid rgba(117,170,207,.14);font-size:19px;color:#f0f8ff
}
#ownerAutopostControl .owner-ap-plan-slot{
  grid-template-columns:24px 68px minmax(0,1fr) auto;align-items:start;gap:10px;
  min-height:154px;padding:12px;border-color:#2d506a;border-radius:13px;background:#0a1d31
}
#ownerAutopostControl .owner-ap-plan-slot:hover{border-color:#3c6c8d;background:#0b2138}
#ownerAutopostControl .owner-ap-plan-slot input{margin-top:4px}
#ownerAutopostControl .owner-ap-plan-time{
  display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:4px 7px;
  border:1px solid #2d7667;border-radius:9px;background:#0a2a27;color:#9cebd5;font-size:16px
}
#ownerAutopostControl .owner-ap-plan-editorial-copy{gap:6px}
#ownerAutopostControl .owner-ap-plan-meta{
  display:flex;flex-wrap:wrap;gap:5px;align-items:center
}
#ownerAutopostControl .owner-ap-plan-meta em{
  padding:3px 7px;border:1px solid #304f68;border-radius:999px;background:#0c263b;
  color:#a9c1d2;font-size:11.5px;line-height:1.35;font-style:normal;font-weight:750
}
#ownerAutopostControl .owner-ap-plan-meta .owner-ap-plan-index{border-color:#336e62;color:#a7e9d4;background:#0a2b27}
#ownerAutopostControl .owner-ap-plan-topic{
  display:block;color:#f5fbff;font-size:17px;line-height:1.45;font-weight:800;white-space:normal
}
#ownerAutopostControl .owner-ap-plan-line{
  display:block;color:#afc5d6;font-size:14px;line-height:1.52;white-space:normal
}
#ownerAutopostControl .owner-ap-plan-line::first-letter{color:#d9ebf7}
#ownerAutopostControl .owner-ap-plan-visual{color:#94b9ce}
#ownerAutopostControl .owner-ap-plan-choice{margin-top:2px}
#ownerAutopostControl .owner-ap-plan-slot[data-excluded="1"]{
  opacity:.58;background:#131a24;border-style:dashed
}
#ownerAutopostControl .owner-ap-plan-slot[data-excluded="1"] .owner-ap-plan-topic{text-decoration:line-through;text-decoration-thickness:1px}
#ownerAutopostControl .owner-ap-plan-review-summary{
  display:flex;align-items:center;min-height:44px;border:1px solid #31566d;border-radius:11px;
  background:#0a1b2d;color:#dcebf5;font-weight:750
}
#ownerAutopostControl .owner-ap-plan-review-actions{
  position:sticky;bottom:10px;z-index:5;padding:10px;border:1px solid rgba(76,120,150,.32);
  border-radius:13px;background:rgba(7,20,34,.94);backdrop-filter:blur(12px)
}

@media(max-width:980px){
  #ownerAutopostControl .owner-ap-plan-goal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  #ownerAutopostControl .owner-ap-plan-review-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-plan-goal-grid{grid-template-columns:1fr}
  #ownerAutopostControl .owner-ap-plan-goal-grid button{min-height:70px}
  #ownerAutopostControl .owner-ap-plan-live-status{grid-template-columns:38px minmax(0,1fr);padding:12px}
  #ownerAutopostControl .owner-ap-plan-live-icon{width:38px;height:38px}
  #ownerAutopostControl .owner-ap-plan-source{grid-column:2;justify-self:start}
  #ownerAutopostControl .owner-ap-plan-slot{
    grid-template-columns:24px 62px minmax(0,1fr);min-height:168px;padding:12px 10px
  }
  #ownerAutopostControl .owner-ap-plan-choice{grid-column:3;justify-self:start}
  #ownerAutopostControl .owner-ap-plan-topic{font-size:16.5px}
  #ownerAutopostControl .owner-ap-plan-line{font-size:14px}
  #ownerAutopostControl .owner-ap-plan-review-actions{bottom:6px}
}


/* Draft Plan approval gate · plan first, media only after Owner confirms */
#ownerAutopostControl .owner-ap-plan-review-actions{
  align-items:center
}
#ownerAutopostControl .owner-ap-plan-draft-action{
  min-height:44px
}
#ownerAutopostControl #ownerApPlanReviewEdit,
#ownerAutopostControl #ownerApPlanReviewRegenerate{
  border-color:#416986
}
#ownerAutopostControl #ownerApPlanReviewCancel{
  border-color:#7d4a58;background:#2a161d;color:#ffc0ca
}
#ownerAutopostControl #ownerApPlanReviewSave{
  min-height:46px;padding-left:16px;padding-right:16px
}
#ownerAutopostControl .owner-ap-plan-live-status[data-tone="plan"]{
  border-color:#557aa0;background:linear-gradient(145deg,#0b2139,#0a1b2e)
}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-plan-review-actions{
    display:grid;grid-template-columns:1fr 1fr;position:static
  }
  #ownerAutopostControl #ownerApPlanReviewSave{grid-column:1/-1}
}


/* Customer-controlled Draft Plan editing · no AI path */
#ownerAutopostControl .owner-ap-plan-inline-edit{
  justify-self:start;margin-top:5px;padding:6px 9px;border:1px solid #3b6683;border-radius:9px;
  background:#0b263c;color:#bfe5f7;font:inherit;font-size:13px;font-weight:800;cursor:pointer
}
#ownerAutopostControl .owner-ap-plan-inline-edit:hover{border-color:#55a7c9;background:#0d304a}
#ownerAutopostControl .owner-ap-plan-inline-editor{
  display:grid;gap:8px;margin-top:4px;padding:10px;border:1px solid #385d77;border-radius:11px;background:#071728
}
#ownerAutopostControl .owner-ap-plan-inline-editor[hidden]{display:none}
#ownerAutopostControl .owner-ap-plan-edit-field{display:grid;gap:4px}
#ownerAutopostControl .owner-ap-plan-edit-field>span{font-size:12.5px;font-weight:800;color:#9fbcd1}
#ownerAutopostControl .owner-ap-plan-edit-field input,
#ownerAutopostControl .owner-ap-plan-edit-field textarea{
  width:100%;min-height:40px;padding:8px 9px;border:1px solid #355b76;border-radius:8px;
  background:#091d30;color:#eff9ff;font:inherit;font-size:14px;line-height:1.5
}
#ownerAutopostControl .owner-ap-plan-edit-field textarea{min-height:72px;resize:vertical}
#ownerAutopostControl .owner-ap-plan-inline-editor-actions{
  display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:2px
}
#ownerAutopostControl .owner-ap-plan-inline-editor-actions button{font-size:13.5px;min-height:38px}
#ownerAutopostControl .owner-ap-qluxury-constraints{display:grid;gap:9px;padding:14px;border:1px solid #b9a66b;border-radius:13px;background:linear-gradient(135deg,#edf7f2,#fffdf5 65%,#f8f0e4)}
#ownerAutopostControl .owner-ap-qluxury-constraints[hidden]{display:none!important}
#ownerAutopostControl .owner-ap-qluxury-constraints .owner-ap-step-title{margin-bottom:3px}
#ownerAutopostControl .owner-ap-post-type-step[hidden],#ownerAutopostControl #ownerApImageStyleStep[hidden],#ownerAutopostControl #ownerApCameraStep[hidden]{display:none!important}
@media(max-width:640px){
  #ownerAutopostControl .owner-ap-plan-inline-editor-actions{display:grid;grid-template-columns:1fr 1fr}
}
