#social-campaign-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px}
.campaign-bulk{border:1px solid #7950a5;border-radius:14px;padding:16px;margin-bottom:18px;background:linear-gradient(135deg,#25153b99,#100b1c77)}
.campaign-bulk summary{font-weight:700;cursor:pointer;padding:8px 0;color:#f1e6ff}
.campaign-media-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:12px;max-height:360px;overflow:auto;margin:14px 0}
.campaign-dialog .campaign-media-picker .social-field{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-content:start;padding:10px;border:1px solid #755194;border-radius:12px;overflow-wrap:anywhere;font-size:14px}
.campaign-media-picker img{width:100%;height:100px;object-fit:contain;grid-column:1/-1;border-radius:8px;background:#100b1c}
.campaign-media-name{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:4.5em;line-height:1.5}
.campaign-dialog .campaign-media-picker label.social-field{display:grid!important}
.campaign-spread{border:1px solid #7950a5;border-radius:14px;padding:16px;min-width:0;display:grid;gap:10px}
.campaign-dialog input[type=file]{max-width:100%;box-sizing:border-box;white-space:normal}
.campaign-card{border:1px solid #7950a5;border-radius:16px;background:linear-gradient(135deg,#1d1233ee,#0e0a1bee);padding:20px;min-width:0}
.campaign-card header,.campaign-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between}
.campaign-card h4{font-size:20px;margin:0;overflow-wrap:anywhere}.campaign-state{text-transform:capitalize;color:#dbc1ff;line-height:1.5}
.campaign-dialog .campaign-builder{display:grid;grid-template-columns:140px minmax(0,1fr);gap:22px}.campaign-steps{display:flex;flex-direction:column;gap:10px;align-self:start}.campaign-steps button[aria-current=true]{background:#7135b5;color:white}
.campaign-settings{min-width:0}.campaign-settings section{display:grid;gap:16px}.campaign-settings section[hidden]{display:none!important}.campaign-dialog select{width:100%;min-width:0;box-sizing:border-box;white-space:normal;color:#fff;background:#21182f;padding:12px;border:1px solid #83649e;border-radius:10px;font:inherit}
.campaign-dialog .campaign-destination{border:1px solid #755194;border-radius:14px;padding:16px;margin:0 0 18px;min-width:0;display:grid;gap:12px}.campaign-dialog legend{font-weight:700;color:#e1c9ff;padding:0 8px}
.campaign-preview img,.campaign-preview video,.campaign-review img,.campaign-review video{display:block;max-width:100%;max-height:260px;object-fit:contain;border-radius:12px;margin:12px auto}.campaign-review{border-bottom:1px solid #694c83;padding:18px 0;overflow-wrap:anywhere}.campaign-review p{white-space:pre-wrap}.campaign-dialog a{color:#dfc3ff;text-decoration:underline;display:inline-block;padding:10px 0;overflow-wrap:anywhere}
.campaign-frame-preview{width:min(100%,320px);background:#08080e;overflow:hidden;border:1px solid #a66aff;border-radius:12px;margin:16px auto}.campaign-frame-preview img,.campaign-frame-preview video{width:100%;height:100%;display:block}.campaign-dialog table{width:100%;table-layout:fixed;border-collapse:collapse}.campaign-dialog th,.campaign-dialog td{padding:8px;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid #755194}.campaign-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.campaign-dialog details{padding:16px 0;line-height:1.6}
.campaign-dialog input[type=checkbox]{width:20px!important;height:20px!important;accent-color:#a66aff}.campaign-dialog label:has(input[type=checkbox]){display:flex;flex-direction:row;align-items:center}.campaign-dialog .status{line-height:1.6;color:#d2c5e2}.campaign-dialog footer{flex-wrap:wrap;z-index:2}.campaign-dialog .social-dialog-body{display:block!important}.campaign-dialog .social-field{margin:0 0 14px;min-width:0}
@media(max-width:650px){.campaign-dialog .campaign-builder{grid-template-columns:1fr;gap:16px}.campaign-steps{display:grid;grid-template-columns:1fr 1fr}.campaign-dialog .overview-banner h2{font-size:23px}.campaign-dialog .overview-banner{gap:10px}.campaign-dialog footer button{min-width:100px}.campaign-card{padding:16px}}

.campaign-dialog .campaign-ad-media{max-width:100%;max-height:260px;object-fit:contain;display:block;margin:16px auto}

.campaign-dialog [hidden]{display:none!important}
.campaign-countries{min-width:0;border:1px solid #725294;border-radius:16px;padding:16px;margin:0 0 18px}.campaign-countries legend{padding:0 8px;font-weight:600}.campaign-country-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.campaign-country-tags button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.campaign-countries>.status{margin-bottom:0}
.campaign-paid-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 18px}.campaign-paid-metrics dt{color:#d8c7eb}.campaign-paid-metrics dd{margin:0;font-weight:700;overflow-wrap:anywhere}.campaign-paid-report h4{font-size:1.1rem;margin-bottom:12px}.campaign-paid-report{padding:12px 0}

#social-campaigns>.campaign-actions,.campaign-card .campaign-actions{justify-content:flex-start;gap:10px;margin:12px 0}
.campaign-post-accounts{display:grid;gap:8px;border:1px solid #7950a5;border-radius:14px;padding:14px;min-width:0}
.campaign-library-layout{display:grid;grid-template-columns:130px minmax(0,1fr);gap:20px;min-width:0}
.campaign-library-tabs{display:flex;flex-direction:column;gap:10px;align-self:start}
.campaign-library-tabs button[aria-current=true]{background:#7135b5;color:#fff}
.campaign-library-layout>section{min-width:0}
.campaign-library-layout .campaign-media-picker{max-height:45dvh;grid-template-columns:repeat(auto-fill,minmax(min(100%,160px),1fr))}
.campaign-library-layout input[type=search]{margin:0 0 12px}
.campaign-audio-art{height:100px;display:grid;place-items:center;font-size:24px;background:#251539;grid-column:1/-1;border-radius:10px}
.campaign-library-layout audio{width:100%;min-width:0;grid-column:1/-1}
.campaign-library-layout small{grid-column:1/-1;line-height:1.5}
@media(max-width:550px){.campaign-library-layout{grid-template-columns:100px minmax(0,1fr);gap:12px}.campaign-library-tabs button{padding:8px!important}.campaign-library-layout .campaign-media-picker{grid-template-columns:minmax(0,1fr)}}

/* Reuse the shared Library proportions and settings surfaces. */
body dialog.campaign-dialog .campaign-settings>section:is([data-step=campaign],[data-step=schedule],[data-step=promotion]){background-image:var(--phantom-cloud-surface)!important;background-size:cover;border:1px solid #70538e;border-radius:14px;padding:18px}
body dialog.campaign-dialog .campaign-media-card{background-image:var(--phantom-cloud-surface)!important;background-size:cover}
#social-campaigns button,body dialog.campaign-dialog button{box-sizing:border-box;min-height:44px;padding:10px 16px;border-radius:10px;font:inherit;line-height:1.25;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:normal;max-width:100%}
#social-campaigns>header{gap:10px;align-items:center}#social-campaigns>header>div{margin-right:auto}
#social-campaigns .campaign-actions button{flex:0 1 auto}
#social-campaign-list .campaign-empty{grid-column:1/-1;margin:8px 0}
body dialog.campaign-dialog[open]{background:#110c1d!important;background-image:none!important;display:flex;flex-direction:column}
body dialog.campaign-dialog .social-dialog-body{background:transparent!important;padding:24px;overflow:auto;min-height:0}
body dialog.campaign-dialog :is(.campaign-destination,.campaign-bulk,.campaign-review){background-image:var(--phantom-cloud-surface)!important;background-size:cover;background-position:center;border:1px solid #70538e;border-radius:14px;padding:18px}
body dialog.campaign-dialog :is(.campaign-builder,.campaign-settings,.campaign-steps,.campaign-library-layout,.campaign-library-tabs){background:none!important;border:0;min-width:0}
.campaign-symbol{display:inline-flex;width:20px;flex:none;align-items:center;justify-content:center;font-size:18px;line-height:1;color:#dbc5ff}
.campaign-steps .phantom-settings-identity,.campaign-library-tabs .phantom-settings-identity{display:flex;align-items:center;gap:8px;padding:0 4px 12px;color:#f2e8ff;font-size:14px;line-height:1.3}
.campaign-steps .phantom-settings-identity img,.campaign-library-tabs .phantom-settings-identity img{width:32px;height:36px;object-fit:contain;flex:none}
body dialog.campaign-dialog :is(.campaign-steps,.campaign-library-tabs) button{width:100%;justify-content:flex-start;min-height:44px;text-align:left;gap:8px}
body dialog.campaign-dialog :is(.campaign-steps,.campaign-library-tabs) button[aria-current=true]{background:#7135b5;border-color:#a879f8}
body dialog.campaign-dialog footer{position:sticky;bottom:0;flex:none;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 24px!important;background:#130d20e6!important;backdrop-filter:none;border-top:1px solid #72548f;margin:0}
body dialog.campaign-dialog footer>button{flex:0 1 auto!important;min-width:144px}
body dialog[aria-label="Delete campaign draft"]{width:min(620px,94vw)!important}
body dialog[aria-label="Delete campaign draft"] footer>button{width:152px}
body dialog.campaign-dialog .campaign-post-accounts{gap:10px;padding:16px;background:#151021;border-color:#62467b}
body dialog.campaign-dialog .campaign-account-choice{display:flex;gap:10px;align-items:center;padding:12px;margin:0;min-height:48px;border-radius:10px;border:1px solid #554069;background:#21182f}
body dialog.campaign-dialog .campaign-account-choice input{order:0;flex:none;margin:0}
.campaign-platform-symbol{flex:none;display:inline-grid;place-items:center;width:26px;height:26px;border-radius:7px;background:#6d35ae;color:#fff;font-size:19px}
body dialog.campaign-library-dialog{width:min(1060px,96vw)!important}
.campaign-library-layout{grid-template-columns:152px minmax(0,1fr);gap:22px}
.campaign-library-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.campaign-library-toolbar input[type=search]{flex:1 1 180px;margin:0;min-width:0}
.campaign-library-layout .campaign-media-picker{grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:16px;max-height:none;overflow:visible;align-items:start}
body dialog.campaign-dialog .campaign-media-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0;margin:0;padding:0;min-width:0;border:1px solid #72538d;border-radius:14px;overflow:hidden;background:#191023;cursor:pointer}
body dialog.campaign-dialog .campaign-media-card[data-kind=image]{border-color:#7d51ad}body dialog.campaign-dialog .campaign-media-card[data-kind=video]{border-color:#386f92}body dialog.campaign-dialog .campaign-media-card[data-kind=audio]{border-color:#a86f39}body dialog.campaign-dialog .campaign-media-card[data-kind=studio]{border-color:#48896e}
body dialog.campaign-dialog .campaign-media-card.selected{box-shadow:0 0 0 2px #b787ff;border-color:#c49bff}
body dialog.campaign-dialog .campaign-library-thumb{width:100%;aspect-ratio:1/1;height:auto;display:block;position:relative;background:#100b19;border-radius:0;overflow:hidden;flex:none}
body dialog.campaign-dialog .campaign-library-thumb img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center;margin:0;border-radius:0}
body dialog.campaign-dialog .campaign-library-thumb .library-thumb-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#c8b8dc;font-size:14px;padding:14px;text-align:center;box-sizing:border-box}
body dialog.campaign-dialog .campaign-media-meta{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:5px 10px;padding:12px}
body dialog.campaign-dialog .campaign-media-name{min-height:2.8em;line-height:1.4;-webkit-line-clamp:2;font-size:14px}
.campaign-media-type{grid-column:2;color:#c9b8de;font-size:12px;line-height:1.5}.campaign-song-help{padding:0 12px 12px;line-height:1.5;font-size:12px;color:#cbbfda}
body dialog.campaign-dialog .campaign-audio-art{height:100%;width:100%;display:grid;place-items:center;font-size:58px;border-radius:0;background:linear-gradient(140deg,#39225b,#171022);color:#d7b4ff}
body dialog.campaign-dialog .campaign-media-card audio{width:100%;height:40px;margin:8px 0;min-width:0}
@media(max-width:650px){body dialog.campaign-dialog .social-dialog-body{padding:16px}.campaign-steps .phantom-settings-identity{grid-column:1/-1}.campaign-library-layout{grid-template-columns:1fr!important;gap:16px}.campaign-library-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.campaign-library-tabs .phantom-settings-identity{grid-column:1/-1}.campaign-library-layout .campaign-media-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body dialog.campaign-dialog .campaign-library-tabs button{padding:10px 8px!important;font-size:13px;gap:5px}body dialog.campaign-dialog footer{padding:12px 16px!important}body dialog.campaign-dialog footer>button{min-width:120px}body dialog.campaign-dialog .campaign-media-meta{padding:10px;gap:5px}.campaign-media-name{font-size:13px}}

/* Campaign progress and reviewed amendments reuse the existing Social surfaces. */
#social-campaign-list .campaign-title-button{background:transparent;border:0;padding:0;text-align:left;justify-content:flex-start;min-height:44px;font:inherit;font-weight:700;color:inherit;text-decoration:underline;text-decoration-color:#9970c3;text-underline-offset:4px}
.campaign-platform-report{min-width:0;margin:12px 0 22px}.campaign-platform-report>h3{margin-bottom:4px}.campaign-platform-report .campaign-review{margin-top:12px}
.campaign-organic-metrics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px}.campaign-organic-metrics dt{text-transform:capitalize;color:#d8c7eb}.campaign-organic-metrics dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.campaign-amendment-form,.campaign-amendment-review{min-width:0}.campaign-amendment-form .campaign-review{margin:16px 0}.campaign-amendment-dialog [hidden]{display:none!important}.campaign-amendment-dialog textarea{width:100%;box-sizing:border-box}.campaign-amendment-review p{white-space:pre-wrap;overflow-wrap:anywhere}

.campaign-youtube-poster{margin:16px 0;padding:14px;border:1px solid #72538d;border-radius:12px;min-width:0;background:#171022}.campaign-youtube-poster[hidden]{display:none!important}.campaign-youtube-poster h4{margin:0 0 10px}.campaign-youtube-poster button{margin:6px 8px 0 0}.campaign-youtube-poster-preview{min-width:0}.campaign-youtube-poster-preview :is(video,img){display:block;width:100%;max-height:280px;object-fit:contain;background:#09060f;border-radius:8px}.campaign-youtube-poster-preview:empty{display:none}

/* Keep the campaign artwork header intact under the global dialog cascade. */
body dialog.campaign-dialog>header.overview-banner{flex:none;box-sizing:border-box;min-height:116px;margin:0!important;padding:24px;background:linear-gradient(90deg,#0e09235c,#120a315c),url('/app/assets/phantom-promote-fullbleed-v1.svg') center/cover!important;border-bottom:1px solid #9e71ce}
@media(max-width:650px){body dialog.campaign-dialog>header.overview-banner{min-height:110px;padding:16px}}

/* Compact, shared-post campaign progress. Platform copies retain separate counters. */
body dialog.campaign-progress-dialog{width:min(1060px,96vw)}
.campaign-post-summary{padding:0 0 16px;border-bottom:1px solid #75618a40;margin-bottom:18px}
.campaign-post-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.campaign-post-heading h3{font-size:20px;margin:0;overflow-wrap:anywhere}
.campaign-post-summary>.status{margin:6px 0 16px;font-size:13px}
.campaign-post-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:center}
.campaign-post-counts>div{display:grid;gap:3px}.campaign-post-counts strong{font-size:23px}.campaign-post-counts span{font-size:13px;color:#d5c8e2}
.campaign-post-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}.campaign-post-toolbar h3{font-size:17px;margin:0 auto 0 0}
.campaign-post-toolbar select{width:auto!important;max-width:160px;min-height:40px!important;margin:0!important;padding:7px 12px!important}
.campaign-post-view-toggle{display:flex;gap:4px;padding:3px;border:1px solid #75618a55;border-radius:12px;background:#21182e80}
body dialog.campaign-dialog .campaign-post-view-toggle button{min-height:34px;padding:6px 12px;border:0;background:transparent;color:#d7c6e6}
body dialog.campaign-dialog .campaign-post-view-toggle button[aria-pressed=true]{background:#7440b8;color:#fff}
.campaign-post-list{display:grid;gap:12px;min-width:0}
.campaign-post-card{min-width:0;padding:12px;border:1px solid #7d66834d;border-radius:18px;background:#171020b3}
.campaign-post-main{display:flex;gap:16px;min-width:0}
body dialog.campaign-dialog .campaign-post-thumb{display:flex;align-items:center;justify-content:center;flex:0 0 122px;width:122px;height:134px;min-height:0;padding:0;border:0;border-radius:13px;overflow:hidden;background:#22182e;color:#b99dd8}
.campaign-post-thumb img{width:100%;height:100%;object-fit:cover;display:block}.campaign-post-thumb>svg{width:38px;height:38px}
.campaign-post-content{min-width:0;flex:1}.campaign-post-content h4{font-size:17px;margin:7px 0 6px;line-height:1.35;overflow-wrap:anywhere}
.campaign-post-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px;color:#d2c5df}.campaign-post-date{white-space:nowrap}
.campaign-post-state{display:inline-flex;padding:3px 9px;border-radius:20px;background:#65547933;color:#dcc4f3;text-transform:capitalize;font-size:12px;line-height:1.4;white-space:nowrap}
.campaign-post-state.state-published,.campaign-post-state.state-running{color:#63e9a4;background:#0e6f3f33}
.campaign-post-state.state-scheduled{color:#81c7ff;background:#19578440}.campaign-post-state.state-failed,.campaign-post-state.state-post_action_uncertain{color:#ffc0c7;background:#87354140}
.campaign-post-site-icon svg,.campaign-post-site svg,.campaign-post-metric svg{width:16px;height:16px;flex:none;vertical-align:middle}
.campaign-post-caption{font-size:13px;line-height:1.45;margin:0 0 9px;color:#d6cddd;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:normal}
.campaign-post-metric-row{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin:5px 0;font-size:12px;color:#e6deee}
.campaign-post-site{display:inline-flex;align-items:center;gap:5px;min-width:80px;color:#d3c1e5}.campaign-post-metric{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.campaign-post-schedule,.campaign-post-error{font-size:12px;margin:8px 0 0;color:#cfbddf;line-height:1.4}.campaign-post-error{color:#ffc6cd}
.campaign-post-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:10px;border-top:1px solid #725c8633}
body dialog.campaign-dialog .campaign-post-actions button{min-height:36px;padding:7px 13px;font-size:12px;border-radius:18px;background:#21182e80;border:1px solid #8b71a259;box-shadow:none}
body dialog.campaign-dialog .campaign-post-actions button:hover:not(:disabled){background:#57317680;border-color:#b38ad9}
body dialog.campaign-dialog .campaign-post-actions button:disabled{opacity:.45;cursor:not-allowed}.campaign-post-actions .campaign-post-delete{color:#efb9c2}
.campaign-post-analytics{padding:12px 0;border-bottom:1px solid #74558955}.campaign-post-site-picker{display:grid;gap:12px}.campaign-post-site-picker button{width:100%;justify-content:flex-start!important}.campaign-post-site-picker svg{width:20px;height:20px}.campaign-post-site-picker p{font-size:13px;margin:6px 0}
.campaign-post-editor textarea{width:100%;box-sizing:border-box}.campaign-post-change-review p{white-space:pre-wrap;overflow-wrap:anywhere}
body dialog.campaign-progress-dialog footer>button{min-width:110px}.campaign-post-more{position:relative}.campaign-post-more>summary{cursor:pointer;min-height:44px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:10px 18px;border:1px solid #795991;border-radius:10px;background:#21182e;color:#eee0fb;list-style:none}.campaign-post-more-actions{position:absolute;bottom:calc(100% + 10px);right:0;padding:8px;width:235px;background:#21162ef5;border:1px solid #795991;border-radius:14px;display:grid;gap:6px;box-shadow:0 6px 22px #0006}.campaign-post-more-actions button{width:100%}
.campaign-post-list.is-calendar{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.campaign-post-calendar-day{display:grid;gap:10px;min-width:0}.campaign-post-calendar-day>h4{margin:0;font-size:16px}.is-calendar .campaign-post-main{gap:10px}.is-calendar .campaign-post-thumb{flex-basis:72px!important;width:72px!important;height:95px!important}.is-calendar .campaign-post-content h4{font-size:14px}.is-calendar .campaign-post-site{min-width:auto}.is-calendar .campaign-post-metric-row{gap:8px}
@media(max-width:650px){.campaign-post-heading h3{font-size:17px}.campaign-post-main{gap:12px}body dialog.campaign-dialog .campaign-post-thumb{flex-basis:82px;width:82px;height:108px}.campaign-post-content h4{font-size:15px}.campaign-post-caption{font-size:12px}.campaign-post-metric-row{gap:9px}.campaign-post-site{min-width:68px}.campaign-post-meta{gap:6px}.campaign-post-card{padding:10px;border-radius:15px}.campaign-post-toolbar{gap:8px}.campaign-post-toolbar h3{width:100%}.campaign-post-list.is-calendar{grid-template-columns:1fr}.campaign-post-actions{gap:6px}body dialog.campaign-dialog .campaign-post-actions button{min-height:44px;padding:8px 12px}.campaign-post-counts{gap:8px}.campaign-post-counts span{font-size:12px}}
@media(forced-colors:active){.campaign-post-card,.campaign-post-state,.campaign-post-more-actions{background:Canvas;color:CanvasText;border:1px solid CanvasText}.campaign-post-state{border:1px solid CanvasText}}
.campaign-post-limitation{font-size:12px;line-height:1.4;color:#cfbddf;margin:8px 0 0}

@media(max-width:650px){.campaign-post-metric-row{gap:8px}.campaign-post-metric-row .campaign-post-site{font-size:0;min-width:14px;gap:0}body dialog.campaign-progress-dialog footer{display:grid;grid-template-columns:1fr 1fr;gap:8px!important}body dialog.campaign-progress-dialog footer>button,body dialog.campaign-progress-dialog footer>details{width:100%;min-width:0;margin:0!important}body dialog.campaign-progress-dialog footer>button{min-height:44px;padding:8px!important;font-size:14px}}

/* Compact campaign authoring: content first, optional settings, automatic media. */
body dialog.campaign-editor-dialog .campaign-builder{grid-template-columns:180px minmax(0,1fr);gap:22px}
body dialog.campaign-editor-dialog .campaign-steps{display:flex;flex-direction:column;gap:10px;position:static}
body dialog.campaign-editor-dialog .campaign-steps .phantom-settings-identity{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin:0 0 4px}
body dialog.campaign-editor-dialog .campaign-steps button{min-height:44px;padding:10px 12px;justify-content:flex-start;font-size:15px;width:100%}
body dialog.campaign-editor-dialog .campaign-settings>section{padding:18px;gap:12px}
body dialog.campaign-editor-dialog .social-field{font-size:15px;line-height:1.5;margin-bottom:8px;gap:6px}
body dialog.campaign-editor-dialog .campaign-destination{padding:16px;gap:10px}
body dialog.campaign-editor-dialog .campaign-post-accounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px}
body dialog.campaign-editor-dialog .campaign-post-accounts .social-field{margin:0;min-height:44px;flex:1 1 180px;padding:8px 12px}
body dialog.campaign-editor-dialog .campaign-preview img,body dialog.campaign-editor-dialog .campaign-preview video{max-height:180px;margin:4px auto}
body dialog.campaign-editor-dialog .campaign-youtube-poster{padding:10px 14px;gap:8px;border-radius:12px}
body dialog.campaign-editor-dialog .campaign-youtube-poster .status{margin:0}
body dialog.campaign-editor-dialog .campaign-youtube-poster details{padding:0}
body dialog.campaign-editor-dialog summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}
body dialog.campaign-editor-dialog summary::before{content:'▸';color:#d4adff}
body dialog.campaign-editor-dialog details[open]>summary::before{content:'▾'}
body dialog.campaign-editor-dialog .campaign-timing-summary{border-left:3px solid #ac76ff;padding:12px 16px;background:#6335a122;border-radius:8px;margin:0}
body dialog.campaign-editor-dialog [aria-invalid=true]{outline:2px solid #ffadbf;outline-offset:2px}
body dialog.campaign-editor-dialog .campaign-field-error,body dialog.campaign-editor-dialog [role=alert]{color:#ffd2de;line-height:1.5;font-size:15px}
body dialog.campaign-editor-dialog footer{gap:12px}
body dialog.campaign-editor-dialog footer button{min-height:48px}
@media(max-width:650px){body dialog.campaign-editor-dialog .campaign-steps{grid-template-columns:repeat(2,minmax(0,1fr))}body dialog.campaign-editor-dialog .campaign-settings>section{padding:12px}body dialog.campaign-editor-dialog .campaign-destination{padding:10px}body dialog.campaign-editor-dialog footer button{flex:1;min-width:120px}}

body dialog.campaign-editor-dialog[aria-busy=true] footer .primary::after{content:' · Please wait';font-size:13px}

body dialog.campaign-editor-dialog .campaign-tiktok-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
body dialog.campaign-editor-dialog .campaign-tiktok-checks label.social-field{display:flex!important;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;margin:0;padding:6px 0;min-height:44px;line-height:1.4}
body dialog.campaign-editor-dialog .campaign-tiktok-checks input{flex:0 0 20px;margin:0}
body dialog.campaign-editor-dialog .campaign-tiktok-settings{gap:12px;padding:0}
body dialog.campaign-editor-dialog .campaign-tiktok-settings a{font-size:13px;line-height:1.5;padding:0}
body dialog.campaign-editor-dialog .campaign-schedule-options{display:grid;gap:16px}
body dialog.campaign-editor-dialog .campaign-schedule-options[hidden]{display:none}
@media(max-width:650px){body dialog.campaign-editor-dialog .campaign-builder{grid-template-columns:minmax(0,1fr)}body dialog.campaign-editor-dialog .campaign-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body dialog.campaign-editor-dialog .campaign-tiktok-checks{gap:8px}}

body dialog.campaign-editor-dialog .campaign-tiktok-visibility{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}body dialog.campaign-editor-dialog .campaign-tiktok-visibility p{flex-basis:100%;margin:0}body dialog.campaign-editor-dialog .campaign-tiktok-visibility label{display:flex!important;align-items:center;gap:8px;min-height:44px;margin:0}body dialog.campaign-editor-dialog .campaign-tiktok-visibility input[type=radio]{width:18px;height:18px;accent-color:#a66aff}

@media(max-width:650px){body dialog.campaign-editor-dialog .campaign-post-accounts{grid-template-columns:repeat(2,minmax(0,1fr))}}

.campaign-list-filters{max-width:320px;margin:16px 0}.campaign-promotion-options{display:grid;gap:14px}.campaign-promotion-provider{border:1px solid #7950a5;border-radius:14px;padding:16px;min-width:0}.campaign-dialog .campaign-promotion-choice{display:flex;align-items:center;gap:10px;margin:0}.campaign-promotion-choice input{margin:0;flex:none}.campaign-promotion-budget{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:16px}@media(max-width:480px){.campaign-promotion-budget{grid-template-columns:1fr}}

.social-workspace-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:14px 0}.social-workspace-tools .social-field{flex:1;min-width:150px;margin:0}.social-workspace-tools input[type=search]{flex:2;min-width:180px}.social-calendar-entry{display:flex!important;flex-direction:column;align-items:flex-start;gap:4px;min-width:0!important;width:100%;white-space:normal!important;text-align:left;font-size:13px!important;padding:8px!important;overflow-wrap:anywhere}.social-calendar-entry small{font-size:11px}.social-calendar-entry[data-status=paused],.social-calendar-entry[data-status=cancelled]{opacity:.7}.social-calendar-entry[data-status=failed],.social-calendar-entry[data-status=needs_review]{border-color:#df9d51}.social-calendar-agenda article{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:12px 0}.social-workspace-posts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.social-workspace-post{display:flex;gap:14px;border:1px solid #7950a5;border-radius:14px;padding:14px;min-width:0;overflow-wrap:anywhere}.social-workspace-post img{width:84px;height:110px;object-fit:cover;border-radius:10px}.social-workspace-post h4{margin:8px 0}.social-workspace-post button{margin:4px 6px 0 0}.social-workspace-posts.is-list{grid-template-columns:1fr}.social-workspace-posts.is-comfortable .social-workspace-post{padding:22px}.social-workspace-thumb{max-width:100%;max-height:360px;object-fit:contain}.social-calendar-grid{min-width:0}.social-calendar-day{min-width:0}.social-calendar-day>button{max-width:100%}@media(max-width:650px){#social-calendar .social-calendar-grid{grid-template-columns:1fr}#social-calendar .social-calendar-grid>strong,#social-calendar .social-calendar-pad{display:none}.social-calendar-agenda article{grid-template-columns:1fr}.social-workspace-post img{width:64px;height:85px}}

#social-admob-results>div{max-width:100%;overflow:auto}#social-admob-results table{border-collapse:collapse;font-size:14px}#social-admob-results td,#social-admob-results th{padding:10px;text-align:left;border-bottom:1px solid #554069}

.social-workspace-post video{width:84px;height:110px;object-fit:contain;border-radius:10px;background:#090612}.social-workspace-post img{object-fit:contain;background:#090612}@media(max-width:650px){.social-workspace-post video{width:64px;height:85px}}

#social-calendar-tools [hidden]{display:none!important}

@media(max-width:480px){body dialog.campaign-editor-dialog .campaign-post-accounts{grid-template-columns:minmax(0,1fr)}}
