/* Studio layout owns sizing; mounted tools must not resize the shell. */
.studio-page .studio-sidebar {font-family:'Outfit',ui-sans-serif,system-ui,sans-serif}
.studio-page .studio-nav-item {line-height:1.45;flex-shrink:0}
.studio-page .studio-tool-pane,.studio-page .studio-tool-inner {min-width:0;max-width:100%}
.studio-page .studio-format-tool {display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden}
.studio-page .studio-format-tool > .studio-format-workspace.word-converter-workspace {
 display:flex;flex-direction:column;flex:1 1 0%;width:100%;max-width:none;min-width:0;min-height:0;height:auto;
 margin:0;padding:0 clamp(14px,2vw,28px) 20px;box-sizing:border-box;container-type:inline-size;
}
.studio-page .studio-format-workspace > .tool-panels {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);flex:1 1 0%;
 width:100%;min-width:0;min-height:0;height:auto;gap:20px;align-items:stretch;
}
.studio-page .studio-format-workspace :is(.tool-panel,.preview-panel) {
 width:100%;min-width:0;min-height:0!important;height:auto!important;max-height:none!important;
 padding:20px;overflow:auto;border-radius:22px;box-shadow:0 5px 24px rgba(0,0,0,.045);
}
.studio-page .studio-format-workspace :is(.upload-dropzone,.result-viewport) {
 flex:1 1 0%;width:100%;min-width:0;min-height:0;max-width:100%;overflow:auto;
 background:#fafafa;border-radius:16px;
}
.studio-page .studio-format-workspace :is(.panel-title-group,.preview-frame,.preview-stage,.preview-media-row,.pdf-preview-placeholder,.markdown-output) {min-width:0;max-width:100%}
.studio-page .studio-format-workspace .panel-title-row {flex-wrap:wrap;gap:10px;flex-shrink:0}
.studio-page .studio-format-workspace .panel-title-group {flex-wrap:wrap;gap:8px}
.studio-page .studio-format-workspace .panel-header-action {margin-left:auto}
.studio-page .studio-format-workspace .markdown-output {overflow:auto}
.studio-page .studio-format-workspace pre {max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
.studio-page .studio-format-workspace .preview-bottom-note {max-width:calc(100% - 20px)}
.studio-page .studio-format-workspace .feedback {flex-shrink:0;overflow-wrap:anywhere}
@container(max-width:760px) {
 .studio-page .studio-format-workspace > .tool-panels {grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;overflow-y:auto;align-content:start;padding-bottom:2px}
 .studio-page .studio-format-workspace :is(.tool-panel,.preview-panel) {min-height:380px!important;overflow:visible}
 .studio-page .studio-format-workspace :is(.upload-dropzone,.result-viewport) {min-height:270px;max-height:480px}
}
html[data-theme="dark"] .studio-format-workspace :is(.tool-panel,.preview-panel) {background:#212121!important;border-color:#383838!important}
html[data-theme="dark"] .studio-format-workspace :is(.upload-dropzone,.result-viewport,.markdown-output,pre) {background:#181818!important;color:#ececec;border-color:#383838}
