#autopost-form{max-width:850px}
#autopost-status{margin:18px 0 23px;padding:13px 16px;background:var(--lavender);border:1px solid #e3d8ef;border-radius:10px;font-size:13px;color:var(--ink)}
#autopost-form .autopost-check{display:flex;align-items:center;gap:10px;font-size:13px;margin:12px 0;font-weight:400;cursor:pointer}
#autopost-form input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}
.autopost-options{display:grid;grid-template-columns:minmax(150px,1fr) minmax(210px,1.5fr);gap:28px;margin:24px 0;padding-top:20px;border-top:1px solid var(--line)}
.autopost-options>label{font-size:12px;font-weight:600}
.autopost-options select{display:block;width:100%;max-width:200px;margin:9px 0;border:1px solid var(--line);background:white;color:var(--ink)}
.autopost-options small{display:block;font-size:11px;font-weight:400;color:var(--muted)}
.autopost-options fieldset{margin:0;padding:0;border:0;min-width:0}
.autopost-options legend{font-size:12px;font-weight:600;margin-bottom:3px}
.autopost-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}
#autopost-error:empty{display:none}
.autopost-queue-panel{max-width:850px;margin-top:24px}
.autopost-queue-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.autopost-queue-heading h2{margin-top:0}
.autopost-queue-heading .autopost-state{flex-shrink:0;margin-top:5px}
.autopost-queued-post{border:1px solid var(--line);border-radius:10px;padding:18px;margin:14px 0;background:#fcfbfe}
.autopost-queued-post .autopost-day-heading h3{font-size:14px;overflow-wrap:anywhere;min-width:0}
.autopost-queued-post details{margin-top:13px}
.autopost-queued-post summary{font-size:12px;color:var(--accent);cursor:pointer;line-height:1.8}
.autopost-queued-post .autopost-text{font-size:13px}
.autopost-queue-empty{font-size:13px;color:var(--muted);line-height:1.8;margin:18px 0}
#autopost-prepare-status{font-size:12px;line-height:1.8;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
#autopost-prepare-error:empty{display:none}
#autopost-prepare[disabled]{opacity:.65;cursor:wait}
@media(max-width:600px){.autopost-queued-post{padding:15px}#autopost-prepare{width:100%}.autopost-queue-heading{gap:8px}}
.autopost-sources-panel{margin-top:24px;max-width:850px}
#autopost-sources-list{max-height:340px;overflow:auto;margin:20px 0;border:1px solid var(--line);border-radius:10px;background:#fcfbfe}
.autopost-source-choice{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);font-size:13px;line-height:1.7;cursor:pointer}
.autopost-source-choice:last-child{border-bottom:0}
.autopost-source-choice input{width:18px;height:18px;margin:2px 0 0;accent-color:var(--accent);flex-shrink:0}
.autopost-source-choice span{overflow-wrap:anywhere;min-width:0}
#autopost-sources-list>.microcopy{padding:0 16px}
#autopost-sources-status{font-size:12px;line-height:1.8;color:var(--muted)}
#autopost-sources-error:empty{display:none}
.autopost-history-heading{margin-top:35px}
.autopost-day{max-width:850px;padding:24px;margin:0 0 16px}
.autopost-day-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.autopost-day-heading h3{margin:0;font-size:16px;line-height:1.5}
.autopost-state{padding:5px 9px;border-radius:7px;background:var(--lavender);color:var(--ink);font-size:11px;line-height:1.5}
.autopost-reason{font-size:12px;line-height:1.8;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:16px 0}
.autopost-day details{margin-top:18px}
.autopost-day summary{font-size:12px;cursor:pointer;color:var(--accent);line-height:1.8}
.autopost-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;line-height:1.8;background:#faf8fc;border:1px solid var(--line);border-radius:10px;padding:19px;margin:12px 0 0}
.autopost-channels{list-style:none;padding:0;margin:18px 0 0;border-top:1px solid var(--line)}
.autopost-channels li{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 0;border-bottom:1px solid var(--line)}
.autopost-channels li:last-child{border-bottom:0;padding-bottom:0}
.autopost-channels strong{display:block;font-size:12px;line-height:1.6}
.autopost-channels span{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:4px}
.autopost-channels p{font-size:11px;line-height:1.8;color:var(--muted);margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.autopost-channels .secondary{white-space:nowrap}
.autopost-empty{max-width:850px;padding:25px;font-size:13px;line-height:1.8;color:var(--muted)}
@media(max-width:600px){.autopost-options{grid-template-columns:1fr;gap:22px}.autopost-options select{max-width:100%}.autopost-actions{align-items:stretch}.autopost-actions .primary{width:100%}.autopost-day{padding:20px}.autopost-day-heading{align-items:flex-start;gap:10px}.autopost-channels li{align-items:flex-start;flex-wrap:wrap;gap:12px}.autopost-text{padding:15px;font-size:13px}#autopost-status{font-size:12px}}
