/* 공지 작성/수정 및 상세 첨부파일 */
#noticeForm .notice-upload-field{padding:18px;border:1px solid #dce8e5;border-radius:14px;background:#f5faf9;gap:12px;min-width:0}
#noticeForm .notice-upload-field>label{font-size:.94rem;font-weight:800;color:#0f172a}
#noticeForm #noticeFiles{box-sizing:border-box;width:100%;max-width:100%;min-width:0;padding:10px;border:1px solid #cbded9;border-radius:12px;background:#fff;color:#64748b;font:inherit;font-size:.86rem;cursor:pointer}
#noticeFiles::file-selector-button{margin-right:12px;padding:10px 16px;border:0;border-radius:9px;background:#0f766e;color:#fff;font:inherit;font-weight:800;cursor:pointer;transition:background .15s}
#noticeFiles::file-selector-button:hover{background:#0b5f47}
#noticeForm #noticeFiles:focus-visible{outline:3px solid #99f6e4;outline-offset:2px}
#noticeForm .notice-upload-field>small{display:block;color:#64748b;font-size:.78rem;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
#noticeAttachments{display:grid;gap:8px;min-width:0}
#noticeAttachments:empty{display:none}
#noticeAttachments>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:12px 14px;border:1px solid #dce8e5;border-radius:11px;background:#fff;color:#334155;font-size:.85rem;line-height:1.6;overflow-wrap:anywhere}
#noticeAttachments>div>span{min-width:0;overflow-wrap:anywhere}
#noticeAttachments button{flex-shrink:0;min-height:36px;padding:7px 12px;border:1px solid #fecaca;border-radius:9px;background:#fff7f7;color:#b91c1c;font:inherit;font-size:.78rem;font-weight:700;cursor:pointer}
#noticeAttachments button:hover{background:#fee2e2}
#noticeAttachments button:focus-visible{outline:3px solid #fca5a5;outline-offset:2px}
#noticeAttachments button:disabled,#noticeFiles:disabled{opacity:.55;cursor:wait}
.notice-attachments{margin-top:22px;padding:18px;border:1px solid #dce8e5;border-radius:14px;background:#f5faf9}
.notice-attachments h3{margin:0 0 12px;font-size:.95rem;color:#0f172a}
.notice-attachments p{margin:8px 0}
.notice-attachments a{display:block;padding:12px 14px;border:1px solid #dce8e5;border-radius:10px;background:#fff;color:#0f766e;font-size:.88rem;font-weight:700;line-height:1.6;text-decoration:none;overflow-wrap:anywhere}
.notice-attachments a:hover{border-color:#0f766e;background:#ecfdf5}
.notice-attachments a:focus-visible{outline:3px solid #99f6e4;outline-offset:2px}
@media(max-width:520px){#noticeForm .notice-upload-field,.notice-attachments{padding:14px}#noticeAttachments>div{flex-wrap:wrap;padding:10px 12px}#noticeAttachments>div>span{flex-basis:100%}#noticeFiles::file-selector-button{padding:10px 12px;margin-right:8px}}

#noticeEditor[hidden], #noticeListPanel[hidden], #adminNoticeDetail[hidden] { display: none !important; }
.notice-admin-row { cursor: pointer; }
.notice-detail-trigger { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.notice-detail-content { min-width: 0; overflow-wrap: anywhere; }
.notice-rich-image { margin: 1rem 0; }
.notice-rich-image img, .notice-attachment-item img, #noticeImagePreview img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-block: 8px;
}
.notice-attachment-item + .notice-attachment-item { margin-top: 12px; }
#adminNoticeDetail {
  --notice-detail-inset: clamp(14px, 3vw, 24px);
}

#adminNoticeBody, #adminNoticeFiles {
  margin-inline: var(--notice-detail-inset);
}

#adminNoticeDetail .notice-rich-image img,
#adminNoticeDetail .notice-attachment-item img {
  width: 98%;
}

#adminNoticeDetail .community-actions {
  margin-top: 18px;
  padding: 0 var(--notice-detail-inset) var(--notice-detail-inset);
}
