.content-preview-dialog{width:min(1200px,96vw);max-width:96vw;max-height:94vh}.content-preview-body{min-height:160px;overflow:auto}.content-inline-preview{border:1px solid #ddd;border-radius:4px;padding:12px;margin:14px 0;background:#fff}.content-preview-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.content-preview-toolbar strong{margin-right:auto}.content-preview-toolbar button{min-width:40px}.content-preview-image{display:block;max-width:100%;height:auto;margin:auto;border:1px solid #e1dfdd}.content-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:65vh;overflow:auto;padding:15px;background:#faf9f8;border:1px solid #e1dfdd;font-family:ui-monospace,monospace;font-size:13px}.content-preview-media{display:block;width:100%;max-height:65vh;margin:12px auto}.content-preview-hash{overflow-wrap:anywhere}.content-preview-body details,.content-inline-preview details{margin-top:15px}.content-preview-body .table-scroll{max-height:65vh;overflow:auto}@media(max-width:600px){.content-preview-dialog{padding:12px}.content-preview-toolbar{gap:6px}.content-preview-text{font-size:12px;padding:8px}}

.content-preview-dialog .page-heading h2{overflow-wrap:anywhere;font-family:Georgia,serif}.content-preview-dialog .content-preview-toolbar select{max-width:100%;min-width:12rem;flex:1;padding:8px}.content-preview-dialog{border-top:3px solid #a17a54;border-bottom:3px solid #a17a54}.content-preview-dialog .content-preview-body{max-height:72vh;overflow:auto}

/* DR working document view: compact controls, persistent list and preview. */
.dw-workspace{--dw-list-width:32%;display:grid;grid-template-columns:minmax(220px,var(--dw-list-width)) 10px minmax(0,1fr);border:1px solid #d9cbb8;border-top:2px solid #a17a54;background:#fff;min-width:0;height:min(72vh,850px);font:14px Arial,Helvetica,sans-serif;color:#292b2c}
.dw-document-list,.dw-viewer{min-width:0;min-height:0;overflow:hidden}.dw-document-list{display:flex;flex-direction:column;gap:9px;padding:14px;background:#faf8f4}.dw-document-list h3,.dw-viewer h3{font:20px Georgia,serif;margin:0;overflow-wrap:anywhere}.dw-document-list input,.dw-document-list select{width:100%;min-width:0;padding:9px;border:1px solid #d9cbb8;border-radius:3px;background:#fff}.dw-rows{overflow:auto;min-height:0;display:flex;flex-direction:column;gap:3px}.dw-workspace button.dw-document-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:4px 10px;text-align:left;width:100%;white-space:normal;height:auto;min-height:62px;padding:10px;border:1px solid transparent;border-radius:3px;background:transparent;color:#292b2c;box-shadow:none;line-height:1.35}.dw-document-row strong,.dw-document-row .meta{overflow-wrap:anywhere;min-width:0}.dw-document-row .meta{grid-column:2;font-size:12px}.dw-file-kind{grid-row:1/3;align-self:center;font-size:10px;font-weight:bold;color:#805d3e;background:#eee7dc;padding:6px 3px;text-align:center;border-radius:3px}.dw-workspace button.dw-document-row.is-selected{background:#eee7dc;border-color:#a17a54}.dw-divider{cursor:col-resize;background:#f3efe9;border-inline:1px solid #e2d9cc;touch-action:none}.dw-divider:hover,.dw-divider:focus-visible{background:#d9cbb8}.dw-viewer{display:flex;flex-direction:column}.dw-viewer-head{padding:12px;border-bottom:1px solid #d9cbb8;background:#fff;display:flex;flex-direction:column;gap:8px}.dw-document-nav{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.dw-document-nav .meta{margin-right:auto}.dw-workspace .dw-button,.dw-dialog .dw-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:32px;min-height:32px;height:auto;padding:6px 9px;margin:0;border:1px solid #d9cbb8;border-radius:3px;background:#fff;color:#292b2c;box-shadow:none;font:13px/1.25 Arial,Helvetica,sans-serif;white-space:normal;text-decoration:none;cursor:pointer}.dw-button:disabled{opacity:.4;cursor:default}.dw-workspace button:hover:not(:disabled){background:#eee7dc}.dw-workspace :focus-visible{outline:2px solid #805d3e;outline-offset:2px}.dw-workspace [hidden],.dw-dialog [hidden]{display:none!important}.dw-viewer>.content-preview-body{flex:1;overflow:auto;min-height:0;max-height:none;padding:12px;background:#f1eee8}.dw-empty{padding:24px;color:#68655f}.dw-expanded{grid-template-columns:minmax(0,1fr)}.dw-expanded>.dw-document-list,.dw-expanded>.dw-divider{display:none}.dw-page-stage{display:flex;align-items:flex-start;gap:12px;min-width:0}.dw-page-canvas{overflow:auto;min-width:0;flex:1;max-height:60vh}.dw-page-canvas img{display:block;background:#fff;box-shadow:0 2px 6px #0001}.dw-thumbnails{width:102px;flex:0 0 102px;max-height:55vh;overflow:auto;display:flex;flex-direction:column;gap:8px}.dw-thumbnail{display:flex;flex-direction:column;align-items:center;padding:5px;border:1px solid #d9cbb8;background:#fff;color:#292b2c;min-height:60px;cursor:pointer}.dw-thumbnail img{width:70px;height:auto;min-height:40px;object-fit:contain}.dw-thumbnail.is-selected{outline:2px solid #a17a54;outline-offset:-2px}.content-preview-toolbar input[type=number]{width:60px;min-width:60px;padding:6px}.content-preview-toolbar select{padding:6px;max-width:180px}.dw-dialog,.pm-document-dialog{width:96vw!important;max-width:1600px!important;max-height:96vh!important}.dw-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px}.dw-dialog-head h2{font:24px Georgia,serif;margin:0}.dw-dialog .content-preview-body{max-height:none}.pm-document-management{margin-top:12px}.pm-document-management summary{cursor:pointer;color:#805d3e;padding:8px}.dw-workspace .content-preview-toolbar{gap:6px}.dw-workspace .content-preview-toolbar strong{font-size:12px}.dw-workspace .content-preview-toolbar select{flex:0 1 auto;min-width:0}.dw-workspace .content-preview-text{max-height:none;font-size:13px;background:#fff}
@media(max-width:760px){.dw-workspace{display:flex;flex-direction:column;height:auto;max-height:none}.dw-document-list{max-height:230px;flex:none}.dw-rows{max-height:130px}.dw-divider{display:none}.dw-viewer{min-height:330px}.dw-viewer>.content-preview-body{max-height:65vh}.dw-viewer-head{padding:10px}.dw-page-canvas{max-height:55vh}.dw-thumbnails{width:74px;flex-basis:74px}.dw-thumbnail img{width:52px}.dw-dialog,.pm-document-dialog{padding:10px!important;width:98vw!important}.dw-document-nav{gap:4px}.dw-workspace .dw-button{min-height:38px}.dw-expanded>.dw-document-list{display:none}}

.dw-processing{padding:14px;background:#fff;border:1px solid #d9cbb8;margin-top:16px}.dw-processing input{width:100%;padding:9px}.dw-processing details button{display:block;width:100%;text-align:left;margin:6px 0}.dw-processing mark{background:#f7dc96;color:#292b2c}
