/* Scoped to the new module editor and renderer. Existing pages keep their styles. */
.yw-work-modules { min-width:0; color:inherit; }
.yw-work-modules .wm-editor,.yw-work-modules .wm-member { min-width:0; }
.yw-work-modules .wm-toolbar,.yw-work-modules .wm-pages,.yw-work-modules .wm-card-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; align-items:center; }
.yw-work-modules .wm-card,.yw-work-modules .wm-module,.yw-work-modules .wm-dialog,.yw-work-modules .wm-member { border:1px solid #dce3db; border-radius:14px; padding:18px; margin:10px 0; background:#fff; overflow-wrap:anywhere; }
.yw-work-modules .wm-card-heading { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.yw-work-modules .wm-card-heading span { color:#65786e; font-size:13px; }
.yw-work-modules .wm-insertion { display:flex; justify-content:center; min-height:26px; }
.yw-work-modules .wm-insertion button { font-size:12px; line-height:1.4; padding:4px 9px; min-height:0; background:transparent; border:1px dashed #c8d5ca; border-radius:6px; color:#32604e; }
.yw-work-modules .wm-card-actions button { font-size:13px; padding:5px 10px; min-height:30px; }
.yw-work-modules .wm-dialog { background:#f6f8f4; }
.yw-work-modules .wm-dialog label,.yw-work-modules .wm-label { display:block; margin:12px 0 6px; }
.yw-work-modules .wm-dialog input:not([type=checkbox]):not([type=radio]),.yw-work-modules .wm-dialog select,.yw-work-modules .wm-dialog textarea,.yw-work-modules .wm-module textarea,.yw-work-modules .wm-module input:not([type=checkbox]):not([type=radio]) { box-sizing:border-box; width:100%; max-width:100%; }
.yw-work-modules input[type=checkbox],.yw-work-modules input[type=radio] { width:18px!important; height:18px!important; min-width:18px; min-height:18px; padding:0; flex:0 0 18px; margin:0 8px 0 0; vertical-align:middle; }
.yw-work-modules .wm-module-menu { display:flex; flex-wrap:wrap; gap:8px; }
.yw-work-modules .wm-option-row { display:flex; align-items:center; gap:8px; margin:8px 0; }
.yw-work-modules .wm-option-row input { flex:1; min-width:0; }
.yw-work-modules .wm-option-row button { flex:none; }
.yw-work-modules .wm-text { white-space:pre-wrap; }
.yw-work-modules .wm-media { display:block; max-width:100%; max-height:520px; object-fit:contain; margin:10px 0; }
.yw-work-modules .wm-repeat-row { border-left:3px solid #d6e3d5; padding:8px 12px; margin:10px 0; }
.yw-work-modules .wm-dimensions { display:flex; gap:10px; }
.yw-work-modules .wm-dimensions label { flex:1; min-width:0; }
.yw-work-modules fieldset { min-width:0; border:0; padding:0; }
.yw-work-modules fieldset>label { display:flex; align-items:center; gap:8px; margin:8px 0; }
.yw-work-modules [data-wm-error],.yw-work-modules [data-wm-dialog-error] { color:#a33d27; white-space:pre-wrap; }
.yw-work-modules [hidden] { display:none!important; }
.wm-work-actions { display:inline-flex; flex-direction:column; align-items:flex-start; gap:6px; }
.wm-work-actions>span { display:flex; gap:12px; }
.wm-work-state { font-size:14px; margin:0 16px; }
.wm-work-state:empty { display:none; }
.wm-lifecycle-dialog { max-width:520px; padding:16px; }
.wm-lifecycle-dialog [role=alert] { color:#a33d27; }
.wm-attendance-batch fieldset { display:flex; flex-wrap:wrap; gap:12px; margin:8px 0; }
.wm-attendance-batch label { display:inline-flex; align-items:center; gap:6px; }
.wm-attendance-batch input[type=checkbox] { width:18px!important; height:18px!important; min-width:18px; flex:0 0 18px; margin:0; }
.wm-attendance-batch [role=alert] { color:#a33d27; }
@media(max-width:600px) {
 .yw-work-modules .wm-card,.yw-work-modules .wm-module,.yw-work-modules .wm-dialog,.yw-work-modules .wm-member { padding:12px; }
 .yw-work-modules .wm-pages button { font-size:14px; padding:8px; }
}
