/* Scoped announcement editor. The generic form-grid is deliberately not used. */
.announcement-settings-card { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:20px 0 24px; padding:18px; border:1px solid #e0e5f1; border-radius:18px; background:linear-gradient(120deg,#f7f9ff,#fdfcff); }
.announcement-card-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:14px; color:#245bff; background:#e9eeff; flex-shrink:0; }
.announcement-card-icon svg { width:24px; height:24px; }
.announcement-card-copy { flex:1; min-width:170px; }
.announcement-card-copy h3 { font-size:15px; margin:0 0 4px; }
.announcement-card-copy p { margin:0 0 7px; font-size:12px; color:#60677b; }
.announcement-card-copy>span { font-size:11px; color:#71798c; }
.announcement-settings-card>.secondary-button { white-space:nowrap; }
.announcement-feedback { width:100%; margin:0; color:#a62732; font-size:13px; }
.announcement-dialog { width:min(1120px,calc(100vw - 48px)); max-width:none; max-height:min(900px,calc(100dvh - 56px)); padding:0; border:1px solid #e6e9f2; border-radius:26px; background:#fff; color:#171b27; overflow:hidden; box-shadow:0 32px 100px #0d173447; }
.announcement-dialog::backdrop { background:#18203994; backdrop-filter:blur(7px); }
.announcement-dialog>form { display:flex; flex-direction:column; max-height:min(900px,calc(100dvh - 56px)); min-height:0; }
.announcement-dialog-header { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; padding:28px 32px 24px; border-bottom:1px solid #e9ecf4; }
.announcement-eyebrow { margin:0 0 9px; color:#315fe8; font-size:10px; font-weight:800; letter-spacing:1.5px; }
.announcement-dialog-header h2 { margin:0 0 8px; font-size:27px; font-weight:800; letter-spacing:-.7px; line-height:1.18; }
.announcement-dialog-header p:last-child { margin:0; font-size:13px; color:#72798b; line-height:1.5; }
.announcement-close { width:36px; height:36px; flex-shrink:0; display:grid; place-items:center; border:1px solid #e5e9f1; border-radius:50%; background:#fff; color:#72798b; font-size:26px; line-height:1; cursor:pointer; }
.announcement-close:hover { background:#f0f3fa; color:#171b27; }
.announcement-dialog-body { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); overflow:auto; min-height:0; }
.announcement-editor { min-width:0; padding:28px 32px; }
.announcement-section-heading { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.announcement-step { display:grid; place-items:center; width:33px; height:33px; border-radius:10px; background:#edf1ff; color:#345bf0; font-size:11px; font-weight:800; }
.announcement-section-heading h3 { margin:0 0 3px; font-size:16px; }
.announcement-section-heading p { margin:0; color:#7b8191; font-size:12px; }
.announcement-upload { position:relative; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:12px; min-height:136px; border:1.5px dashed #cdd7f3; border-radius:16px; background:#f8faff; cursor:pointer; overflow:hidden; }
.announcement-upload:hover { border-color:#567aff; background:#f1f5ff; }
.announcement-upload:focus-within { outline:3px solid #c8d6ff; outline-offset:3px; }
.announcement-upload input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.announcement-upload-icon { display:grid; place-items:center; width:43px; height:43px; color:#315fee; background:#eaf0ff; border-radius:13px; }
.announcement-upload-icon svg { width:24px; height:24px; }
.announcement-upload-copy { display:flex; flex-direction:column; gap:5px; align-items:center; font-size:13px; }
.announcement-upload-copy>span { color:#8490a9; font-size:11px; }
.announcement-upload.has-poster { flex-direction:row; justify-content:flex-start; padding:14px; min-height:128px; }
.announcement-upload.has-poster>img { width:104px; height:104px; object-fit:cover; border-radius:10px; }
.announcement-photo-actions { display:flex; justify-content:space-between; gap:12px; margin-top:10px; font-size:11px; color:#7c8597; }
.announcement-photo-actions>span { white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.announcement-photo-actions button { border:0; padding:0; background:none; color:#7b6070; font:inherit; white-space:nowrap; cursor:pointer; }
.announcement-help { margin:10px 0 0; font-size:11px; line-height:1.6; color:#7d8494; }
.announcement-text-heading { margin-top:25px; }
.announcement-text-label { display:block; }
.announcement-text-label textarea { display:block; width:100%; min-height:180px; padding:16px; border:1px solid #dce2ed; border-radius:14px; background:#fff; color:#252b3d; font-size:13px; font-family:inherit; line-height:1.65; resize:vertical; box-sizing:border-box; }
.announcement-text-label textarea:focus { outline:3px solid #e5ecff; border-color:#7193ff; }
.announcement-text-meta { display:flex; justify-content:space-between; margin:12px 0 9px; color:#828a9b; font-size:10px; }
.announcement-tokens { display:flex; flex-wrap:wrap; gap:7px; }
.announcement-tokens button { display:flex; gap:6px; align-items:center; padding:7px 9px; border:1px solid #e5e9f3; border-radius:8px; background:#f9faff; color:#414c67; font:inherit; font-size:10px; cursor:pointer; }
.announcement-tokens button span { color:#7b8dbb; font-size:9px; }
.announcement-tokens button:hover { border-color:#a9bdfa; background:#eef3ff; }
.announcement-preview-pane { min-width:0; padding:27px 30px 24px; background:linear-gradient(155deg,#f3f5fb,#eef2f9); border-left:1px solid #e8ecf4; }
.announcement-preview-heading { display:flex; align-items:center; gap:7px; color:#7b8497; font-size:11px; margin-bottom:16px; }
.announcement-preview-heading>span:first-child { margin-right:auto; color:#6a7690; font-size:10px; font-weight:800; letter-spacing:1.2px; }
.announcement-preview-dot { width:6px; height:6px; border-radius:50%; background:#47b9b1; }
.announcement-phone-feed { padding:18px; border:1px solid #d8e1ed; border-radius:22px; background:#e2ebf2; background-image:radial-gradient(#c9d7e380 1px,transparent 1px); background-size:18px 18px; }
.announcement-post { overflow:hidden; border-radius:14px; background:#fff; box-shadow:0 5px 18px #2133540c; }
.announcement-post-author { display:flex; align-items:center; gap:9px; padding:13px 14px; }
.announcement-avatar { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#203451; color:#fff; font-size:13px; font-weight:800; }
.announcement-post-author>div { display:flex; flex-direction:column; gap:3px; }
.announcement-post-author strong { color:#375171; font-size:12px; }
.announcement-post-author>div>span { color:#8994a1; font-size:9px; }
.announcement-post-photo { display:block; width:100%; max-height:300px; object-fit:contain; background:#13171f; }
.announcement-post-content { padding:14px; }
.announcement-post-content>[data-announcement-preview] { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.65; color:#263142; }
.announcement-post-signup { margin:14px 0 0; padding-top:12px; border-top:1px solid #eef1f6; color:#4a5a70; font-size:10px; line-height:1.55; }
.announcement-post-bottom { display:flex; justify-content:space-between; gap:8px; margin-top:12px; color:#9ba5b4; font-size:8px; }
.announcement-post-comments { display:flex; justify-content:space-between; padding:11px 14px; border-top:1px solid #edf1f7; color:#4b83b1; font-size:10px; }
.announcement-preview-note { margin:12px 0 16px; color:#8590a4; font-size:10px; line-height:1.5; }
.announcement-scope-note { display:flex; align-items:flex-start; gap:10px; border:1px solid #dce3ee; border-radius:12px; padding:12px; background:#ffffff70; }
.announcement-scope-note>span { color:#7286b2; font-size:17px; }
.announcement-scope-note p { margin:0; color:#7b879c; font-size:10px; line-height:1.6; }
.announcement-scope-note strong { color:#627089; font-weight:500; }
.announcement-dialog-footer { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:19px 32px; border-top:1px solid #e7eaf1; background:#fff; }
.announcement-footer-state { min-width:0; }
.announcement-footer-state p { margin:0; color:#8b93a2; font-size:11px; line-height:1.5; }
.announcement-footer-state [role="alert"] { color:#b53548; }
.announcement-footer-state [role="status"] { color:#22796e; }
.announcement-footer-actions { display:flex; gap:10px; flex-shrink:0; }
.announcement-footer-actions button { border-radius:11px; font-size:12px; padding:11px 16px; }
.announcement-dialog button:disabled { opacity:.45; cursor:default; }
.announcement-dialog button:focus-visible { outline:3px solid #b6caff; outline-offset:3px; }
.announcement-discard { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:7px; font-size:11px; }
.announcement-discard button { border:0; border-radius:6px; padding:6px; background:#f0f3fa; color:#485a7b; font:inherit; cursor:pointer; }
.announcement-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body.announcement-modal-open { overflow:hidden; }
@media(max-width:760px) {
  .announcement-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 24px); border-radius:20px; }
  .announcement-dialog>form { max-height:calc(100dvh - 24px); }
  .announcement-dialog-header { padding:20px; gap:14px; }
  .announcement-dialog-header h2 { font-size:21px; }
  .announcement-dialog-header p:last-child { font-size:11px; }
  .announcement-dialog-body { grid-template-columns:minmax(0,1fr); }
  .announcement-editor,.announcement-preview-pane { padding:22px 20px; }
  .announcement-preview-pane { border-left:0; border-top:1px solid #e8ecf4; }
  .announcement-dialog-footer { padding:14px 18px; gap:12px; flex-wrap:wrap; }
  .announcement-footer-actions { width:100%; }
  .announcement-footer-actions button { flex:1; min-width:0; }
  .announcement-upload.has-poster>img { width:80px; height:80px; }
}
