/* Read-only Office preview layout; host controls supply their own themes. */
.dxf-office-preview{height:100%;min-height:240px;display:flex;flex-direction:column;gap:5px;padding:6px;box-sizing:border-box}
.dxf-office-toolbar,.dxf-office-tabs{display:flex;gap:5px;flex-wrap:wrap;align-items:center;flex:none}
.dxf-office-toolbar input{max-width:230px;min-width:80px;flex:1}
.dxf-office-toolbar button,.dxf-office-toolbar select,.dxf-office-tabs button{font:12px system-ui;padding:4px 8px}
.dxf-office-tabs button[aria-selected=true]{font-weight:600;border-bottom:2px solid #276caa}
.dxf-office-stage{flex:1;min-width:0;min-height:150px;overflow:hidden;position:relative;display:flex;flex-direction:column}
.dxf-office-stage>grid-web,.dxf-office-stage>rich-text-page-editor{height:100%;width:100%;flex:1;display:block;min-height:150px}
.dxf-office-stage>pre{overflow:auto;white-space:pre-wrap;padding:8px;margin:0}
.dxf-office-stage img{object-fit:contain;max-width:100%;max-height:100%}
.dxf-office-status{font:12px system-ui;margin:0;padding:5px;white-space:pre-wrap}
.dxf-office-status[data-error=true]{color:#b42318}
.dxf-office-status[data-warning=true]{color:#915b05}
.dxf-office-launcher{white-space:nowrap}
