.sec-write .sec-write-form { margin-top:26px; border-top:1px solid #dce5f0; }
.sec-write .sec-write-row { display:grid; grid-template-columns:120px minmax(0,1fr); border-bottom:1px solid #dce5f0; }
.sec-write .sec-write-row>label { padding:20px; background:#f3f7fd; color:#566783; font-size:15px; }
.sec-write .sec-write-row>div { min-width:0; padding:18px 20px; }
.sec-write input[type=text],.sec-write textarea { width:100%; border:1px solid #b6c4d7; border-radius:3px; padding:12px; background:#fff; color:#10182b; font:inherit; }
.sec-write textarea { min-height:320px; resize:vertical; font-family:ui-monospace,monospace; font-size:14px; }
.sec-write .sec-write-check { display:flex; align-items:center; gap:8px; margin-top:8px; overflow-wrap:anywhere; }
.sec-write input[type=checkbox] { width:18px; height:18px; }
.sec-write input[type=file] { max-width:100%; font:inherit; font-size:14px; }
.sec-write .sec-write-format { display:flex; gap:8px; margin-bottom:10px; }
.sec-write .sec-write-format-button { padding:6px 12px; border:1px solid #c4cfdf; border-radius:3px; background:white; color:#566783; cursor:pointer; }
.sec-write .sec-write-format-button[aria-pressed=true] { border-color:#0755f7; color:#0755f7; background:#f3f7fd; }
.sec-write .sec-write-editor { min-height:320px; padding:16px; border:1px solid #b6c4d7; border-radius:3px; overflow-wrap:anywhere; line-height:1.85; }
.sec-write .sec-write-editor img { max-width:100%; height:auto; }
.sec-write .sec-write-editor ul,.sec-write .sec-write-editor ol { padding-left:24px; }
.sec-write .sec-write-editor li { list-style:revert; }
.sec-write [hidden] { display:none; }
.sec-write .sec-write-status:not(:empty) { margin-top:18px; padding:14px; background:#f3f7fd; color:#566783; }
@media(max-width:767px) {
.sec-write .sec-write-row { grid-template-columns:1fr; }
.sec-write .sec-write-row>label { padding:12px 16px; }
.sec-write .sec-write-row>div { padding:16px; }
}
/* 작성 화면에서도 버튼 스타일 적용: 상세 화면의 부모 클래스에 의존하지 않음 */
.sec-write .sec-detail-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:10px; margin:22px 0 0; }
.sec-write .sec-detail-list,.sec-write .sec-detail-secondary { display:inline-flex; align-items:center; justify-content:center; min-width:110px; min-height:46px; padding:11px 24px; border:1px solid #0755f7; border-radius:4px; background:#fff; color:#0755f7; font:inherit; font-size:16px; font-weight:600; line-height:1.5; text-decoration:none; }
.sec-write .sec-detail-secondary { border-color:#c4cfdf; color:#455673; }
.sec-write .sec-detail-list:hover,.sec-write .sec-detail-secondary:hover { background:#f0f6fd; }
/* 공통 스크립트가 생성한 첨부파일 UI */
.sec-write input.sec-write-file-name { width:calc(100% - 110px); height:46px; padding:0 14px; border:1px solid #b6c4d7; border-right:0; border-radius:3px 0 0 3px; background:#f8faff; color:#566783; vertical-align:top; cursor:pointer; }
.sec-write .sec-write-file-control { display:inline-block; position:relative; width:110px; height:46px; margin:0; border:1px solid #0755f7; border-radius:0 3px 3px 0; background:#0755f7; vertical-align:top; overflow:hidden; }
.sec-write .sec-write-file-control::before { content:'찾아보기'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; font-weight:600; pointer-events:none; }
.sec-write .sec-write-file-control input[type=file] { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; opacity:0; cursor:pointer; }
.sec-write .sec-write-file-control:focus-within { outline:2px solid #0755f7; outline-offset:3px; }
.sec-write .sec-write-existing-file:empty { display:none; }
.sec-write .sec-write-existing-file { margin-top:12px; font-size:14px; color:#566783; overflow-wrap:anywhere; }
.sec-write .sec-write-existing-file label { display:inline-flex; gap:6px; align-items:center; flex-wrap:wrap; }
.sec-write .sec-write-row iframe { max-width:100%; border:0; }
@media(max-width:767px) {
.sec-write input.sec-write-file-name { width:calc(100% - 92px); }
.sec-write .sec-write-file-control { width:92px; }
.sec-write .sec-detail-list,.sec-write .sec-detail-secondary { min-width:96px; }
}
