/* Compact text-draft editor footer only; save and email behaviour remain unchanged. */
dialog.word-workspace .word-form>.word-editor-footer{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px 20px;padding-top:14px;border-top:1px solid #e0e8f0;margin:2px 0 0;min-width:0;background:#fff}
.word-editor-footer>.word-editor-status{margin:0!important;font-size:13px!important;line-height:1.5;color:#62758a;min-width:0;overflow-wrap:anywhere}
.word-editor-actions{display:flex;align-items:stretch;justify-content:flex-end;gap:8px;min-width:0}
dialog.word-workspace .word-editor-actions>button{box-sizing:border-box;margin:0!important;min-height:38px!important;padding:8px 13px;font-size:14px!important;line-height:1.4;border-radius:6px;white-space:normal;max-width:100%}
.word-editor-menu,.word-editor-menu[open]{position:relative;display:block;box-sizing:border-box;flex:0 0 38px;width:38px;min-width:0!important;height:38px;padding:0!important;margin:0!important;border:0;background:transparent;overflow:visible}
.word-editor-menu>summary{display:flex;box-sizing:border-box;align-items:center;justify-content:center;width:38px;height:38px;min-height:38px!important;list-style:none;margin:0!important;padding:0!important;border:1px solid #cad8e6;border-radius:6px;background:#fff;color:#234e78;cursor:pointer;font-size:20px!important;line-height:1}
.word-editor-menu>summary::-webkit-details-marker{display:none}.word-editor-menu>summary::after{content:none!important}.word-editor-menu>summary:hover{background:#edf3f9}.word-editor-menu>summary:focus-visible{outline:2px solid #285e8b;outline-offset:2px}
.word-editor-options{position:absolute;right:0;bottom:calc(100% + 6px);z-index:50;box-sizing:border-box;width:230px;max-width:calc(100vw - 40px);padding:4px;border:1px solid #d5e0eb;border-radius:8px;box-shadow:0 8px 24px #193c5926;background:#fff}
dialog.word-workspace .word-editor-options>button{box-sizing:border-box;display:block;width:100%;margin:0!important;padding:9px 12px;min-height:38px!important;border:0;border-radius:4px;background:transparent;color:#234e78;text-align:left;font-size:14px!important;line-height:1.4;white-space:normal}
dialog.word-workspace .word-editor-options>button:hover{background:#edf3f9}dialog.word-workspace .word-editor-options>button:disabled{color:#8293a2;cursor:not-allowed}
@media(max-width:1100px),(any-pointer:coarse){dialog.word-workspace .word-editor-actions>button,dialog.word-workspace .word-editor-options>button,.word-editor-menu>summary{min-height:44px!important}.word-editor-menu,.word-editor-menu[open],.word-editor-menu>summary{width:44px;height:44px;flex-basis:44px}}
@media(max-width:600px){dialog.word-workspace .word-form>.word-editor-footer{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding-top:12px}.word-editor-actions{display:grid;grid-template-columns:minmax(0,1fr) 44px auto;width:100%;gap:8px}.word-editor-actions>button:first-child{min-width:0}.word-editor-options{right:0;width:220px;max-width:calc(100vw - 40px)}}

@media(max-width:600px){
 .word-editor-actions{position:relative;align-items:stretch}
 .word-editor-actions>.word-editor-menu,.word-editor-actions>.word-editor-menu[open]{position:static;height:auto;min-height:44px;align-self:stretch}
 .word-editor-actions>.word-editor-menu>summary{height:100%!important}
 .word-editor-actions .word-editor-options{right:0;bottom:calc(100% + 6px)}
}
