@import url('/customer-studio.css');
:root{--ink:#242b2a;--muted:#737a77;--green:#294c43;--line:#e3e7e2;--cream:#f6f7f3}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,system-ui,sans-serif;font-size:14px}button,a,input,textarea,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #98bbae;outline-offset:3px}button{border:1px solid var(--line);background:white;border-radius:9px;padding:9px 13px;color:var(--ink)}a{color:inherit;text-decoration:none}.top{height:76px;display:flex;align-items:center;gap:28px;padding:0 36px;background:white;border-bottom:1px solid var(--line)}.mark{font-size:30px;font-weight:850;letter-spacing:-4px;padding-right:20px}.top .active{color:var(--green);font-weight:700;border-bottom:2px solid var(--green);height:100%;display:flex;align-items:center}.private{margin-left:auto;color:var(--muted);font-size:12px}.top select{max-width:230px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fafbf8}main{max-width:1600px;margin:auto;padding:36px}.intro{display:flex;justify-content:space-between;gap:30px;align-items:center;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--muted)}h1{font-family:Georgia,serif;font-size:37px;line-height:1.13;font-weight:400;margin:12px 0}p{line-height:1.6;color:var(--muted)}.context-card{display:flex;align-items:center;gap:15px;padding:23px;background:#eaf0e7;border:1px solid #dce5d9;border-radius:14px;max-width:410px}.context-card p{font-size:12px;margin:7px 0}.context-card button{border:0;padding:0;background:transparent;color:var(--green);font-size:12px;font-weight:600}.spark{font-size:23px;color:var(--green)}.paths{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px}.paths button{display:grid;grid-template-columns:38px 1fr 20px;grid-template-rows:auto auto;text-align:left;padding:20px;border-radius:13px;box-shadow:0 3px 12px #202d2004}.paths button:hover{border-color:#9db4a8;background:#fcfefb}.paths button>span{grid-row:1/3;font-size:24px;color:var(--green)}.paths strong{font-size:15px}.paths small{grid-column:2;color:var(--muted);margin-top:5px}.paths b{grid-column:3;grid-row:1/3}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);border:1px solid var(--line);background:white;border-radius:16px;overflow:hidden;min-height:640px}.conversation{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}.conversation-title{display:flex;align-items:center;gap:12px;padding:22px;border-bottom:1px solid var(--line)}h2{font-size:19px;margin:0;font-weight:600}.conversation-title h2{font-size:14px}.conversation-title p{font-size:11px;margin:4px 0 0}#transcript{flex:1;max-height:460px;min-height:200px;overflow:auto;padding:22px}.bubble{background:#f3f5ef;border-radius:12px;padding:14px;margin-bottom:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{background:#edf1ed;margin-left:22px}.bubble small{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}#composer{padding:18px;border-top:1px solid var(--line);position:sticky;bottom:0;background:white}label{display:block;font-size:12px;font-weight:600;margin:12px 0 7px}textarea,input,select{border:1px solid #dbe0d9;border-radius:8px;padding:11px;max-width:100%;width:100%;background:white;color:var(--ink)}textarea{resize:vertical;min-height:100px;line-height:1.6}#composer>div{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:10px}#composer span,#composer small{font-size:10px;color:var(--muted)}#composer small{display:block;margin-top:9px;line-height:1.5}.primary{background:var(--green);color:white;border-color:var(--green)}.content{padding:26px;min-width:0}.content-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.content-top h2{margin-top:7px;font-family:Georgia,serif;font-size:28px;font-weight:400}.view-switch{display:flex;background:var(--cream);border-radius:9px;padding:3px}.view-switch button{border:0;background:transparent;font-size:12px}.view-switch button[aria-pressed=true]{background:white;box-shadow:0 1px 4px #0001}.notice{color:#7b806f;font-size:11px;padding:11px 14px;background:#f7f5ee;border-radius:8px;margin-bottom:18px}.plan-box{border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:20px}.plan-box h3{margin:0 0 8px;font-size:15px}.plan-box p{white-space:pre-wrap;font-size:12px}.plan-box button{font-size:12px}#posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.post-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0;background:white}.post-card .image{position:relative;background:#f0f1e9;height:170px;display:flex;align-items:center;justify-content:center}.post-card img{width:100%;height:100%;object-fit:cover}.post-card .image small{position:absolute;bottom:6px;left:7px;background:#fffffff0;border-radius:4px;font-size:9px;padding:4px;color:#4c554e}.post-body{padding:14px}.post-body h3{font-size:14px;line-height:1.5;margin:8px 0}.post-body p{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.pill{display:inline-block;background:#edf2e9;color:#4a6750;border-radius:20px;font-size:9px;padding:5px 8px}.platform{font-size:10px;font-weight:600;color:#666}.fixture{font-size:9px;color:#8d7955;display:block;margin:7px 0}.post-body button{width:100%;font-size:11px}.post-date{font-size:10px;color:var(--muted);margin-bottom:12px}.footer-note{font-size:10px;color:#92978f;margin-top:24px;text-align:center}.empty{grid-column:1/-1;padding:45px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:12px}.calendar-head{display:flex;align-items:center;justify-content:space-between;margin:18px 0}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}.day{min-height:100px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:7px;font-size:11px}.day.empty-day{background:#fafbf8}.day button{display:block;width:100%;font-size:10px;text-align:left;padding:5px;margin-top:5px;background:#edf2e9;border:0;overflow-wrap:anywhere}.day-name{font-size:10px;padding:10px;text-align:center;color:var(--muted)}.mobile-tabs{display:none}dialog{width:min(680px,calc(100% - 26px));max-height:90vh;overflow:auto;border:0;border-radius:17px;padding:26px;color:var(--ink);box-shadow:0 25px 90px #0003}dialog::backdrop{background:#202b2866}dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}dialog header button{border:0;font-size:23px}dialog .actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}dialog img{max-width:100%;max-height:230px;object-fit:cover;border-radius:9px}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 system-ui}dialog .helper{font-size:12px;color:var(--muted);line-height:1.6}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.history-item{border-top:1px solid var(--line);padding:12px 0}#status{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:90%;padding:12px 22px;background:var(--green);color:white;border-radius:10px;z-index:100;display:none}body [hidden]{display:none!important}
@media(max-width:1100px){#posts{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace{grid-template-columns:300px minmax(0,1fr)}main{padding:25px}}
@media(max-width:740px){.top{height:auto;min-height:65px;padding:12px 16px;gap:15px;flex-wrap:wrap}.top .mark{font-size:26px;padding:0}.top a{font-size:11px}.top .active{height:auto;border:0}.private{display:none}.top select{max-width:none;font-size:12px;width:100%;padding:8px}.intro{display:block;margin-bottom:20px}.intro h1{font-size:31px}.intro>div>p{font-size:12px}.context-card{padding:15px;margin-top:18px;max-width:none}.paths{gap:7px;margin-bottom:18px}.paths button{display:flex;flex-direction:column;padding:12px 9px;gap:7px}.paths button>span{font-size:20px}.paths strong{font-size:11px;line-height:1.4}.paths small,.paths b{display:none}main{padding:18px 14px}.mobile-tabs{display:flex;gap:8px;margin-bottom:10px}.mobile-tabs button{flex:1;font-size:12px}.workspace{display:block;min-height:540px}.workspace[data-panel=content] .conversation{display:none}.workspace[data-panel=conversation] .content{display:none}.conversation{border:0;min-height:580px}.conversation-title{padding:18px}#transcript{max-height:380px}#composer{position:sticky;bottom:0}.content{padding:18px 12px}.content-top h2{font-size:23px}#posts{grid-template-columns:1fr}.post-card .image{height:245px}.post-body{padding:18px}.post-body p{font-size:13px}.post-body button{font-size:13px}.notice{line-height:1.6;font-size:10px}.day{padding:4px;min-height:85px}.day button{font-size:8px;padding:4px 2px}.day-name{font-size:8px;padding:8px 2px}.field-row{grid-template-columns:1fr}.calendar-head button{font-size:10px}dialog{padding:20px}dialog h2{font-size:19px}}

.content-top{flex-wrap:wrap}.content-top>button{margin-left:auto;font-size:11px}
/* Original social canvases reuse the protected Engine preview boundary. */
.artboard-wrap{width:100%;position:relative;overflow:hidden;background:#eee}.artboard-wrap iframe{position:absolute;inset:0;border:0;transform-origin:top left;pointer-events:none;max-width:none}.image.graphic-image{height:auto!important;aspect-ratio:4/5;cursor:pointer}.graphic-image>.artboard-wrap{height:100%}.image.graphic-image>small{position:absolute;bottom:10px;left:10px;z-index:2}.creative-label{display:block;font-size:10px;color:#725c32;background:#f7f0e3;padding:6px 8px;border-radius:5px;margin:7px 0}.post-card .visual-action{margin-top:6px;color:#294c43;background:#f4f7ef}.large-artboard{max-width:510px;margin:16px auto;border:1px solid #ddd}.visual-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 0}.visual-compare>div{min-width:0}.visual-compare strong{display:block;margin:8px 0}.visual-compare img{width:100%;height:320px;object-fit:cover}.code-editor{min-height:260px;font-family:Consolas,monospace;font-size:12px}.download-pack{display:inline-block;padding:12px;border-radius:8px;background:#294c43;color:white;margin:10px 0}.strategy-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.strategy-summary>div{display:flex;flex-direction:column;gap:5px;padding:12px;background:#f6f8f3;border-radius:8px}.strategy-summary small{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#6f7d72}.strategy-summary span{font-size:12px;line-height:1.5}.strategy-summary details{grid-column:1/-1;font-size:12px}.strategy-summary details p{white-space:pre-line}.delivery-states{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.delivery-states>div{display:flex;flex-direction:column;gap:6px;padding:12px;background:#f4f7f0;border-radius:7px}.delivery-states small{font-size:11px;line-height:1.4}.readiness-item{padding:8px;border-bottom:1px solid #e3e7e2;font-size:13px}.content-top{flex-wrap:wrap;gap:12px}#publishing-readiness{font-size:12px;margin-left:auto}button:disabled{cursor:default;opacity:.55}details>summary{cursor:pointer;padding:10px 0;font-weight:600}dialog .actions{flex-wrap:wrap}
.calendar-grid{gap:7px}.calendar-grid .day{padding:7px;min-width:0;min-height:84px}.calendar-day-number{font-size:11px;display:block;margin-bottom:7px;color:#526059}.calendar-grid .calendar-post{display:flex;flex-direction:column;align-items:stretch;text-align:left;border:1px solid #dfe6db;background:white;padding:0;overflow:hidden;width:100%;margin:6px 0;border-radius:7px;font-size:10px;min-width:0}.calendar-post>img{width:100%;height:78px;object-fit:cover}.calendar-post>.artboard-wrap{height:90px!important;aspect-ratio:auto}.calendar-post>span,.calendar-post>strong,.calendar-post>small{padding:4px 7px;overflow-wrap:anywhere}.calendar-post>strong{line-height:1.3}.calendar-post>small{color:#54705b;background:#eef4e9}.calendar-post .platform{font-size:9px}.calendar-grid .day-name{font-size:10px}.plan-box>h3{margin-top:0}
@media(min-width:1100px){#posts{grid-template-columns:repeat(2,minmax(0,1fr))}.post-body h3{font-size:16px}.post-card .image:not(.graphic-image){height:230px}}
@media(max-width:700px){.strategy-summary{grid-template-columns:1fr}.delivery-states{grid-template-columns:1fr 1fr}.visual-compare{grid-template-columns:1fr}.calendar-grid{display:block}.calendar-grid .day-name,.calendar-grid .day:not(.has-posts){display:none}.calendar-grid .day.has-posts{padding:12px;margin:14px 0;background:#f5f7f1;border-radius:10px}.calendar-grid .calendar-post{display:grid;grid-template-columns:95px 1fr;grid-template-rows:auto auto auto;min-height:106px}.calendar-post>img,.calendar-post>.artboard-wrap{grid-column:1;grid-row:1/4;height:100%!important;min-height:106px;object-fit:cover}.calendar-post>span,.calendar-post>strong,.calendar-post>small{grid-column:2;padding:7px 10px}.calendar-post .platform{font-size:10px}.calendar-post>strong{font-size:13px}.calendar-post>small{font-size:11px}.calendar-day-number{font-size:14px}#publishing-readiness{margin-left:0}.large-artboard{max-width:100%}.visual-compare img{height:260px}}
.full-response{white-space:pre-wrap;font-family:inherit;font-size:14px;line-height:1.7;overflow-wrap:anywhere}

.post-tags{display:block;color:#466052;font-size:11px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}.preparation-label{display:block;font-size:10px;background:#edf2e6;color:#496041;padding:5px 7px;border-radius:4px}.check-field{display:flex;align-items:flex-start;gap:9px;margin:12px 0;font-size:12px;line-height:1.5}.check-field input{width:auto!important;margin:3px 0}.post-preflight{background:#f6f7f0;padding:14px;border-radius:10px}.check-error{color:#8d482e!important;font-size:12px}.prepared-caption{background:#f7f8f4;padding:16px;border:1px solid #e0e6db;border-radius:9px}.publishing-summary{padding:12px;background:#f6f7f1;border-radius:9px;font-size:12px;line-height:1.5}.publishing-summary p{overflow-wrap:anywhere}

.dispatch-queue{margin-top:28px;padding-top:20px;border-top:1px solid #ddd8ce}.delivery-card{border:1px solid #dedbd2;background:#faf9f6;border-radius:14px;padding:18px;margin:12px 0;overflow-wrap:anywhere}.delivery-card h4{margin:9px 0}.dispatch-queue .preparation-source{display:inline-block;padding:5px 9px;background:#ede8dd;border-radius:6px;font-size:11px}.dispatch-queue .actions{flex-wrap:wrap}@media(max-width:700px){.delivery-card{padding:14px}.dispatch-queue h3{font-size:20px}}

.calendar-dispatch{display:block;width:100%;margin-top:5px;padding:6px;border:1px solid #d2dcd4;background:#eef3ef;color:#234434;border-radius:7px;font-size:11px;text-align:left;white-space:normal;overflow-wrap:anywhere}

.ongoing-manager{margin:20px 0;padding:24px;border:1px solid #d8e1d9;border-radius:18px;background:linear-gradient(120deg,#f2f6ef,#faf8f2)}.ongoing-manager h3{font-size:25px;margin:8px 0}.ongoing-manager .actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.ongoing-manager details{margin-top:14px}.content-work{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #ddd;padding:12px 0;font-size:13px}.content-work small{display:block}.calendar-content-work{display:block;width:100%;margin-top:6px;padding:9px;border:1px dashed #98ad9c;border-radius:8px;background:#f2f6ef;text-align:left;white-space:normal}.calendar-content-work strong,.calendar-content-work small{display:block;font-size:11px}.ongoing-manager .eyebrow{letter-spacing:2px;color:#526c59}@media(max-width:700px){.ongoing-manager{padding:16px}.content-work{flex-direction:column;gap:4px}.ongoing-manager .actions button{flex:1 1 44%}}

.dialog-feedback{padding:12px 14px;border:1px solid #b8cfc4;border-radius:10px;background:#edf5f0;color:#214d40;line-height:1.5}.dialog-feedback.is-error{border-color:#dcbb9c;background:#fff4e9;color:#6d3518}

.ad-proposal-image{width:100%;max-height:320px;object-fit:contain;border-radius:12px;background:#f4f1eb}.ad-proposal-alternatives{display:flex;gap:8px;overflow-x:auto;margin:12px 0}.ad-proposal-choice{display:flex;flex-direction:column;align-items:stretch;gap:6px;flex:0 0 130px;max-width:130px;padding:8px;font-size:12px;line-height:1.35;white-space:normal}.ad-proposal-thumb{width:100%;height:75px;object-fit:cover;border-radius:6px}

.facebook-ad-preview{background:white;border:1px solid #d9e0dc;border-radius:14px;overflow:hidden;max-width:520px;margin:20px auto}.facebook-ad-preview>strong,.facebook-ad-preview>small,.facebook-ad-preview>p,.facebook-ad-preview>h3{display:block;margin:14px 20px}.facebook-ad-preview>small{color:#6b7470;font-size:12px}.facebook-ad-preview .ad-proposal-image{border-radius:0;max-height:510px;width:100%;object-fit:contain;margin:0}
.paths [hidden], .guided-ad [hidden] { display: none; }
.guided-ad { min-width: 0; }
.guided-ad > p { margin: 12px 0; }
.guided-ad-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.guided-ad-steps span { padding: 5px 9px; border-radius: 6px; color: #4f6058; background: #eef1ed; font-size: 12px; }
.guided-ad-steps span[aria-current="step"] { background: #183052; color: #fff; }
.guided-ad .guided-ad-mode { color: #755718; font-size: 12px; }
.guided-ad .guided-ad-panel, .guided-ad .guided-ad-feed {
  margin: 12px 0; padding: 13px; border: 1px solid #d9e0dc;
  background: #f7f8f4; border-radius: 10px; overflow-wrap: anywhere;
}
.guided-ad .guided-ad-panel h3 { margin: 0 0 5px; }
.guided-ad .guided-ad-panel p { margin: 5px 0; }
.guided-ad-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; }
.guided-ad-grid > div { min-width: 0; }
.guided-ad .guided-ad-facts { margin: 10px 0; border-top: 1px solid #d9e0dc; }
.guided-ad .guided-ad-facts div {
  display: grid; grid-template-columns: minmax(90px,.45fr) minmax(0,1fr); gap: 9px;
  border-bottom: 1px solid #d9e0dc; padding: 7px 0;
}
.guided-ad .guided-ad-facts dt { color: #4f6058; }
.guided-ad .guided-ad-facts dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.guided-ad .guided-ad-platforms { display: flex; gap: 12px; margin: 6px 0; padding: 0; border: 0; }
.guided-ad .guided-ad-check { display: flex; align-items: center; gap: 7px; min-height: 35px; margin: 5px 0; }
.guided-ad .guided-ad-check input { width: auto; margin: 0; flex: none; }
.guided-ad .guided-ad-feed { margin-top: 7px; background: white; }
.guided-ad .guided-ad-feed small { display: block; }
.guided-ad .guided-ad-feed p { white-space: pre-line; overflow-wrap: anywhere; }
.guided-ad .guided-ad-art {
  display: grid; gap: 3px; padding: 13px; margin: 8px 0; border-radius: 7px;
  background: #132742; color: #fff7e6;
}
.guided-ad .guided-ad-art small { color: #f4d58c; }
.guided-ad .guided-ad-art strong { font-size: 26px; line-height: 1.1; }
.guided-ad button[aria-pressed="true"] { background: #e4ebf1; border-color: #93a8bd; }
.guided-ad .actions { flex-wrap: wrap; }
.paths #guided-paid-entry { border-color: #a9b7c5; color: #183052; }
@media (max-width: 610px) {
  .guided-ad-grid { grid-template-columns: minmax(0,1fr); }
}

/* Command Intelligence palette, scoped to this private Social Studio preview. */
.paid-preview-theme {
  --ink: #15243c;
  --muted: #5b6171;
  --green: #6236a7;
  --line: #ded8ce;
  --cream: #f7f3ed;
  --paid-navy: #152844;
  --paid-warm: #fffdfa;
  --paid-purple: #6333a4;
  --paid-lilac: #eee6f8;
  --paid-gold: #815917;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.paid-preview-theme .top {
  background: var(--paid-navy);
  border-color: #b39561;
  color: #f8efdf;
}
.paid-preview-theme .top a { color: #f8efdf; }
.paid-preview-theme .top .mark { color: #f3d489; }
.paid-preview-theme .top .active { color: #fff; border-color: #d5aaf7; }
.paid-preview-theme .top .private { color: #f3d489; }
.paid-preview-theme .top select { color: var(--ink); background: #faf5ec; }
.paid-preview-theme .intro h1, .paid-preview-theme .content-top h2 {
  font-family: inherit; font-weight: 680; letter-spacing: -.035em;
}
.paid-preview-theme .eyebrow { color: var(--paid-gold); }
.paid-preview-theme .paths { grid-template-columns: repeat(4,minmax(0,1fr)); }
.paid-preview-theme .paths button { background: var(--paid-warm); border-color: var(--line); }
.paid-preview-theme .paths #guided-paid-entry { background: var(--paid-lilac); border-color: #9172ba; }
.paid-preview-theme #your-ads-entry {
  color: #502486; background: var(--paid-lilac); border: 1px solid #cdb8e2; font-weight: 650;
}
.paid-preview-theme #your-ads-entry[hidden] { display: none; }
.paid-preview-theme .view-switch { flex-wrap: wrap; gap: 4px; }
.paid-preview-theme .ongoing-manager { background: #faf5ed; border-color: var(--line); }
.paid-preview-theme dialog { background: var(--paid-warm); color: var(--ink); }
.paid-preview-theme dialog::backdrop { background: #13233e84; }
.paid-preview-theme :is(button, input, textarea, select):focus-visible { outline: 2px solid var(--paid-purple); outline-offset: 2px; }
.paid-preview-theme .guided-ad > .actions button,
.paid-preview-theme .guided-ad .actions button { min-height: 42px; padding: 9px 13px; }
.paid-preview-theme .guided-ad .primary { background: var(--paid-purple); color: #fff; border-color: var(--paid-purple); }
.paid-preview-theme .guided-ad .guided-ad-mode { color: var(--paid-gold); }
.paid-preview-theme .guided-ad-steps span { background: #f1ede6; color: #4b5363; }
.paid-preview-theme .guided-ad-steps span[aria-current="step"] { background: var(--paid-navy); color: #fff; }
.paid-preview-theme .guided-ad .guided-ad-panel { background: #faf5ec; border-color: var(--line); }
.paid-preview-theme .guided-ad ol { padding-inline-start: 22px; line-height: 1.5; }
.paid-preview-theme .guided-ad ol li + li { margin-top: 4px; }
.paid-preview-theme .guided-ad .guided-ad-facts,
.paid-preview-theme .guided-ad .guided-ad-facts div { border-color: var(--line); }
.paid-preview-theme .guided-ad button[aria-pressed="true"] { background: var(--paid-lilac); border-color: #9172ba; color: #502486; }
.paid-preview-theme .guided-ad-radius-sketch {
  min-height: 84px; margin-top: 10px; display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-radius: 7px; background: #f2edf7;
}
.guided-ad-radius-marker {
  width: var(--radius-size,44px); aspect-ratio: 1; flex: 0 0 auto;
  display: grid; place-items: center; border: 2px solid #8a59bb; border-radius: 50%; background: #e6d8f3;
}
.guided-ad-radius-marker::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6333a4; }
.paid-preview-theme .guided-ad-account-paths > button { flex: 1 1 190px; text-align: left; }
.paid-campaign-questions .guided-ad-panel { margin-block: 12px; }
.paid-optional-review { margin-block: 15px; color: var(--paid-navy); }
.paid-optional-review summary { cursor: pointer; }
.paid-placement-previews { margin-block: 20px; }
.paid-placement-previews h3 { margin-bottom: 8px; }
.paid-placement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.paid-placement-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.paid-placement-card header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.paid-placement-card h4 { margin: 0 0 7px; }
.paid-placement-card header small { color: #655180; }
.paid-placement-card .helper { margin: 7px 0 0; font-size: 12px; line-height: 1.4; }
.paid-placement-frame { border: 1px solid #e1dcec; border-radius: 8px; overflow: hidden; position: relative; font-size: 11px; }
.paid-placement-identity { padding: 6px; display: flex; align-items: center; gap: 6px; line-height: 1.25; overflow-wrap: anywhere; }
.paid-placement-avatar {
  display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 50%;
  background: #e7f1ff; color: #17468c; font-weight: bold;
}
.paid-placement-instagram .paid-placement-avatar {
  border: 1px solid #a84481; background: #fff6f9; color: #7c2b62;
}
.paid-placement-frame small { display: block; }
.paid-placement-media {
  min-height: 92px; display: grid; place-items: center; overflow: hidden; padding: 8px;
  background: linear-gradient(125deg,#172648,#593585 68%,#915142); color: white;
  font-size: 15px; overflow-wrap: anywhere;
}
.paid-placement-media > * { min-width: 0; }
.paid-placement-media img { max-width: 100%; max-height: 180px; object-fit: contain; }
.paid-placement-media .guided-ad-art { width: 100%; padding: 6px; font-size: 9px; }
.paid-placement-media .guided-ad-art strong { font-size: 16px; }
.paid-placement-placeholder { font-size: 11px; color: #fff; background: #1a203c; border-radius: 5px; padding: 4px 7px; }
.paid-placement-message { padding: 6px; overflow-wrap: anywhere; }
.paid-placement-message p, .paid-placement-feed > p {
  margin: 4px 6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.paid-placement-message > strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.paid-placement-cta { margin-top: 5px; padding: 3px 5px; border-radius: 4px; background: #eee7f7; color: #371e56; font-weight: 700; }
.paid-placement-feed.paid-placement-facebook .paid-placement-message {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 6px; background: #f0f2f5;
}
.paid-placement-feed.paid-placement-facebook .paid-placement-cta { margin: 0; background: #dfe4eb; color: #243348; }
.paid-placement-feed.paid-placement-instagram .paid-placement-media { aspect-ratio: 1; }
.paid-placement-feed.paid-placement-instagram > .paid-placement-cta {
  margin: 0; padding: 6px; border-radius: 0; background: #492f65; color: #fff;
}
.paid-placement-engagement {
  display: flex; justify-content: space-between; gap: 4px; padding: 5px 6px; border-top: 1px solid #e5e7eb;
  color: #454b56;
}
.paid-placement-instagram .paid-placement-engagement { font-size: 13px; color: #1a1520; }
.paid-placement-stories, .paid-placement-reels {
  display: flex; flex-direction: column; aspect-ratio: 9/16; min-height: 235px; background: #192847; color: #fff;
}
.paid-placement-stories .paid-placement-media, .paid-placement-reels .paid-placement-media {
  position: absolute; inset: 0; padding-bottom: 55px;
}
.paid-placement-stories .paid-placement-media img, .paid-placement-reels .paid-placement-media img {
  width: 100%; height: 100%; max-height: none; object-fit: cover; position: absolute; inset: 0;
}
.paid-placement-stories .paid-placement-identity, .paid-placement-reels .paid-placement-identity {
  background: linear-gradient(#17243eea,#17243e90,transparent); padding-bottom: 18px; z-index: 1;
}
.paid-placement-stories .paid-placement-message, .paid-placement-reels .paid-placement-message {
  margin-top: auto; background: linear-gradient(transparent,#14223bed 30%); padding: 16px 6px 6px; z-index: 1;
}
.paid-placement-stories .paid-placement-message p, .paid-placement-reels .paid-placement-message p {
  color: #eee9f8; margin-inline: 0; line-height: 1.35;
}
.paid-placement-reels .paid-placement-message { padding-right: 28px; }
.paid-placement-story-progress { display: flex; gap: 3px; margin: 5px 6px 0; }
.paid-placement-story-progress span { flex: 1; height: 2px; background: #fcf9f3; border-radius: 3px; }
.paid-placement-story-progress span + span { background: #ffffff80; }
.paid-placement-stories.paid-placement-instagram .paid-placement-cta {
  width: max-content; max-width: 100%; margin-inline: auto; padding: 4px 10px; border-radius: 16px; background: #fff;
}
.paid-placement-story-progress, .paid-placement-reel-controls { z-index: 1; }
.paid-placement-reel-controls {
  position: absolute; right: 4px; bottom: 18%; display: grid; gap: 3px; text-align: center;
  padding: 3px; border-radius: 4px; background: #182746; min-width: 15px;
}
.paid-placement-instagram .paid-placement-reel-controls { bottom: 28%; }
.paid-placement-card-extra { grid-column: 1/-1; }
.paid-placement-card-extra .paid-placement-listing {
  display: grid; grid-template-columns: minmax(72px, 110px) minmax(0, 1fr); align-items: center;
  gap: 10px; padding: 6px; overflow-wrap: anywhere;
}
.paid-placement-card-extra .paid-placement-media { min-height: 66px; border-radius: 4px; }
.paid-placement-card-extra .paid-placement-media img { max-height: 70px; }
.paid-placement-explore .paid-placement-listing { grid-template-columns: minmax(0, 1fr) minmax(72px, 110px); }
.paid-placement-explore .paid-placement-listing .paid-placement-media { grid-column: 2; grid-row: 1; }
.paid-placement-explore .paid-placement-listing > strong { grid-column: 1; grid-row: 1; }
@media(max-width:520px) {
  .paid-placement-grid { grid-template-columns: minmax(0,1fr); }
  .paid-placement-card { max-width: 290px; width: 100%; margin-inline: auto; box-sizing: border-box; }
}
.paid-preview-theme #details:has(.your-ads) { width: min(1060px,calc(100% - 26px)); }
.your-ads-row {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 14px;
  border-top:1px solid var(--line); padding:13px 0;
}
.your-ads-row > div { min-width:0; overflow-wrap:anywhere; }
.your-ads-row h3, .your-ads-row p { margin:0; }
.your-ads-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.your-ads-grid > * { min-width:0; }
.your-ads-single { grid-template-columns: minmax(0,1fr); }
.your-ads-samples, .ad-work-samples { margin-block: 12px; }
.your-ads-samples summary, .ad-work-samples summary { cursor:pointer; }
.ad-work-list { margin-top:18px; }
.ad-work-list h4 { margin:0 0 10px; }
.ad-work-row { align-items:center; flex-wrap:wrap; }
.ongoing-manager .ad-work-row .actions { margin:0; }
.your-ads-version-title { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.your-ads-version-title h4 { margin:0; }
.your-ads-version-title button { padding:7px 10px; }
.your-ads-placement-control { max-width: 270px; }
.your-ads-placement { margin-top: 10px; padding: 8px; background: #f7f3ed; border-radius: 8px; }
.your-ads-placement .paid-placement-card { max-width: 285px; margin-inline: auto; }
.your-ads-placement .paid-placement-card:is([data-placement="stories"], [data-placement="reels"]) { max-width: 205px; }
.your-ads-changed { background:#f2e8fa; }
.your-ads-change-label { color:#6333a4; font-weight:650; }
@media (min-width: 611px) {
  .your-ads-comparison .your-ads-version {
    display:grid; grid-row:span 3; grid-template-rows:subgrid; gap:3px;
  }
}
@media (max-width: 1050px) {
  .paid-preview-theme .paths { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 610px) {
  .your-ads-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 420px) {
  .paid-preview-theme .paths { grid-template-columns: minmax(0,1fr); }
}

/* Social Studio workspace */
body [hidden] { display: none !important; }
body.paid-preview-theme { background: #f5f3ee; --ink: #172638; --line: #dedbd3; }
.paid-preview-theme .top { background: #152235; }
.studio-nav { display:flex; flex-wrap:wrap; gap: 0 22px; padding: 0 max(20px, calc((100% - 1288px) / 2)); background:#fffefa; border-bottom:1px solid var(--line); }
.studio-nav button { border:0; background:none; border-radius:0; padding: 14px 0 11px; border-bottom:3px solid transparent; white-space:nowrap; font-weight:600; }
.studio-nav button[aria-current] { color:#1e5245; border-color:#1e5245; }
.dashboard-heading, .work-editor > header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.dashboard-heading p, #calendar > p { margin-top:6px; color:#47586a; }
.dashboard-heading h1, #calendar > h1, .work-editor h1 { margin:0; font-size:clamp(28px,5vw,44px); line-height:1.05; letter-spacing:-.035em; }
.dashboard-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.dashboard-card, .work-editor, .week-details { min-width:0; padding:22px; background:#fffefa; border:1px solid var(--line); border-radius:14px; overflow-wrap:anywhere; }
.dashboard-card h2, .week-details h2 { margin:0; font-size:20px; }
.dashboard-card p, .dashboard-card > small { color:#47586a; }
.dashboard-card > small, .dashboard-card > .pill { display:block; margin-bottom:10px; }
.dashboard-card > button { margin:3px 6px 3px 0; }
.work-editor { max-width:1000px; margin-inline:auto; }
.work-editor > header { align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:16px; }
.work-editor > header button { flex-shrink:0; }
.work-editor label:not(.check-field):not(:has(input[type="checkbox"])) { display:inline-block; margin:12px 5px 5px 0; font-weight:600; }
.work-editor input:not([type="checkbox"]), .work-editor textarea, .work-editor select { display:block; width:100%; background:#fff; border:1px solid #bfc6cc; border-radius:8px; padding:9px; color:inherit; }
.work-editor textarea { min-height:120px; }
.work-editor .actions, .week-details .actions { flex-wrap:wrap; }
.editor-channels { border:1px solid var(--line); border-radius:8px; margin:15px 0 0; }
.editor-channels .check-field { display:inline-flex; margin:2px 14px 2px 0; align-items:center; gap:5px; }
.field-help { display:inline-block; position:relative; font-size:13px; }
.field-help summary { cursor:pointer; list-style:none; color:#265f50; }
.field-help span { display:block; position:absolute; top:calc(100% + 4px); left:0; background:#fffefa; border:1px solid #bfc6cc; border-radius:7px; padding:8px; width:min(235px,65vw); z-index:2; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.week-controls { margin-top:24px; padding:14px 16px; border:1px solid var(--line); border-radius:14px 14px 0 0; background:#fffefa; display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; }
.week-controls .actions { align-items:center; flex-wrap:wrap; margin:0; }
.week-controls [aria-pressed="true"] { color:white; background:#245346; }
.week-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); min-height:305px; background:#fffefa; border:1px solid var(--line); border-top:0; border-radius:0 0 14px 14px; overflow:hidden; }
.week-day { padding:10px 8px; min-width:0; border-inline-end:1px solid var(--line); }
.week-day:nth-last-child(-n+2) { background:#f8f7f4; }
.week-day:last-child { border-inline-end:0; }
.week-day h2 { display:flex; align-items:center; justify-content:space-between; gap:4px; margin:5px 1px 12px; font-size:13px; }
.week-day h2 span { font-weight:500; }
.week-item { display:block; width:100%; margin:0 0 8px; padding:9px; text-align:left; border-left:3px solid #5d9682; background:#eaf3ee; overflow-wrap:anywhere; }
.week-item.ad { border-left-color:#6a82b3; background:#edf0f8; }
.week-item strong, .week-item small { display:block; margin-bottom:5px; }
.week-status { display:inline-block; padding:2px 5px; background:#fff9; border-radius:4px; font-size:11px; }
.week-details { margin-top:14px; }
@media (max-width: 960px) {
 .dashboard-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .week-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .week-day { border-bottom:1px solid var(--line); }
}
@media (max-width: 680px) {
 .studio-nav { gap:0 14px; }
 .studio-nav button { padding:8px 0 6px; font-size:12px; }
 .dashboard-cards, .week-grid { grid-template-columns:minmax(0,1fr); }
 .week-day { border-inline-end:0; padding:8px 12px; }
 .work-editor, .dashboard-card { padding:14px; }
 .work-editor > header { flex-wrap:wrap; }
}

.studio-nav #dashboard-view { margin-inline-start:auto; }
.dashboard-heading h1, #calendar > h1, .work-editor h1 { font-family: Inter, system-ui, sans-serif; font-weight:750; }
.dashboard-card > .pill { display:table; }
.week-item[data-status="Awaiting approval"] .week-status { background:#faecd3; color:#6c4212; }
.week-item[data-status="Scheduled"] .week-status { background:#dae7f7; color:#234a77; }
.week-item:is([data-status="Live"],[data-status="Published"]) .week-status { background:#d8ebdf; color:#194f36; }
.week-controls .actions { gap:5px; }

/* Keep the live conversation beside the current Social Studio view. */
.studio-layout { display:grid; grid-template-columns:minmax(265px, 310px) minmax(0,1fr); align-items:start; gap:24px; }
.studio-workspace { min-width:0; container-type:inline-size; }
.studio-layout > .conversation {
 position:sticky; top:18px; flex-direction:column; display:flex; min-height:0;
 height:clamp(510px, calc(100dvh - 162px), 760px);
 border:1px solid #dedbe4; border-radius:16px; background:#fffefa; overflow:hidden;
 box-shadow:0 2px 8px #2c203c0a;
}
.studio-layout .conversation-title { padding:18px; background:#fbf8ff; }
.studio-layout .conversation-title h2 { margin:0; font-size:18px; }
.studio-layout #transcript { min-height:0; max-height:none; padding:16px; overscroll-behavior:contain; }
.studio-layout #composer { padding:14px 16px; position:static; background:#fffefa; }
.studio-layout #composer textarea { min-height:70px; }
.studio-layout #composer #ask-ai { margin-top:8px; }
.studio-layout #composer button[type="submit"] { background:var(--studio-navy); color:white; border-color:var(--studio-purple); }
.studio-layout .content { background:#fffefa; border:1px solid var(--line); border-radius:16px; }
.content:not(.strategy-view) #plan, .content:not(.strategy-view) #ongoing-manager,
.content.strategy-view #posts, .content.strategy-view #social-advertising,
.content.strategy-view #dispatch-queue, .content.strategy-view .content-top .view-switch,
.content.strategy-view #publishing-readiness { display:none; }
.studio-nav button { display:inline-flex; align-items:center; gap:7px; }
.studio-nav-icon, .studio-icon { color:#7134ac; display:inline-grid; place-items:center; flex:none; }
.studio-nav-icon svg, .studio-icon svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.studio-nav-icon { width:16px; height:16px; }
.studio-icon { width:32px; height:32px; padding:7px; border-radius:9px; background:#f2eafa; }
.studio-icon--chat { width:36px; height:36px; background:#eadcf9; }
.dashboard-heading { margin-bottom:20px; }
.dashboard-cards {
 grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
 align-items:stretch; gap:14px;
}
.dashboard-card {
 border-color:#e2dce5; background:#fffefa; padding:16px;
 box-shadow:0 2px 6px #2c203c0a;
}
.dashboard-card-header, .dashboard-card-label { display:flex; align-items:center; gap:8px; }
.dashboard-card-header { justify-content:space-between; flex-wrap:wrap; }
.dashboard-card-label { min-width:0; }
.dashboard-card-label h2 { font-size:17px; line-height:1.18; }
.dashboard-card--file .studio-icon { color:#345b83; background:#eaf1fa; }
.dashboard-card--checksquare .studio-icon { color:#276553; background:#eaf4ed; }
.dashboard-card .dashboard-subtitle { margin:5px 0 12px; font-size:12px; }
.dashboard-action { padding:6px 9px; font-size:11px; min-height:32px; }
.dashboard-card--megaphone .dashboard-action.primary { background:var(--studio-navy); border-color:var(--studio-navy); }
.dashboard-sample { padding:3px 7px; border-radius:10px; background:#f3eafb; color:#603298; font-size:10px; white-space:nowrap; }
.dashboard-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.dashboard-week .dashboard-day {
 margin:0; min-width:0; padding:6px 3px; display:flex; flex-direction:column; align-items:center;
 gap:3px; border-radius:9px; background:#fbfafc; border-color:#eee9f1; text-align:center;
 line-height:1.18; font-size:11px;
}
.dashboard-day > small { font-size:9px; color:#4d5567; }
.dashboard-day[aria-current=date] { border-color:#be99e5; background:#f6effb; }
.dashboard-day:hover { border-color:#a876d1; }
.dashboard-day-visual { position:relative; width:100%; aspect-ratio:1.05; margin:4px 0; display:grid; place-items:center; border-radius:6px; overflow:hidden; background:#f0eaf6; }
.dashboard-day-visual > img, .dashboard-ad-art > img { display:block; width:100%; height:100%; object-fit:cover; }
.dashboard-day-visual .artboard-wrap, .dashboard-ad-art .artboard-wrap { pointer-events:none; }
.dashboard-day-title { display:-webkit-box; min-height:2.36em; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.dashboard-day .dashboard-day-status { font-size:8px; color:#4e3469; }
.dashboard-day-empty { display:grid; place-items:center; width:100%; aspect-ratio:1.05; margin:4px 0; color:#8b7e99; }
.dashboard-platform { position:absolute; inset:auto 2px 2px auto; color:#fff; font-size:9px; font-weight:750; background:#324461; border-radius:4px; min-width:15px; padding:2px; line-height:1; }
.dashboard-platform[data-platform=Facebook], .dashboard-platform[data-platform=LinkedIn] { background:#195bc4; }
.dashboard-platform[data-platform=Instagram] { background:#a93484; }
.dashboard-analytics-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(128px,2fr); gap:8px; align-items:center; padding:10px; background:#faf7fc; border:1px solid #eee7f2; border-radius:10px; margin-top:8px; }
.dashboard-analytics-row > strong { font-size:12px; }
.dashboard-stats { display:grid; grid-auto-columns:minmax(0,1fr); grid-auto-flow:column; margin:0; gap:5px; }
.dashboard-stats div { display:flex; flex-direction:column-reverse; gap:2px; min-width:0; }
.dashboard-stats dd { margin:0; font-size:13px; font-weight:750; white-space:nowrap; }
.dashboard-stats dt { font-size:10px; color:#526073; }
.dashboard-ad {
 display:grid; grid-template-columns:78px minmax(0,1fr); gap:10px; align-items:stretch;
 border:1px solid #eae5ee; background:#fbfafc; padding:8px; border-radius:11px; margin:8px 0;
}
.dashboard-ad-art { min-height:65px; overflow:hidden; display:grid; place-items:center; border-radius:7px; background:#ede7f4; }
.dashboard-ad-body { min-width:0; }
.dashboard-ad-details { display:flex; align-items:center; gap:4px 8px; flex-wrap:wrap; }
.dashboard-ad a, .dashboard-ad-link { text-align:left; padding:0; border:0; color:#1c2440; background:none; font-weight:750; }
.dashboard-ad-link:hover { text-decoration:underline; }
.dashboard-ad-status { padding:3px 6px; border-radius:12px; background:#eae7f0; color:#473a58; white-space:nowrap; font-size:9px; }
.dashboard-ad-status[data-sample-status=Active] { background:#dcf3e3; color:#216443; }
.dashboard-ad .dashboard-ad-description { margin:3px 0 6px; font-size:11px; }
.dashboard-ad .dashboard-stats div:not(:first-child) { border-inline-start:1px solid #e6dfec; padding-inline-start:5px; }
.dashboard-card--checksquare { grid-column:1 / -1; }
@container (min-width: 760px) {
 .studio-workspace .week-grid { grid-template-columns:repeat(7,minmax(0,1fr)); }
}
@container (max-width: 759px) {
 .studio-workspace .week-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .dashboard-card--calendar { grid-column:1 / -1; }
 .dashboard-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container (max-width: 535px) {
 .dashboard-cards, .studio-workspace .week-grid { grid-template-columns:minmax(0,1fr); }
 .dashboard-week { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
}
@media(max-width: 850px) {
 .studio-layout { grid-template-columns:minmax(0,1fr); gap:18px; }
 .studio-layout > .conversation { position:static; height:clamp(305px,46dvh,440px); }
 .studio-layout .conversation-title { padding:12px 16px; }
 .studio-layout #transcript { padding:10px 14px; }
}
.dashboard-day[data-status=Planned] .dashboard-day-status,.dashboard-day[data-status=Scheduled] .dashboard-day-status { color:#1e6345; }
.dashboard-day[data-status="Awaiting approval"] .dashboard-day-status { color:#754a21; }
.week-details-art { width:min(165px, 100%); margin-block:10px; border-radius:8px; overflow:hidden; }
.week-details-art > img { display:block; width:100%; }
.dashboard-card--checksquare { grid-column:auto; }
.library-preview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; max-width:340px; margin:10px 0; }
.library-preview img { width:100%; aspect-ratio:1.4; object-fit:cover; border-radius:7px; }
.library-panel { padding:18px; border:1px solid var(--line); border-radius:14px; background:#fffefa; }
.library-search > label { display:block; margin-bottom:6px; font-weight:650; }
.library-search > input { padding:9px 12px; width:min(380px,100%); border:1px solid var(--line); border-radius:8px; background:white; color:var(--ink); }
#library-count, .library-roadmap { color:#47586a; font-size:13px; }
.library-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(165px,100%),1fr)); gap:12px; }
.library-tile { display:grid; grid-template-columns:minmax(0,1fr); gap:0; align-content:start; min-width:0; padding:0; text-align:left; overflow:hidden; }
.library-tile img { width:100%; display:block; aspect-ratio:1.35; object-fit:cover; background:#f2eafa; }
.library-tile strong { display:block; padding:9px 11px; overflow-wrap:anywhere; }
.library-empty { grid-column:1 / -1; }
.library-image { display:block; max-width:100%; max-height:65vh; object-fit:contain; border-radius:10px; }
@container (max-width:535px) {
 .library-grid { grid-template-columns:repeat(auto-fill,minmax(min(126px,100%),1fr)); }
}

.library-tabs { display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin-bottom:16px; padding-bottom:8px; }
.library-tabs button { min-height:36px; padding:6px 12px; background:transparent; border:1px solid transparent; font-weight:650; }
.library-tabs button[aria-selected=true] { background:#f2eafa; color:#622ca2; border-color:#e3d1f5; }
.library-coming { padding:20px; border:1px dashed var(--line); border-radius:10px; }
.library-coming h2 { margin:0 0 4px; font-size:17px; }
.library-coming p { margin:0; color:#47586a; }

.designer-post { margin-bottom:14px; color:#47586a; }
.designer-layout { display:grid; grid-template-columns:minmax(210px,1fr) minmax(0,1fr); gap:18px; align-items:start; }
.designer-artboard { position:relative; container-type:inline-size; display:flex; align-items:flex-end; padding:8%; overflow:hidden; border-radius:10px; background:#1e2843; color:white; }
.designer-artboard img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.designer-artboard strong { position:relative; padding:4%; background:#1e2843; font:700 8cqw/1.07 Arial,sans-serif; overflow-wrap:anywhere; }
.designer-ai { margin-top:20px; border-top:1px solid var(--line); padding-top:12px; }
@container (max-width:535px) { .designer-layout { grid-template-columns:minmax(0,1fr); } }
.strategy-modes { display:flex; flex-wrap:wrap; gap:7px; margin:14px 0; }
.strategy-modes button[aria-pressed=true] { background:#efE5f9; color:#572589; border-color:#d8bee9; }
.content.campaign-example #plan, .content.campaign-example #ongoing-manager { display:none; }
#workshop-campaign { display:grid; gap:14px; }
.campaign-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,0.7fr); overflow:hidden; border-radius:12px; background:#23352f; color:#fffdf7; }
.campaign-hero-content { padding:22px; align-self:center; }
.campaign-hero-content .actions { margin-top:14px; }
.campaign-hero img { display:block; width:100%; height:100%; min-height:184px; max-height:244px; object-fit:cover; }
.campaign-kicker { color:#d5efd8; font-size:11px; font-weight:650; }
.campaign-hero h3 { margin:5px 0 8px; font-size:clamp(21px,3vw,30px); line-height:1.08; }
.campaign-hero p { margin:0; color:#dbede5; font-size:12px; }
.campaign-overview { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:14px; }
.campaign-panel { min-width:0; padding:15px; border:1px solid var(--line); border-radius:11px; background:#fffefa; }
.campaign-panel h3 { margin:0 0 9px; font-size:16px; }
.campaign-section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; flex-wrap:wrap; }
.campaign-section-heading button,.campaign-panel .actions button,.campaign-post-actions button { min-height:32px; padding:5px 8px; font-size:11px; }
.campaign-facts { margin:6px 0 0; }
.campaign-facts dt { margin-top:9px; font-size:11px; font-weight:700; color:#355d4e; }
.campaign-facts dd { margin:2px 0 0; font-size:13px; overflow-wrap:anywhere; }
.campaign-art-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.campaign-art { display:block; width:100%; padding:0; aspect-ratio:1.15; overflow:hidden; }
.campaign-art img,.campaign-post-media img { display:block; width:100%; height:100%; object-fit:cover; }
.campaign-panel .actions { gap:6px; flex-wrap:wrap; }
.campaign-post { display:grid; grid-template-columns:60px minmax(0,1fr) auto; gap:10px; align-items:center; padding:9px 0; border-top:1px solid var(--line); }
.campaign-post-media { display:grid; place-items:center; width:60px; height:61px; overflow:hidden; border-radius:6px; background:#f1edf7; }
.campaign-post-date { color:#47586a; font-weight:650; font-size:11px; }
.campaign-post h4,.campaign-post p { margin:2px 0; }
.campaign-post-purpose { color:#244d3f; font-size:12px; }
.campaign-post-audience { font-size:11px; color:#47586a; }
.campaign-post-actions { display:flex; flex-wrap:wrap; gap:5px; }
#dialog-body .library-grid { margin:8px 0; }
@container (max-width:650px) {
 .campaign-overview { grid-template-columns:minmax(0,1fr); }
 .campaign-post-actions { grid-column:2; }
}
@container (max-width:440px) {
 .campaign-hero { grid-template-columns:minmax(0,1fr); }
 .campaign-hero img { max-height:170px; min-height:0; }
 .campaign-hero-content { padding:14px; }
}
.campaign-plan-help { margin:0 0 9px; color:#47586a; font-size:12px; }
#posts .post-card:focus { outline:3px solid #a776d2; outline-offset:2px; }
.strategy-view #example-posts-toggle { display:none; }
