.cad-command-dock{position:absolute;z-index:26;left:8px;right:8px;bottom:8px;height:64px;box-sizing:border-box;border:1px solid #b6c9c0;border-radius:8px;background:#fffffff5;color:#29483f;box-shadow:0 3px 14px #17382b18;font:12px/1.4 Arial,sans-serif;padding:5px 8px;overflow:hidden}.cad-command-dock[hidden],.cad-command-launcher[hidden]{display:none!important}.cad-command-message{height:21px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:11px/20px 'Courier New',monospace;color:#587166}.cad-command-form{display:flex;align-items:center;gap:6px;height:30px}.cad-command-form label{font:600 11px Arial;margin:0}.cad-command-form input{flex:1;min-width:70px;padding:5px 7px;border:0;border-left:1px solid #d1ddd6;outline-offset:-2px;background:transparent;color:#193e31;font:12px/1.4 'Courier New',monospace}.cad-command-form button,.cad-command-launcher{padding:5px 8px;border:1px solid #ccd9d1;border-radius:5px;background:#f5f8f4;color:#2b5141;font:11px Arial;white-space:nowrap}.cad-command-form button.active{background:#d7eddf;border-color:#509475}.cad-command-launcher{position:absolute;z-index:26;right:8px;bottom:8px;height:32px;box-shadow:0 2px 9px #17382b22}.cad-command-host>.render-label{bottom:80px!important}.cad-command-host .height-controls{bottom:84px}.cad-command-host .office-plan-legend{bottom:80px}.cad-command-host .cad-workplane-tools{top:10px}.cad-command-dock button:focus-visible,.cad-command-launcher:focus-visible{outline:3px solid #e7985b;outline-offset:1px}#officeStage:has(.cad-command-host)>.office-interaction-hint{bottom:82px!important}.cad-command-host .cad-workplane-tools summary{padding-top:7px;padding-bottom:7px}@media(max-width:600px){.cad-command-form label{display:none}.cad-command-form{gap:3px}.cad-command-form button{padding:5px}.cad-command-dock{left:4px;right:4px}.cad-command-form [data-cad-controls]{font-size:10px}}@media(prefers-reduced-motion:reduce){.cad-command-dock,.cad-command-launcher{transition:none}}
.cad-command-host .office-legend{position:relative;padding-bottom:78px;min-height:100px}.cad-command-host .office-wall-height,.cad-command-host .office-wall-transform,#officeStage:has(.cad-command-host) .office-wall-height,#officeStage:has(.cad-command-host) .office-wall-transform{bottom:86px!important}.open-office.presentation .cad-command-host .office-legend{position:absolute;bottom:76px;min-height:0;padding:8px 14px}.cad-command-host .office-legend:empty{display:none}

/* Keep the command window at the drawing edge; floating controls flow above it. */
body.workspace-ui-ready{--wui-command-clearance:0px;--cad-command-height:64px}
body.workspace-ui-ready:has(.cad-command-dock:not([hidden])){--wui-command-clearance:var(--cad-command-height)}
body.workspace-ui-ready:has(.cad-command-launcher:not([hidden])){--wui-command-clearance:32px}
body.workspace-ui-ready .cad-command-dock{left:0;right:0;bottom:0;height:var(--cad-command-height);border-radius:0}
body.workspace-ui-ready .cad-command-launcher{bottom:0}
