.sop-editor{width:min(1200px,94vw);max-height:92vh;border:1px solid #b4c9d7;border-radius:14px;padding:24px;overflow:auto}.sop-editor::backdrop{background:#142f4966}.sop-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.sop-edit-grid textarea{display:block;width:100%;min-height:55vh;font:14px/1.6 ui-monospace,monospace;padding:14px;box-sizing:border-box}.sop-edit-preview{max-height:60vh;overflow:auto;padding:16px;background:#f4f8fa;overflow-wrap:anywhere}.sop-edit-error{color:#a52b28}.sop-draftbar{margin:16px 0}.sop-draftbar p{margin:8px 0}.sop-editor .guide-actions{position:sticky;bottom:0;background:white;padding:12px 0}.sop-editor pre{white-space:pre-wrap}.department-sops .sop-reference small{display:block}@media(max-width:760px){.sop-edit-grid{grid-template-columns:1fr}.sop-editor{padding:16px}.sop-edit-grid textarea{min-height:35vh}}

.guide-resource{border-bottom:1px solid #d6e2e9;padding:14px 0}.guide-resource:last-child{border-bottom:0}.guide-resource p{margin:7px 0}.guide-resource details{font-size:13px}.guide-editor label{display:block;margin:12px 0}.guide-editor input,.guide-editor textarea,.guide-editor select{display:block;width:100%;box-sizing:border-box;padding:10px}.guide-targets>div{padding:8px;background:#eef5fa;margin:6px 0}.guide-publish{border-top:1px solid #d6e2e9;margin-top:16px;padding-top:10px}.guide-error{color:#a52b28}

.guides-panel button,.guide-editor button,.guide-publish button,.guide-resource button{border:1px solid #bfd1de;border-radius:6px;background:#f4f9fc;color:#155885;padding:8px 12px;font:inherit;cursor:pointer}.guides-panel button:hover,.guide-editor button:hover{background:#e5f0f8}.guides-panel button:disabled,.guide-editor button:disabled{opacity:.5;cursor:default}.guide-editor button[type=submit]{background:#1a65a0;color:white}.guide-resource{overflow-wrap:anywhere}
.sop-drawer .guides-panel{padding:12px 14px;margin:14px 0;font-size:13px}
.sop-drawer .guides-panel h2{font-size:18px;margin:0 0 8px}
.sop-drawer .guides-panel h3{font-size:14px;margin:8px 0}
.sop-drawer .guide-help>h3{display:none}
.sop-drawer .guide-resource{padding:8px 0}
.sop-drawer .guide-resource>.guide-description,.sop-drawer .guide-resource>.guide-source,.sop-drawer .guide-resource>details{display:none}
.sop-drawer .guide-resource [data-guide=remove]{display:none}
.sop-drawer .guides-panel .guide-actions{margin:8px 0;gap:6px}
.sop-drawer .guides-panel button{padding:5px 8px;font-size:12px}
.sop-drawer .guide-publish{margin-top:8px;padding-top:8px}

.binder-section-fields{display:grid;gap:14px;max-height:65vh;overflow:auto;padding-right:8px}.binder-section-fields label{display:grid;gap:6px;font-weight:600}.binder-section-fields textarea{min-height:85px;resize:vertical}
