/* The same document controls in native workflow pages and the material graph. */
.dwp-entry { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 18px; margin:12px 0; padding:12px 14px; border:1px solid #e1def3; border-radius:10px; background:#faf9ff; }
.dwp-document { display:grid; gap:4px; min-width:0; }
.dwp-document>span { color:#83809a; font-size:11px; }
.dwp-document>strong { color:#353250; font-size:12px; overflow-wrap:anywhere; }
.dwp-entry-actions { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.dwp-entry a.dwp-open { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:6px 10px; box-sizing:border-box; border:1px solid #dcd6fb; border-radius:8px; background:#f0edff; color:#6553bd!important; text-decoration:none; font:600 12px/1.5 system-ui,sans-serif; white-space:nowrap; }
.dwp-count { border-left:1px solid #d9d1f8; padding-left:8px; font-weight:400; color:#8579ad; }
.dwp-entry .dwp-archive-link { font-size:11px; color:#817897!important; text-decoration:none; }
.dwp-entry a:focus-visible,.dwp-dialog button:focus-visible,.dwp-dialog a:focus-visible,.dwp-dialog input:focus-visible { outline:3px solid #a79ae5; outline-offset:3px; }
.dwp-node-photos { border:1px solid #e5e0f6; border-radius:12px; padding:12px 14px; margin:0 0 16px; background:#fff; }
.dwp-node-photos h3 { margin:0 0 4px; font-size:13px; color:#3e365d; }
.dwp-node-photos>p { margin:0; font-size:11px; color:#8b849b; }
.dwp-node-photos .dwp-entry:last-child { margin-bottom:0; }
.dwp-dialog { color:#2d2b44; background:#fafbfe; border:1px solid #dfdcec; border-radius:18px; padding:0; width:min(760px,calc(100vw - 32px)); height:min(880px,calc(100dvh - 40px)); max-width:none; max-height:none; box-shadow:0 20px 80px #25213a26; }
.dwp-dialog[open] { display:flex; flex-direction:column; }
.dwp-dialog::backdrop { background:#25213a66; }
.dwp-dialog-header { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px 22px; border-bottom:1px solid #e5e2ef; background:#fff; }
.dwp-dialog-header h2 { margin:4px 0 0; font-size:19px; }
.dwp-dialog-header small { color:#8a819f; font-size:11px; }
.dwp-dialog button { font:inherit; cursor:pointer; }
.dwp-dialog-header button { width:36px; height:36px; border:1px solid #e1dcec; border-radius:9px; background:#faf9ff; color:#756b88; font-size:22px; }
.dwp-dialog-body { overflow:auto; min-height:0; padding:20px 22px; }
.dwp-dialog .dwp-source { background:#f0edfc; border-radius:10px; padding:12px 14px; margin-bottom:16px; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.dwp-dialog .dwp-source strong { display:block; color:#6553bd; }
.dwp-dialog .dp-upload,.dwp-dialog .dp-archive { border:1px solid #e4e1ec; border-radius:12px; padding:18px; background:#fff; margin-bottom:16px; }
.dwp-dialog h2 { font-size:16px; }
.dwp-dialog .dp-upload>p,.dwp-dialog .dp-help,.dwp-dialog .dp-photo p,.dwp-dialog .dp-empty { color:#898298; font-size:12px; line-height:1.7; }
.dwp-dialog .dp-choices { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:16px 0 12px; }
.dwp-dialog .dp-choices label { display:grid; gap:10px; min-width:0; padding:14px; border:1px dashed #dcd6eb; border-radius:10px; font-size:12px; }
.dwp-dialog input { box-sizing:border-box; max-width:100%; font:inherit; font-size:12px; }
.dwp-dialog input[type=file] { width:100%; color:#8c839b; }
.dwp-dialog input[type=file]::file-selector-button { padding:8px 10px; margin-right:8px; border:0; border-radius:6px; background:#eee9fc; color:#6855b6; cursor:pointer; }
.dwp-dialog .dp-description { display:grid; gap:7px; font-size:12px; margin:14px 0; }
.dwp-dialog .dp-description input { width:100%; min-height:40px; border:1px solid #ddd7e9; border-radius:8px; padding:8px 10px; }
.dwp-dialog button[type=submit] { min-height:40px; background:#6b59cb; border:1px solid #6b59cb; border-radius:8px; padding:8px 16px; color:#fff; font-size:13px; }
.dwp-dialog button:disabled { opacity:.6; cursor:default; }
.dwp-dialog .dp-local-preview { margin:12px 0; }
.dwp-dialog .dp-local-preview img { max-width:100%; max-height:220px; object-fit:contain; border-radius:8px; }
.dwp-dialog .dp-local-preview figcaption { color:#93889f; font-size:11px; overflow-wrap:anywhere; }
.dwp-dialog .dp-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr)); gap:12px; }
.dwp-dialog .dp-photo { min-width:0; border:1px solid #e6e2ed; border-radius:10px; overflow:hidden; }
.dwp-dialog .dp-photo>a { display:block; background:#f5f3fa; }
.dwp-dialog .dp-photo img { display:block; width:100%; max-width:100%; height:170px; object-fit:contain; }
.dwp-dialog .dp-photo>div { padding:12px; font-size:12px; overflow-wrap:anywhere; }
.dwp-dialog .dp-photo h3 { margin:0; font-size:13px; }
.dwp-dialog a { color:#7160bd; }
.dwp-dialog .dwp-status { margin:0 0 14px; padding:10px 12px; border-radius:9px; font-size:12px; line-height:1.7; background:#eeebfa; color:#685a8e; }
.dwp-dialog .dwp-status[hidden],.dwp-dialog [hidden] { display:none!important; }
.dwp-dialog .dwp-status.is-error { background:#fff0ed; color:#aa594a; }
.dwp-dialog-footer { flex-shrink:0; display:flex; justify-content:space-between; gap:12px; padding:13px 22px; border-top:1px solid #e5e2ef; background:#fff; font-size:12px; }
@media(max-width:600px) {
  .dwp-dialog { width:calc(100vw - 16px); height:calc(100dvh - 20px); border-radius:14px; }
  .dwp-dialog-header,.dwp-dialog-body { padding:14px; }
  .dwp-dialog-header h2 { font-size:17px; }
  .dwp-dialog .dp-choices { grid-template-columns:1fr; }
  .dwp-dialog .dp-upload,.dwp-dialog .dp-archive { padding:13px; }
  .dwp-dialog-footer { padding:12px 14px; }
  .dwp-entry { padding:10px; }
}
