#weekly-posts-root { min-width:0; }
.weekly-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:22px; }
.weekly-heading>div { max-width:720px; }
.weekly-heading .secondary { flex-shrink:0; text-decoration:none; }
.weekly-layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:20px; align-items:start; }
.weekly-box { border:1px solid var(--line,#dedfd6); border-radius:18px; background:#fff; padding:24px; margin-bottom:20px; min-width:0; }
.weekly-box h3 { margin-top:0; }
.weekly-box label:not(.weekly-check) { display:block; margin:16px 0 8px; }
.weekly-box select,.weekly-box textarea { display:block; width:100%; max-width:100%; margin-top:8px; }
.weekly-check { display:block; margin:18px 0; line-height:1.65; }
.weekly-check input { width:18px; height:18px; margin-right:8px; vertical-align:middle; accent-color:var(--orange,#d34b1a); }
.weekly-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.weekly-photos { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; }
.weekly-photo { border:1px solid var(--line,#dedfd6); border-radius:12px; padding:14px; min-width:0; }
.weekly-photo-image { aspect-ratio:4/3; background:#f6f5f0; border-radius:8px; display:flex; align-items:center; justify-content:center; text-align:center; overflow:hidden; font-size:13px; padding:6px; }
.weekly-photo-image img { display:block; width:100%; height:100%; object-fit:contain; }
.weekly-queue { display:grid; gap:16px; }
.weekly-history { display:flex; gap:18px; border-top:1px solid var(--line,#dedfd6); padding-top:18px; overflow-wrap:anywhere; }
.weekly-history>div { min-width:0; }
.weekly-saved-photo { width:140px; height:110px; object-fit:contain; background:#f6f5f0; border-radius:8px; flex-shrink:0; }
#weekly-posts-root button { min-height:44px; white-space:normal; }
#weekly-posts-root [hidden] { display:none!important; }
@media(max-width:850px) { .weekly-layout { grid-template-columns:1fr; } .weekly-heading { flex-direction:column; } }
@media(max-width:500px) { .weekly-box { padding:18px; } .weekly-photos { grid-template-columns:1fr; } .weekly-history { flex-direction:column; } .weekly-actions>button { flex:1 1 140px; } }
