.teacher-updates-panel { margin-bottom: 20px; }
.teacher-post-manager .section-head { align-items: flex-start; }
.teacher-post-manager .section-head p { margin: .45em 0 0; max-width: 720px; }
.teacher-post-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin: 24px 0; padding: 22px; border: 2px solid #e6c477; border-radius: 16px; background: #fff8e5; }
.teacher-post-form[hidden] { display: none; }
.teacher-post-form .wide, .teacher-post-form .form-head { grid-column: 1 / -1; }
.teacher-post-form h3 { margin: 0; color: var(--navy, #132f52); font: 700 27px Georgia, serif; }
.check-option { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 9px; }
.check-option input { width: 20px; height: 20px; margin: 0; }
.teacher-post-upload { position: relative; border: 2px dashed #cfaa59; border-radius: 13px; padding: 15px; color: var(--navy, #132f52); background: white; cursor: pointer; }
.teacher-post-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.teacher-post-upload span { font-weight: 650; color: #58647b; }
.teacher-post-feed { display: grid; gap: 14px; margin-top: 20px; }
.teacher-post-card { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 20px; border: 1px solid #dfc58f; border-left: 7px solid var(--teal, #007f77); border-radius: 15px; background: #fffdf8; color: #243552; }
.teacher-post-card.pinned { border-left-color: var(--pink, #d91f68); box-shadow: 0 12px 30px #39200f14; }
.teacher-post-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.teacher-post-head h3 { margin: 0 0 5px; color: var(--navy, #132f52); font: 700 25px/1.15 Georgia, serif; }
.teacher-post-meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; color: #65708a; font-size: 13px; }
.teacher-post-chip { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #e7f2ee; color: #176151; font-size: 11px; font-weight: 850; }
.teacher-post-chip.draft { background: #eee8f5; color: #55317f; }
.teacher-post-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.teacher-post-media { display: grid; gap: 10px; }
.teacher-post-media img, .teacher-post-media video { display: block; max-width: 100%; max-height: 460px; border-radius: 12px; background: #101927; object-fit: contain; }
.teacher-post-media audio { width: min(100%, 600px); }
.teacher-post-link { width: fit-content; color: #075f83; font-weight: 800; overflow-wrap: anywhere; }
.teacher-post-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid #eadcc2; }
.teacher-post-manager > .teacher-post-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.public-updates { background: #fff4cf; }
.public-updates .teacher-post-feed { grid-template-columns: minmax(0, 1fr); align-items: start; max-width: 1100px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .teacher-post-manager > .teacher-post-feed { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .teacher-post-form { grid-template-columns: 1fr; padding: 16px; }
  .teacher-post-form .wide, .teacher-post-form .form-head { grid-column: 1; }
  .teacher-post-head, .teacher-post-manager .section-head { flex-direction: column; }
  .teacher-post-manager .section-head button { width: 100%; }
  .public-updates .teacher-post-feed { grid-template-columns: 1fr; }
}
