/* Reel composer: fields on the left, media and cover on the right. */
.reel-keyword { border-top: 1px solid var(--line,#dedbe1); padding-top: 20px; }
.reel-keyword h3 { margin: 0 0 16px; }
.reel-keyword .subtle { margin: 8px 0 16px; }
.effective-url { overflow-wrap: anywhere; font-size: .85rem; }
.thumbnail-field { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line,#dedbe1); }
.thumbnail-field input[type=file] { width: 100%; padding: 10px; }
#thumbnail-preview img { display: block; width: 112px; max-height: 168px; object-fit: cover; margin-bottom: 12px; }
.media-state { display: inline-flex; align-items: center; gap: 7px; margin: 8px 14px 14px; padding: 4px 8px; width: fit-content; border-radius: 4px; font-size: .8rem; font-weight: 600; }
.media-state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.media-state.unprepared { color: #9e2929; background: #ffeded; }
.media-state.draft { color: #795700; background: #fff4cb; }
#caption-preview { white-space: pre-wrap; overflow-wrap: anywhere; }
#selected-media video { width: 100%; max-height: 420px; background: #1d1b20; object-fit: contain; }
#selected-media img { max-height: 420px; object-fit: contain; }
.composer-fields,.composer-preview { min-width: 0; }
@media (max-width: 700px) { .composer-body { grid-template-columns: minmax(0,1fr); } .composer-preview { border-left: 0; border-top: 1px solid var(--line,#dedbe1); } .composer-footer { flex-wrap: wrap; gap: 12px; } }

.library-legend .media-state{margin:0}
/* Preparation is red; a future schedule is yellow; a confirmed/simulated publication is green. */
.media-state.scheduled,.post-state.scheduled { color: #795700; background: #fff4cb; }
.media-state.published,.post-state.published { color: #226b3d; background: #e5f4e9; }
.post-state.unprepared { color: #9e2929; background: #ffeded; }
.dot.scheduled { background: #b18100; }.dot.published { background: #287a45; }.dot.unprepared { background: #ba3838; }
#post-title[readonly] { background: #f2f0f4; cursor: default; }
.post-card-wrap { min-width: 0; margin: 6px 0; }
.post-card-wrap .post-card { width: 100%; margin: 0; }
.reschedule-trigger { display: block; width: 100%; margin-top: 3px; padding: 5px 4px; font-size: .72rem; background: transparent; border-color: transparent; text-align: left; color: var(--muted,#625d69); }
.reschedule-trigger:hover { text-decoration: underline; }
#reschedule { width: min(440px,calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line,#dedbe1); border-radius: 12px; }
#reschedule h2 { margin-top: 0; font-size: 1.25rem; }
#reschedule-name { overflow-wrap: anywhere; }
#reschedule-message { font-size: .9rem; }
.reschedule-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
@media(max-width:600px) { #reschedule .date-fields { grid-template-columns: 1fr; } }

.post-state.scheduled::before{background:#b18100}.post-state.published::before{background:#287a45}
