/* Marketing: review and queue. Shares the toolbar, notice and help styles with admin-uninstall.css and the view tabs with admin-analytics.css. */
#view-marketing .view__head { --admin-photo:url('https://images.unsplash.com/photo-1766576620530-33aedcf06120?q=80&w=1800&auto=format&fit=crop'); --admin-photo-position:center 40%; --set1-color:#EAF7F5; --set2-color:#0F3B38; --set3-color:#5BB8B0; }
.marketing-area, .marketing-list { display:flex; flex-direction:column; gap:16px; min-width:0; }
.marketing-notice { border-color:#BFE3C8; background:#F1FAF3; color:#1D5B2E; }
.marketing-card { background:#fff; border-radius:22px; padding:28px; box-shadow:0 1px 2px #0000000a; display:flex; flex-direction:column; gap:16px; min-width:0; }
.marketing-card__head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; }
.marketing-card__head h2 { font-size:18px; line-height:1.3; letter-spacing:-.02em; overflow-wrap:anywhere; }
.marketing-card__state { font-size:12px; font-weight:500; padding:4px 12px; border-radius:99px; background:#EEE; color:#444; white-space:nowrap; }
.marketing-card--scheduled .marketing-card__state, .marketing-card--approved .marketing-card__state { background:#DDF1E2; color:#1D5B2E; }
.marketing-card--rejected .marketing-card__state { background:#F1E4E1; color:#6B3A30; }
.marketing-card--failed .marketing-card__state { background:#F8DEDA; color:#8A2B20; }
.marketing-card__why { font-size:14px; line-height:1.55; color:#555; max-width:70ch; }
/* Images share one height in one row; details sit beside them; captions form an even grid beneath. */
.marketing-card__body { display:grid; grid-template-columns:minmax(0,1fr) 260px; align-items:start; gap:20px 28px; }
/* Each figure grows in proportion to its shape, which is what keeps every image in the row the same height. */
.marketing-card { --preview-height:360px; }
.marketing-card:not(.marketing-card--needs_review) { --preview-height:200px; }
.marketing-card__media { display:flex; align-items:flex-start; gap:16px; min-width:0; padding:16px; border-radius:16px; background:#F6F6F6; }
.marketing-card__figure { margin:0; min-width:0; display:flex; flex-direction:column; gap:8px; }
.marketing-card__figure--x, .marketing-card__figure--threads, .marketing-card__figure--bluesky { flex:1.7778 1 0; max-width:calc(var(--preview-height) * 16 / 9); }
.marketing-card__figure--pinterest { flex:.6667 1 0; max-width:calc(var(--preview-height) * 2 / 3); }
.marketing-card__figure--square { flex:1 1 0; max-width:var(--preview-height); }
.marketing-card__zoom { display:block; width:100%; padding:0; border:0; background:none; border-radius:10px; cursor:zoom-in; line-height:0; }
.marketing-card__zoom:focus-visible { outline:2px solid #111; outline-offset:3px; }
.marketing-card__figure img { display:block; width:100%; height:auto; border-radius:10px; border:1px solid #E2E2E2; background:#EDEDED; }
.marketing-card__media:has(.is-zoomed) { flex-wrap:wrap; }
.marketing-card__figure.is-zoomed { flex:1 1 100%; max-width:none; }
.marketing-card__figure.is-zoomed img { width:auto; max-width:100%; }
.marketing-card__figure.is-zoomed .marketing-card__zoom { cursor:zoom-out; }
.marketing-card__figure.is-loading img, .marketing-card__figure.is-missing img { visibility:hidden; }
.marketing-card__figure.is-loading .marketing-card__zoom, .marketing-card__figure.is-missing .marketing-card__zoom { background:#EDEDED; cursor:default; }
.marketing-card__image-status { display:none; font-size:12px; line-height:1.4; color:#777; }
.marketing-card__figure.is-loading .marketing-card__image-status, .marketing-card__figure.is-missing .marketing-card__image-status { display:block; }
.marketing-card__figure.is-missing .marketing-card__image-status { color:#8A2B20; }
.marketing-card__retry { align-self:flex-start; }
.marketing-card__figure figcaption { font-size:12px; color:#777; }
.marketing-card__figure figcaption strong { color:#111; font-weight:500; }
.marketing-card__details { display:flex; flex-direction:column; gap:14px; min-width:0; }
.marketing-card__captions { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:16px; }
.marketing-card__caption { display:flex; flex-direction:column; gap:6px; min-width:0; font-size:13px; color:#666; }
.marketing-card__label { font-size:12px; font-weight:500; color:#666; }
.marketing-card__caption small, .marketing-card__hint { font-size:12px; color:#777; }
.marketing-card__hint:empty { display:none; }
.marketing-card__board { display:flex; flex-direction:column; gap:6px; min-width:0; }
.marketing-card textarea, .marketing-card input[type=text], .marketing-card select { width:100%; border:2px solid #E2E2E2; border-radius:12px; background:#fff; padding:10px 12px; font:inherit; font-size:13px; line-height:1.5; color:#111; }
.marketing-card textarea { resize:vertical; min-height:88px; }
.marketing-card textarea[readonly] { background:#F7F7F7; color:#555; }
.marketing-card textarea:focus-visible, .marketing-card input:focus-visible, .marketing-card select:focus-visible { outline:none; border-color:#111; }
.marketing-card__problems { margin:0; padding:12px 16px 12px 32px; background:#FBF1EF; border-radius:12px; font-size:13px; line-height:1.6; color:#8A2B20; }
.marketing-card__problem { font-size:13px; color:#8A2B20; }
.marketing-card__facts { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:6px 16px; font-size:13px; line-height:1.45; margin:0; }
.marketing-card__facts dt { color:#777; }
.marketing-card__facts dd { margin:0; overflow-wrap:anywhere; }
.marketing-card__actions { display:flex; flex-direction:column; gap:12px; padding-top:16px; border-top:1px solid #EEE; }
.marketing-card__pin { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.marketing-card__pin label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:500; color:#666; min-width:0; }
.marketing-card__channels { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin:0; padding:0; border:0; font-size:13px; min-width:0; }
.marketing-card__channels legend { float:left; padding:0; margin-right:18px; font-size:12px; font-weight:500; color:#666; }
.marketing-card__channels label { display:flex; align-items:center; gap:8px; color:#111; cursor:pointer; }
.marketing-card__channels input { width:18px; height:18px; accent-color:#111; }
.marketing-card__channels small { font-size:12px; color:#777; }
.marketing-card__requeue { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; }
.marketing-card__requeue select { width:auto; min-width:180px; flex:1 1 180px; }
.marketing-card__buttons { display:flex; flex-wrap:wrap; gap:10px; }
.marketing-card__status:empty { display:none; }
/* Library: layouts drawn on the extension's grid, and the channels and boards. */
.marketing-panel { display:flex; flex-direction:column; gap:14px; background:#fff; border-radius:22px; padding:28px; box-shadow:0 1px 2px #0000000a; min-width:0; }
.marketing-panel h2 { font-size:18px; line-height:1.3; letter-spacing:-.02em; }
.marketing-panel .feedback-help { max-width:78ch; }
.marketing-layout__form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px 14px; }
.marketing-layout__form label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:500; color:#666; min-width:0; }
.marketing-layout__form input[type=url] { width:100%; min-width:0; height:40px; border:2px solid #E2E2E2; border-radius:12px; background:#fff; padding:8px 12px; font:inherit; font-size:13px; color:#111; }
.marketing-layout__form input:focus-visible { outline:none; border-color:#111; }
.marketing-layout__list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:14px; }
.marketing-layout { display:flex; flex-direction:column; gap:10px; padding:10px; border:1px solid #EAEAEA; border-radius:16px; min-width:0; }
.marketing-layout.is-retired { opacity:.55; }
.marketing-layout__picture { display:block; width:100%; height:auto; aspect-ratio:1200 / 630; object-fit:cover; border-radius:10px; background:#F1F1F1; }
.marketing-layout__map { display:grid; grid-template-columns:repeat(27,1fr); grid-template-rows:repeat(13,1fr); gap:1px; aspect-ratio:27 / 13; width:100%; padding:4px; border-radius:10px; background:#F1F1F1; }
.marketing-layout__map span { border:1.5px solid #111; border-radius:3px; background:#fff; }
.marketing-layout__about { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; min-width:0; padding:0 4px 2px; font-size:12px; color:#777; }
.marketing-layout__about .status { flex-basis:100%; }
.marketing-layout__about .status:empty { display:none; }
@media (max-width:760px) { .marketing-layout__form { grid-template-columns:1fr; } .marketing-panel { padding:22px; } }
.marketing-queue__head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; }
.marketing-queue__head .status { margin:0; }
.marketing-queue__actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.marketing-queue__updated { margin:0; }
.marketing-retry-results { margin:0; padding:0 20px; font-size:13px; line-height:1.6; color:#555; overflow-wrap:anywhere; }
.marketing-retry-results li + li { margin-top:8px; }
.marketing-slot__retrying { color:#79511A; font-size:12px; }
/* Queue: one list per day, a row per posting time. */
.marketing-queue { display:flex; flex-direction:column; gap:16px; }
.marketing-day { background:#fff; border-radius:22px; padding:22px 28px; box-shadow:0 1px 2px #0000000a; min-width:0; }
.marketing-day h2 { font-size:15px; line-height:1.4; letter-spacing:-.01em; margin-bottom:6px; }
.marketing-day ul { list-style:none; margin:0; padding:0; }
.marketing-slot { display:grid; grid-template-columns:52px 84px 72px minmax(0,1fr) auto; align-items:center; gap:6px 14px; padding:12px 0; border-top:1px solid #EEE; font-size:13px; }
.marketing-slot:first-child { border-top:0; }
.marketing-slot__time { font-size:15px; font-weight:500; font-variant-numeric:tabular-nums; color:#111; }
.marketing-slot__channel { justify-self:start; font-size:12px; font-weight:500; padding:3px 10px; border-radius:99px; background:#111; color:#fff; white-space:nowrap; }
.marketing-slot__channel--pinterest { background:#FCE4E8; color:#A50F2D; }
.marketing-slot__thumb { display:block; width:72px; height:48px; object-fit:cover; border-radius:8px; border:1px solid #E6E6E6; background:#F2F2F2; }
.marketing-slot__about { display:flex; flex-direction:column; gap:2px; min-width:0; }
.marketing-slot__about strong { font-weight:500; color:#111; overflow-wrap:anywhere; }
.marketing-slot__about span { color:#777; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.marketing-slot__actions, .marketing-slot__editor { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; }
.marketing-slot__editor input { height:36px; border:2px solid #E2E2E2; border-radius:10px; padding:4px 10px; font:inherit; font-size:13px; color:#111; background:#fff; }
.marketing-slot__editor input:focus-visible { outline:none; border-color:#111; }
.marketing-slot__standing { justify-self:end; font-size:12px; font-weight:500; padding:4px 12px; border-radius:99px; background:#DDF1E2; color:#1D5B2E; }
.marketing-slot--failed .marketing-slot__standing { background:#F8DEDA; color:#8A2B20; }
.marketing-slot__note { grid-column:1 / -1; justify-self:end; }
.marketing-slot__note:empty { display:none; }
.marketing-slot--free { grid-template-columns:52px 84px minmax(0,1fr); padding:8px 0; }
.marketing-slot--free .marketing-slot__time { font-size:13px; font-weight:400; color:#999; }
.marketing-slot--free .marketing-slot__channel { background:#F1F1F1; color:#888; }
.marketing-slot__free { color:#AAA; }
.marketing-times { display:flex; flex-direction:column; gap:14px; background:#fff; border-radius:22px; padding:28px; box-shadow:0 1px 2px #0000000a; min-width:0; }
.marketing-times h2 { font-size:18px; line-height:1.3; letter-spacing:-.02em; }
.marketing-times .feedback-help { max-width:78ch; }
.marketing-times__grid { display:grid; grid-template-columns:max-content repeat(4,minmax(0,1fr)); align-items:center; gap:8px 14px; font-size:13px; max-width:1200px; }
.marketing-times__grid strong { font-weight:500; color:#666; font-size:12px; }
.marketing-times__grid span { color:#444; }
.marketing-times__grid input { width:100%; min-width:0; height:38px; border:2px solid #E2E2E2; border-radius:10px; background:#fff; padding:6px 10px; font:inherit; font-size:13px; font-variant-numeric:tabular-nums; color:#111; }
.marketing-times__grid input:focus-visible { outline:none; border-color:#111; }
@media (max-width:800px) { .marketing-times__grid { overflow-x:auto; grid-template-columns:max-content repeat(4,minmax(170px,1fr)); padding-bottom:8px; } }
@media (max-width:760px) { .marketing-slot { grid-template-columns:48px 80px minmax(0,1fr); } .marketing-slot__thumb { display:none; } .marketing-slot__about { grid-column:1 / -1; }
  .marketing-slot__actions, .marketing-slot__editor, .marketing-slot__standing { grid-column:1 / -1; justify-content:flex-start; justify-self:start; } .marketing-slot__note { justify-self:start; } }
@media (max-width:1100px) { .marketing-card__body { grid-template-columns:minmax(0,1fr); } }
@media (max-width:600px) { .marketing-day { padding:18px 20px; } .marketing-times { padding:22px; } .marketing-card { padding:22px; } .marketing-card__pin { grid-template-columns:1fr; } .marketing-card__media { padding:12px; flex-direction:column; } .marketing-card__figure { flex:none; width:100%; } }

/* Replies: drafts for threads on X. One column, the thread above the editable reply. */
.marketing-slot__channel--bluesky { background:#e5f1ff; color:#0069c2; }
.marketing-connection__form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:14px; align-items:end; margin:16px 0; }
.marketing-connection__form label { display:grid; gap:8px; font-size:13px; }
.marketing-connection__form input { width:100%; min-width:0; height:42px; border:2px solid #E2E2E2; border-radius:10px; padding:8px 12px; font:inherit; }
.marketing-connection__form input:focus-visible { outline:none; border-color:#111; }
@media (max-width:760px) { .marketing-connection__form { grid-template-columns:1fr; } }
.marketing-replies { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.marketing-replies--done { margin-top:22px; gap:8px; }
.marketing-reply { display:flex; flex-direction:column; gap:10px; padding:18px 20px; border-radius:20px; background:#fff; min-width:0; }
.marketing-reply.is-done { padding:12px 16px; gap:6px; opacity:.7; }
.marketing-reply__who { margin:0; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; font-size:13px; color:#777; }
.marketing-reply__who strong { font-weight:500; color:#111; }
.marketing-reply__text { margin:0; padding:0 0 0 12px; border-left:3px solid #E2E2E2; font-size:14px; line-height:1.45; color:#333; white-space:pre-wrap; overflow-wrap:anywhere; }
.marketing-reply.is-done .marketing-reply__text { border:0; padding:0; color:#111; }
.marketing-reply__why { margin:0; font-size:12px; color:#777; }
.marketing-reply textarea { width:100%; min-height:76px; resize:vertical; border:2px solid #E2E2E2; border-radius:12px; background:#fff; padding:10px 12px; font:inherit; font-size:14px; line-height:1.45; color:#111; }
.marketing-reply textarea:focus-visible, .marketing-reply input:focus-visible { outline:none; border-color:#111; }
.marketing-reply__actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.marketing-reply__actions input { flex:1 1 180px; min-width:0; height:36px; margin-left:auto; border:2px solid #E2E2E2; border-radius:12px; background:#fff; padding:6px 12px; font:inherit; font-size:13px; color:#111; }
.marketing-reply__count, .marketing-reply__actions small { font-size:12px; color:#777; }
.marketing-reply__actions .status { flex-basis:100%; }
.marketing-reply__actions .status:empty { display:none; }
.marketing-reply__review { display:grid; gap:8px; }
.marketing-reply__review label { display:grid; gap:5px; font-size:12px; color:#555; }
.marketing-reply__review input { width:100%; min-width:0; border:2px solid #E2E2E2; border-radius:12px; padding:9px 12px; font:inherit; font-size:13px; color:#111; }
.marketing-reply__review-hint { color:#555; line-height:1.45; }
.marketing-reply__original summary, .marketing-reply__correction summary { cursor:pointer; font-size:13px; }
.marketing-reply__original p { margin:8px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; color:#666; font-size:13px; }
.marketing-reply__correction > * + * { margin-top:10px; }
.marketing-reply.is-done:has(.marketing-reply__correction[open]) { opacity:1; }

/* Replies: the owner's voice settings, folded away under the drafts. */
.marketing-voice { margin-top:22px; }
.marketing-voice summary { cursor:pointer; font-size:15px; font-weight:500; color:#111; }
.marketing-voice__form { display:flex; flex-direction:column; gap:14px; margin-top:16px; }
.marketing-voice__form label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:500; color:#666; min-width:0; }
.marketing-voice__form textarea, .marketing-voice__form input { width:100%; min-width:0; border:2px solid #E2E2E2; border-radius:12px; background:#fff; padding:9px 12px; font:inherit; font-size:14px; line-height:1.45; color:#111; }
.marketing-voice__form textarea { resize:vertical; }
.marketing-voice__form textarea:focus-visible, .marketing-voice__form input:focus-visible { outline:none; border-color:#111; }
.marketing-voice__numbers { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:12px 14px; align-items:end; }
/* Video review uses the same typography and controls as image review. */
.marketing-video-list,.marketing-music-list{display:grid;gap:24px}
.marketing-video-card,.marketing-music-card{padding:24px;border:1px solid var(--border,#e1e5e1);border-radius:18px;background:var(--surface,#fff);display:grid;gap:14px;min-width:0}
.marketing-video-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.marketing-video-heading h2,.marketing-video-heading h3,.marketing-video-heading h4{margin:0}
.marketing-video-heading h4{font-size:18px}
.marketing-video-state{font-size:12px;padding:6px 12px;border-radius:30px;background:#eff4f0;color:#365f49}
.marketing-video-card video{width:100%;max-height:520px;aspect-ratio:16/9;object-fit:contain;border-radius:12px;background:#17211d}
.marketing-video-card>label,.marketing-music-add label{display:grid;gap:7px}
.marketing-video-card textarea{width:100%;resize:vertical}
.marketing-video-card textarea,.marketing-video-card>select,.marketing-music-add input:not([type=checkbox]),.marketing-music-confirm input:not([type=checkbox]){font:inherit;font-size:14px;line-height:1.5;border:1px solid #dce1dc;border-radius:10px;padding:10px 12px;background:#fbfcfa;color:inherit}
.marketing-video-card textarea:focus,.marketing-video-card>select:focus,.marketing-music-add input:focus,.marketing-music-confirm input:focus{outline:2px solid #8a9c8d;outline-offset:2px}
.marketing-video-card details{font-size:13px;line-height:1.6}
.marketing-video-card details a{margin-right:14px}
.marketing-music{margin-top:48px}
.marketing-music-add{display:grid;grid-template-columns:2fr 1fr 1fr;align-items:end;gap:14px;margin:20px 0}
.marketing-music-add input:not([type=checkbox]){width:100%;min-width:0}
.marketing-music-add button{justify-self:start}
.marketing-music-card audio{width:100%}
.marketing-music-card{display:block;padding:0;overflow:hidden}
.marketing-music-summary{display:flex;align-items:center;gap:14px;cursor:pointer;padding:18px 22px;list-style:none}
.marketing-music-summary::-webkit-details-marker{display:none}
.marketing-music-summary>.marketing-video-heading{flex:1;min-width:0}
.marketing-music-summary::after{content:'›';font-size:24px;line-height:1;transition:transform .18s ease}
.marketing-music-card[open]>.marketing-music-summary::after{transform:rotate(90deg)}
.marketing-music-card-body{display:grid;gap:14px;padding:0 22px 22px}
.marketing-music-card-body>button{justify-self:start}
.marketing-music-allow,.marketing-music-add .marketing-music-allow{display:flex;gap:10px;align-items:center}
.marketing-music-allow input{flex:none;width:18px;height:18px;accent-color:#111}
.marketing-music-wide{grid-column:1/-1}
.marketing-music-wide[hidden]{display:none}
.marketing-music-group{display:grid;gap:16px}
.marketing-music-group>h3{margin:8px 0 0;font-size:18px}
.marketing-music-confirm>label{display:grid;gap:7px;margin:14px 0}
.marketing-music-confirm>.marketing-music-allow{display:flex}
.marketing-music-confirm input:not([type=checkbox]){width:100%;min-width:0}
.marketing-music-card>button{justify-self:start}
.marketing-music-add>label,.marketing-music-attach>label{min-width:0}
.marketing-music-add [hidden],.marketing-music-progress[hidden]{display:none}
.marketing-music-selection{display:grid;gap:8px;list-style:none;margin:8px 0 0;padding:0}
.marketing-music-selection li{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 12px;border-radius:10px;background:#f4f6f3;font-size:13px}
.marketing-music-selection li span{overflow-wrap:anywhere;min-width:0}
.marketing-music-selection li span:last-child{color:#6a736b}
.marketing-music-add select,.marketing-music-add textarea,.marketing-music-attach input{width:100%;min-width:0;font:inherit;font-size:14px;border:1px solid #dce1dc;border-radius:10px;padding:10px 12px;background:#fbfcfa;color:inherit}
.marketing-music-add textarea{resize:vertical}
.marketing-music-add audio,.marketing-music-progress{width:100%;min-width:0}
.marketing-music-attach{display:grid;gap:10px;min-width:0}
.marketing-music-attach label{display:grid;gap:7px}
.marketing-music-attach button{justify-self:start}
.marketing-music-profile{padding:12px;border-radius:10px;background:#f4f6f3;display:grid;gap:6px}
.marketing-music-profile p{margin:0}
.marketing-music-card p,.marketing-music-card h4,.marketing-music-card a{overflow-wrap:anywhere;min-width:0}
.marketing-slot__video{display:grid;place-items:center;min-height:60px;border-radius:8px;background:#e6eee7;font-size:12px}
@media(max-width:700px){.marketing-music-add{grid-template-columns:1fr}.marketing-video-card{padding:16px}.marketing-music-summary{padding:16px}.marketing-music-card-body{padding:0 16px 16px}.marketing-video-heading{gap:8px}}
