/* Compact window chrome; the embedded Entry component owns tree and form styles. */
body #tree-dialog.entry-workspace {
  box-sizing:border-box;width:min(1480px,calc(100vw - 48px));max-width:calc(100vw - 48px);
  height:calc(100dvh - 64px);max-height:calc(100dvh - 64px);padding:0;border:1px solid #a8b9ae;
  border-radius:12px;background:#f6f8f6;color:#182b20;overflow:hidden;box-shadow:0 24px 90px #13271b40;
}
body #tree-dialog.entry-workspace[open]{display:flex;flex-direction:column}
body #tree-dialog.entry-workspace.is-maximized{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;inset:0;border:0;border-radius:0}
body #tree-dialog.entry-workspace::backdrop{background:#12271a61;backdrop-filter:blur(3px)}
body #tree-dialog .entry-window-header{display:flex;align-items:center;justify-content:space-between;flex:none;gap:16px;padding:12px 16px 10px 20px;background:#eef4f0;border-bottom:1px solid #cbd7ce}
body #tree-dialog .entry-window-identity{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;min-width:0}
body #tree-dialog #tree-title{margin:0;color:#173c28!important;font-size:20px!important;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
body #tree-dialog #tree-meta{margin:0;color:#425b4a!important;font-size:14px!important;line-height:1.5!important}
body #tree-dialog .entry-window-actions{display:flex;gap:5px;flex:none}
body .entry-window-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:34px;min-height:34px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#294c36!important;font:22px/1 Arial,sans-serif;cursor:pointer}
body .entry-window-button:hover{color:#173c28!important;background:#dbe8de;border-color:#c0d1c5}
body .entry-window-close:hover{color:#a32b29!important;background:#fbe5e3;border-color:#efc9c5}
body .entry-window-button:focus-visible,body .entry-dock-restore:focus-visible{outline:3px solid #3e7b55;outline-offset:1px}
body #tree-dialog.entry-workspace .tree-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;min-height:32px;padding:5px 20px;flex:none;background:#fff;border-bottom:1px solid #d4dfd7;color:#3a5142;font-size:14px!important;line-height:1.5}
body #tree-dialog .tree-viewing-context{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body #tree-dialog .entry-window-status{color:#385b43;flex:none;font-size:13px!important}
body #tree-dialog .entry-window-status.is-dirty{color:#885b10}
body #tree-dialog .entry-window-status.is-error{color:#a13b2e}
body #tree-dialog .entry-workspace-content{position:relative;min-height:0;flex:1;background:#f7f9f6;overflow:hidden}
body #tree-dialog .entry-workspace-frame{display:block;width:100%;height:100%;border:0;background:#f7f9f6}
body #tree-dialog .entry-workspace-loading{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;padding:24px;text-align:center;background:#f7f9f6;color:#355b41;font-size:16px}
body #tree-dialog .entry-workspace-loading.error{color:#8e362c}
body #tree-dialog .entry-workspace-loading[hidden],body #tree-dialog .entry-retry-button[hidden],body .entry-window-dock[hidden]{display:none!important}
body #tree-dialog .entry-retry-button{padding:8px 16px;border:1px solid #53795e;border-radius:6px;background:#fff;color:#224b30;font-size:15px;cursor:pointer}
body .entry-window-dock{position:fixed;bottom:18px;left:24px;z-index:1200;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 48px);padding:6px 8px 6px 4px;border:1px solid #92b59d;border-radius:10px;background:#eef6ef;color:#173e26;box-shadow:0 8px 32px #1734212b}
body .entry-dock-restore{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 14px;border:0;border-radius:6px;background:transparent;color:#1d4b2d!important;font-size:15px!important;font-weight:600;cursor:pointer}
body .entry-dock-restore:hover{background:#dcebdc}
/* Retain customer context without taking half the tree window. */
body #tree-dialog #worker-tree-context{display:flex;align-items:center;gap:10px 20px;flex-wrap:wrap;padding:8px 20px;background:#f2f6f2;border-bottom:1px solid #d0dcd2;font-size:13px!important;line-height:1.5}
body #tree-dialog #worker-tree-context .worker-context-fields{display:flex;flex:1;flex-wrap:wrap;gap:4px 22px;margin:0;font-size:13px!important}
body #tree-dialog #worker-tree-context .worker-context-fields>div{display:flex;align-items:baseline;gap:6px}
body #tree-dialog #worker-tree-context .worker-context-fields small{color:#4a6150!important;font-size:13px!important}
body #tree-dialog #worker-tree-context .worker-context-fields strong{color:#223c2a!important;font-size:14px!important}
body #tree-dialog #worker-tree-context .worker-progress-meter{min-width:auto;max-width:170px;gap:3px}
body #tree-dialog #worker-tree-context .worker-progress-text{color:#3b5944!important;font-size:13px!important}
body #tree-dialog #worker-tree-context>button{min-height:30px;padding:4px 10px;color:#294e34!important;font-size:13px!important}
@media(max-width:800px){
  body #tree-dialog.entry-workspace{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
  body #tree-dialog .entry-window-header{padding:9px 10px 8px 14px;gap:8px}
  body #tree-dialog #tree-title{font-size:18px!important}
  body #tree-dialog .entry-window-identity{gap:2px 10px}
  body #tree-dialog.entry-workspace .tree-toolbar,body #tree-dialog #worker-tree-context{padding-left:14px;padding-right:14px}
}
