/* GED Mairie — Studio des workflows 2.0. Graphical designer, independent of the LDAP settings page. */
#workflowStudioButton{display:none}
/* The WKF launch control is a real square shortcut in both GED views.
   Never let its accessible label consume a fixed-width toolbar cell. */
#workflowStudioButton.wf-available{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 32px;width:32px;min-width:32px;max-width:32px;height:34px;padding:0;gap:0;overflow:hidden}
#workflowStudioButton svg{flex-shrink:0;width:21px;height:21px;stroke:currentColor;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round;fill:none}
#workflowStudioButton .wf-launch-label{display:none!important}
#workflowStudioButton[aria-pressed="true"]{background:#e0f0e9;outline:2px solid #29735b}
.app-shell.workflow-studio-open{grid-template-columns:var(--sidebar-width) minmax(0,1fr)!important}
.app-shell.workflow-studio-open .workspace>:not(.topbar):not(.ged-workspace-command-bar):not(#workflowStudioSection){display:none!important}
.app-shell.workflow-studio-open #workflowStudioSection{display:flex!important}
.app-shell.workflow-studio-open #advancedSearchPanel,
.app-shell.workflow-studio-open #jobImportPanel{display:none!important;visibility:hidden!important}
.app-shell.workflow-studio-open .topbar-actions{display:none!important}
.app-shell.workflow-studio-open .workspace>.topbar{display:none!important}

#workflowStudioSection{--wf-ink:#1b3834;--wf-muted:#6b807a;--wf-line:#dae7e2;--wf-primary:#276d59;--wf-panel:#fff;
  display:none;flex-direction:column;gap:10px;padding:10px 15px 12px;min-width:0;min-height:0;
  height:calc(100vh - var(--wf-editor-top,105px) - 12px);min-height:360px;box-sizing:border-box;color:var(--wf-ink);font-family:Inter,system-ui,'Segoe UI',sans-serif;overflow:hidden}
#workflowStudioSection button,#workflowStudioSection input,#workflowStudioSection select,#workflowStudioSection textarea{font-family:inherit}
#workflowStudioSection button{cursor:pointer}
#workflowStudioSection button:disabled{opacity:.45;cursor:default}
.wf-toolbar,.wf-side,.wf-stage-wrap,.wf-inspector,.wf-bottom{
  background:var(--wf-panel);border:1px solid var(--wf-line);border-radius:12px;
  box-shadow:0 2px 14px rgba(22,57,49,.035)}
.wf-draft-badge{border:1px solid #d4e4d9;background:#f4faf6;color:#446857;border-radius:18px;padding:4px 9px;font-size:11px;font-weight:760}

.wf-toolbar{display:flex;align-items:end;gap:8px;padding:10px 12px;flex-shrink:0;flex-wrap:wrap}
.wf-field{display:flex;flex-direction:column;gap:4px;min-width:110px}
.wf-field label{font-size:10px;letter-spacing:.03em;font-weight:750;color:var(--wf-muted)}
.wf-field input,.wf-field select{height:36px;border:1px solid #bccfc7;background:#fff;color:var(--wf-ink);
  border-radius:7px;padding:6px 9px;max-width:100%;outline:none;box-sizing:border-box;font-size:12px}
.wf-field input:focus,.wf-field select:focus,.wf-edit-field :is(input,select,textarea):focus{
  box-shadow:0 0 0 2px rgba(48,128,104,.15);border-color:#558f77}
.wf-field.wf-title{flex:2 1 190px;max-width:390px}
.wf-field.wf-domain{flex:1 1 155px;max-width:250px}
.wf-toolbar>button{height:36px;border:1px solid #c6d8d0;padding:8px 12px;background:#fff;color:#365f52;
  border-radius:8px;font-size:12px;font-weight:750}
.wf-toolbar>button:hover{background:#ecf6f0}
.wf-toolbar>button.wf-primary{background:var(--wf-primary);border-color:var(--wf-primary);color:#fff}
.wf-toolbar>button.wf-primary:hover{background:#185b47}
.wf-status{font-size:11px;font-weight:720;color:#6c8279;white-space:nowrap}

.wf-layout{display:grid;grid-template-columns:208px minmax(0,1fr) 290px;gap:10px;flex:1;min-width:0;min-height:0}
.wf-side,.wf-inspector{padding:13px;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.wf-side-title{display:flex;align-items:center;gap:10px;padding-bottom:8px}
.wf-side-title strong{display:block;font-size:13px;color:#294b41;font-weight:820}
.wf-side-title small{display:block;font-size:10px;color:#80938a;margin-top:2px}
.wf-side-marker{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;
  background:#e5f1eb;color:#3a8167;font-size:11px;font-weight:900}
.wf-help,.wf-palette-foot{font-size:11px;line-height:1.55;color:var(--wf-muted);margin:4px 0 12px}
.wf-palette-foot{border-top:1px solid var(--wf-line);padding-top:11px;margin-top:16px}
.wf-palette-item{display:flex;align-items:center;gap:10px;width:100%;border:1px solid #e1eae5;background:#fff;
  border-radius:9px;text-align:left;padding:9px;margin:0 0 7px;font-size:11px;font-weight:710;color:#355449;cursor:grab!important;
  transition:border-color .13s,box-shadow .13s,transform .13s}
.wf-palette-item:hover,.wf-palette-item:focus-visible{background:#f1faf5;border-color:#9ccbb2;box-shadow:0 3px 10px #224e3612;transform:translateY(-1px)}
.wf-palette-symbol{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;border-radius:8px;
  background:#e6f4ec;color:#2b765a;border:1px solid #c8e2d3;font-size:16px;font-weight:800}
.wf-palette-name{line-height:1.32}
.wf-side-divider{border-top:1px solid var(--wf-line);margin:14px 0}
.wf-template-stack{display:grid;gap:7px}
.wf-template-btn{width:100%;border:1px solid #d7e4dc;border-radius:9px;padding:10px 11px;
  background:#f8fbf9;text-align:left;color:#315648}
.wf-template-btn strong{display:block;font-size:12px}
.wf-template-btn small{display:block;font-size:10px;color:#7b9286;margin-top:4px;line-height:1.35}
.wf-template-btn:hover{background:#edf6f0;border-color:#a9d2bd}

.wf-stage-wrap{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.wf-stage-header,.wf-stage-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;flex-shrink:0}
.wf-stage-header{border-bottom:1px solid var(--wf-line)}
.wf-stage-header strong{font-size:12px;font-weight:800;color:#315549;display:block}
.wf-stage-header small{font-size:10px;color:var(--wf-muted);display:block;margin-top:3px}
.wf-stage-footer{border-top:1px solid var(--wf-line);font-size:10px;color:#6a8276}
.wf-canvas-tools{display:flex;align-items:center;gap:5px}
.wf-canvas-tools button{display:grid;place-items:center;border:1px solid #d2e0d8;background:#fff;
  border-radius:7px;min-width:29px;height:28px;padding:0 7px;color:#477361;font-weight:800;font-size:12px}
.wf-canvas-tools button:hover{background:#eef7f0}
.wf-canvas-tools #wfZoomLabel{font-variant-numeric:tabular-nums;font-size:11px;color:#547265;min-width:40px;text-align:center}
.wf-tool-separator{height:20px;border-left:1px solid #dae7df;margin:0 4px}
.wf-stage-viewport{position:relative;overflow:auto;min-height:0;flex:1;background:#f8fbf9}
.wf-canvas{position:relative;width:1900px;height:1300px;user-select:none;
  background-image:linear-gradient(to right,#e8efe9 1px,transparent 1px),linear-gradient(to bottom,#e8efe9 1px,transparent 1px);
  background-size:24px 24px;touch-action:none}
.wf-edges{position:absolute;inset:0;width:1900px;height:1300px;pointer-events:none;z-index:1;overflow:visible}
.wf-edge-visible{fill:none;stroke:#679782;stroke-width:2.7;pointer-events:none}
.wf-edge-selected{stroke:#d9a04e;stroke-width:4}
.wf-sim-edge{stroke:#2b7eaa;stroke-width:3.7}
.wf-edge-hit{fill:none;stroke:transparent;stroke-width:19;pointer-events:stroke;cursor:pointer}
.wf-preview-line{fill:none;stroke:#286ca5;stroke-width:2.7;stroke-dasharray:6 5}
.wf-link-label{font-size:12px;font-family:Inter,'Segoe UI',sans-serif;font-weight:800;paint-order:stroke fill;stroke:white;stroke-width:5;fill:#456b5b;pointer-events:none}
.wf-canvas-guide{position:absolute;top:22px;left:23px;font-size:11px;color:#94a59e;pointer-events:none}
.wf-node{width:214px;height:110px;position:absolute;z-index:2;box-sizing:border-box;
  padding:12px 13px;border:2px solid #b2d2c0;border-radius:12px;background:#fff;
  box-shadow:0 6px 16px rgba(20,59,46,.11);cursor:grab;touch-action:none}
.wf-node:hover{border-color:#6eaf92}
.wf-node:active{cursor:grabbing}
.wf-node.wf-selected{border-color:#2e8064;box-shadow:0 0 0 4px #ddefe6,0 6px 16px rgba(20,59,46,.12)}
.wf-node[data-kind="start"],.wf-node[data-kind="end"]{border-radius:40px;background:#e9f7ee;border-color:#81b49b}
.wf-node[data-kind="approval"]{border-color:#91a9d1;background:#f9fbff}
.wf-node[data-kind="decision"]{border-color:#c9ae72;background:#fffaf0}
.wf-node.wf-sim-visited{box-shadow:0 0 0 3px rgba(74,153,205,.21)}
.wf-node.wf-sim-current{outline:4px solid #5aa9d0;outline-offset:2px}
.wf-node-type{font-size:10px;letter-spacing:.055em;text-transform:uppercase;font-weight:820;color:#4e8974}
.wf-node-title{font-size:14px;line-height:1.25;font-weight:800;color:#233f36;margin:6px 0 4px;overflow-wrap:anywhere;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.wf-node-meta{font-size:10px;color:#638170;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.wf-node-badges{display:flex;gap:4px;position:absolute;right:9px;bottom:6px}
.wf-node-badges span{border-radius:10px;font-size:9px;padding:1px 5px;background:#eaf3ee;color:#43725b}
.wf-port{position:absolute;top:50%;transform:translateY(-50%);width:20px;height:20px;
  border:3px solid #367f63;border-radius:50%;background:#fff;z-index:6;cursor:crosshair;touch-action:none}
.wf-port:hover{background:#b5e2cd;transform:translateY(-50%) scale(1.13)}
.wf-port[data-port="in"]{left:-11px}
.wf-port[data-port="out"]{right:-11px}

.wf-inspector{display:flex;flex-direction:column;min-width:0}
#wfActionPalette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#wfActionPalette .wf-palette-item{font-size:10px;gap:6px;padding:6px;margin:0;min-height:37px}
#wfActionPalette .wf-palette-symbol{width:24px;height:24px;font-size:14px;flex-shrink:0}
.wf-panel-tabs{display:flex;gap:2px;border-bottom:1px solid var(--wf-line);margin-top:16px;flex-shrink:0}
.wf-panel-tabs button{flex:1;border:0;border-bottom:2px solid transparent;background:none;padding:10px 3px 8px;
  color:#738a7b;font-size:11px;font-weight:740}
.wf-panel-tabs button:hover{background:#f1f8f2}
.wf-panel-tabs button[aria-selected="true"]{border-bottom-color:#2a795a;color:#27664b}
.wf-inspector-body{overflow-y:auto;flex:1;min-height:90px;padding:11px 0 20px;overscroll-behavior:contain}
.wf-property-title{font-size:13px;font-weight:820;margin:10px 0 12px;color:#315749}
.wf-inspector-type{display:inline-block;font-size:10px;background:#e9f4ee;border-radius:12px;padding:4px 9px;color:#436b54;font-weight:750}
.wf-edit-field{margin:12px 0}
.wf-edit-field label{display:block;font-size:11px;font-weight:760;color:#406858;margin:0 0 5px}
.wf-edit-field input,.wf-edit-field select,.wf-edit-field textarea{width:100%;box-sizing:border-box;font-size:12px;
  border:1px solid #bdcec3;border-radius:7px;background:#fff;color:#294b3e;padding:8px 9px;outline:none}
.wf-edit-field textarea{min-height:68px;resize:vertical}
.wf-inspector-body>button,.wf-action-header button{font-size:11px;border:1px solid #c0d8c9;border-radius:8px;
  background:#f9fcfa;color:#2f6c54;padding:8px 10px;font-weight:720;cursor:pointer;margin:4px 5px 5px 0}
.wf-inspector-body>button:hover,.wf-action-header button:hover{background:#eaf6ed}
.wf-inspector-body button.wf-danger,.wf-action-header button.wf-danger{color:#a13a30;border-color:#e9beb5;background:#fff7f5}
.wf-action-card{background:#f8fbf8;border:1px solid #dde9df;border-radius:9px;padding:10px;margin:9px 0}
.wf-action-card .wf-edit-field{margin:8px 0}
.wf-action-header{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:5px}
.wf-action-header strong{font-size:11px;color:#32644d}
.wf-action-header button{margin:0;padding:4px 7px;font-size:10px}
.wf-empty{color:#718579;font-size:12px;line-height:1.55}
.wf-insight{padding:11px;background:#eef6ef;border-radius:8px;color:#3c6b50;font-size:11px;line-height:1.7}
.wf-review-stats{display:flex;gap:7px;margin:14px 0}
.wf-review-stats span{font-size:11px;font-weight:760;background:#f4f8f5;padding:6px 10px;border-radius:16px;color:#52725d}
.wf-review-ok{padding:11px;border:1px solid #b8dec5;border-radius:8px;background:#f2faf4;color:#397449;font-size:11px;line-height:1.5;margin:10px 0}
.wf-issue{display:grid;gap:4px;padding:9px;border:1px solid #eccfc8;background:#fff8f7;border-radius:8px;
  width:100%;text-align:left;font-size:11px;margin:7px 0;color:#753c36;cursor:pointer}
.wf-issue span{font-weight:450;line-height:1.5}
.wf-issue-warning{border-color:#eddcb9;background:#fffaf0;color:#87673e}
.wf-sim-current-card{background:#e7f3fa;border:1px solid #aad2e6;color:#235d82;padding:12px;border-radius:9px;font-size:12px;font-weight:790;margin:9px 0}
.wf-sim-timeline{font-size:11px;color:#557468;line-height:1.9;padding-left:20px}
.wf-bottom{display:flex;align-items:center;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;flex-shrink:0;padding:6px 12px}
.wf-circuit-status{display:flex;align-items:center;gap:4px 10px;flex-wrap:wrap;margin-inline-start:auto}
.wf-alert,.wf-diagnostics-count{font-size:11px;color:#527765;line-height:1.4}
.wf-alert[data-tone="error"]{color:#ab382f}
.wf-alert[data-tone="warning"]{color:#9b712d}
.wf-alert[data-tone="success"]{color:#256f45}
.wf-diagnostics-count{flex-shrink:0;font-weight:700}
@media(max-width:1280px){.wf-layout{grid-template-columns:175px minmax(0,1fr) 256px}.wf-inspector{padding:10px}}
@media(max-width:1000px){.wf-layout{grid-template-columns:150px minmax(0,1fr) 220px}
 .wf-toolbar .wf-field.wf-title{max-width:230px}
 #wfActionPalette{grid-template-columns:1fr}}
@media(max-width:780px){#workflowStudioSection{height:auto;min-height:calc(100vh - var(--wf-editor-top,80px));padding:7px;gap:6px;overflow:visible}
 .wf-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(300px,1fr) 220px;gap:6px}
 .wf-side{display:flex;flex-wrap:wrap;gap:4px;padding:8px;max-height:160px}
 .wf-side .wf-side-title,.wf-side .wf-help,.wf-side-divider,.wf-template-stack,.wf-palette-foot{display:none}
 .wf-side .wf-palette-item{width:auto;margin:0;padding:5px}
 .wf-inspector{padding:7px}.wf-inspector>#wfActionPalette{display:flex;flex-wrap:wrap}
 .wf-stage-footer{display:none}}
.wf-empty-group{padding:9px 10px!important;border:1px solid #e8cfa2;border-radius:7px;background:#fff8e9;color:#85612b!important}


/* Sélection rectangulaire multiple : distinction nette avec les liens et le dessin. */
#wfCanvas .wf-selection-lasso {
  position:absolute;z-index:8;pointer-events:none;box-sizing:border-box;
  border:2px dashed #2182b6;border-radius:5px;background:rgba(48,148,197,.12);
  box-shadow:0 0 0 1px rgba(255,255,255,.38) inset;
}
#wfNodeLayer .wf-node.wf-multi-selected {
  border-color:#237cb3;
  box-shadow:0 0 0 4px rgba(54,155,208,.25),0 7px 18px rgba(10,78,117,.17);
}
.wf-selection-context-menu {
  position:fixed;z-index:30020;min-width:250px;max-width:min(340px,95vw);
  padding:6px;border:1px solid #c2d8ce;border-radius:10px;background:#fff;
  box-shadow:0 12px 35px rgba(22,52,42,.23);
  font-family:Inter,system-ui,'Segoe UI',sans-serif;
}
.wf-selection-context-menu[hidden]{display:none!important}
.wf-selection-context-menu button {
  display:block;width:100%;padding:11px 12px;background:transparent;border:0;
  border-radius:7px;color:#365b4b;text-align:left;font-size:12px;font-weight:680;
  cursor:pointer;font-family:inherit;
}
.wf-selection-context-menu button.wf-danger {color:#a83d32;font-weight:760}
.wf-selection-context-menu button:hover,.wf-selection-context-menu button:focus-visible {
  background:#f0f7f2;outline:none;
}
.wf-selection-context-menu button.wf-danger:hover {background:#fff1ed}

/* Publication and external circuit links. */
.wf-draft-badge[data-active="true"]{background:#d7f3e5;border-color:#7fbea0;color:#185338}
#wfPublish{background:#e4f5ec;border-color:#8dbca3;color:#1b583d}
#wfDisable{color:#795523}
#wfSourceEvent{display:block;width:100%;box-sizing:border-box;padding:9px;margin:8px 0;border:1px solid #bad2c5;border-radius:7px;background:#fff;color:#173e30}


/* A processing step can receive several OR entries; each has a visible port. */
.wf-node .wf-or-badge {
  background:#e6f3ff;border:1px solid #bad5ef;color:#286b97;font-weight:850;
}
.wf-node[data-kind="start"] .wf-source-badge {font-weight:750;}

/* Configuration d’une tâche. L’en-tête réutilise le déplacement des modales GED. */
#wfTaskConfiguration {
  width:100%;height:100%;max-width:none;max-height:none;
  box-sizing:border-box;margin:0;border:0;
}
#wfTaskConfiguration:not([open]){display:none}
#wfTaskConfiguration::backdrop{background:transparent}
.wf-task-configuration {
  width:min(960px,100%);height:min(650px,100%);min-height:0;
  display:flex;flex-direction:column;overflow:hidden;
  border:1px solid #cce0d5;border-radius:15px;background:#fff;color:#233e34;
  box-shadow:0 25px 80px rgba(0,0,0,.23);
}
.wf-task-tabs {
  display:flex;gap:5px;flex:none;overflow-x:auto;
  padding:10px clamp(12px,3vw,24px) 0;border-bottom:1px solid #dbece1;
}
.wf-task-tabs[hidden]{display:none}
.wf-task-configuration button {
  border:1px solid #c0d8c9;border-radius:8px;background:#f9fcfa;
  color:#2f6c54;padding:8px 12px;font:inherit;font-size:13px;font-weight:650;cursor:pointer;
}
.wf-task-configuration button:focus-visible{outline:2px solid #276d59;outline-offset:-2px}
.wf-task-configuration button:disabled{opacity:.6;cursor:default}
.wf-task-tabs button{flex:none;border-radius:8px 8px 0 0}
.wf-task-tabs button[aria-selected="true"]{background:#e4f5ec;border-color:#80ab97;color:#174b38}
.wf-task-panel{flex:1;min-height:0;overflow:auto;padding:14px clamp(12px,3vw,24px)}
.wf-task-panel .wf-action-card{max-width:720px;margin:0 0 14px;padding:12px 16px}
.wf-task-panel .wf-edit-field label,.wf-task-panel .wf-edit-field :is(input,select,textarea){font-size:14px}
.wf-task-panel .wf-help{font-size:13px}
.wf-task-footer {
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px clamp(12px,3vw,24px);border-top:1px solid #dbece1;background:#f8fbf9;
}
.wf-task-feedback{margin:0;font-size:13px;line-height:1.4}
.wf-task-configuration .wf-task-validate{background:#276d59;border-color:#276d59;color:#fff}
.wf-task-header {
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:16px clamp(12px,3vw,24px);background:linear-gradient(105deg,#eaf5ef,#fff 80%);
  border-bottom:1px solid #dbece1;
}
.wf-task-header h2{margin:0 0 6px;font-size:20px;color:#1a4436}
.wf-task-header p{margin:0;font-size:13px;color:#587466;overflow-wrap:anywhere}
/* GED Mairie — compact workflow editor palettes: OBJETS / ACTIONS only on first load.
 * Contextual inspector appears only when a node, transition or control is selected.
 * IDs of existing palette items and handlers remain unchanged for click and drag/drop.
 */
#workflowStudioSection .wf-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  min-height:0!important;gap:0!important;
}
#workflowStudioSection .wf-stage-wrap {
  position:relative;min-height:0;min-width:0;overflow:visible!important;
}
#workflowStudioSection .wf-stage-header {
  position:relative;z-index:25;min-height:52px;
  justify-content:space-between;padding:7px 12px;flex-wrap:wrap;
}
#workflowStudioSection .wf-stage-hint{display:none}
#workflowStudioSection .wf-top-palette-bar{display:flex;align-items:center;gap:8px;flex:0 0 auto;}
#workflowStudioSection .wf-top-palette-wrap{position:relative;}
#workflowStudioSection .wf-top-palette-toggle{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  height:34px;min-width:103px;padding:0 13px;border:1px solid #b7d2c2;
  border-radius:9px;background:#edf6ef;color:#245e43;
  font:800 12px Inter,system-ui,'Segoe UI',sans-serif;letter-spacing:.035em;
  box-shadow:0 1px 3px rgba(30,70,46,.08);cursor:pointer;
}
#workflowStudioSection .wf-top-palette-toggle::after{
  content:'⌄';font-weight:800;font-size:17px;line-height:1;transform:translateY(-2px);
}
#workflowStudioSection .wf-top-palette-toggle[aria-expanded="true"]{
  background:#d6f0e1;border-color:#6da98b;
}
#workflowStudioSection .wf-top-palette-toggle[aria-expanded="true"]::after{
  transform:translateY(2px) rotate(180deg);
}
#workflowStudioSection .wf-top-palette-toggle:focus-visible{
  outline:2px solid #22775b;outline-offset:2px;
}
#workflowStudioSection .wf-top-palette-popover{
  position:absolute;left:0;top:calc(100% + 8px);
  width:285px;max-width:min(400px,calc(100vw - 40px));
  max-height:min(610px,70dvh);overflow-y:auto;overscroll-behavior:contain;
  z-index:35;border:1px solid #b5d3c3;border-radius:13px;
  background:#fff;box-shadow:0 18px 40px rgba(26,56,38,.21);
  padding:10px 12px 13px;
}
#workflowStudioSection #wfActionsPopup{
  width:355px;max-width:min(440px,calc(100vw - 40px));
}
#workflowStudioSection .wf-top-palette-popover[hidden]{display:none!important;}
#workflowStudioSection .wf-top-palette-popover .wf-side{
  display:block!important;width:100%;max-height:none;min-height:0;
  padding:0;border:0;box-shadow:none;border-radius:0;overflow:visible;
}
#workflowStudioSection .wf-top-palette-popover .wf-side-title{display:flex!important;}
#workflowStudioSection .wf-top-palette-popover .wf-side .wf-help{
  display:block!important;margin:3px 0 11px;
}
#workflowStudioSection .wf-top-palette-popover .wf-side-divider{display:block!important}
#workflowStudioSection .wf-top-palette-popover .wf-template-stack{display:grid!important}
#workflowStudioSection .wf-top-palette-popover .wf-palette-foot{display:block!important}
#workflowStudioSection #wfObjectPalette{display:block;}
#workflowStudioSection #wfActionsPopup #wfActionPalette{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#workflowStudioSection .wf-top-palette-popover .wf-palette-item{
  display:flex!important;width:100%;margin:0 0 7px;
  padding:9px;cursor:grab!important;
}
#workflowStudioSection #wfActionPalette .wf-palette-item{padding:7px;margin:0;min-height:38px;}
#workflowStudioSection .wf-stage-wrap > .wf-inspector{
  display:none!important;position:absolute;right:9px;top:calc(52px + 4px);
  bottom:40px;width:min(310px,calc(100% - 30px));
  z-index:18;min-height:0;max-height:calc(100% - 101px);
  overflow:hidden;box-shadow:0 12px 36px rgba(20,53,41,.22);
  background:#fff;border:1px solid #bbd5c6;border-radius:11px;padding:10px;
}
#workflowStudioSection .wf-stage-wrap.wf-inspector-active > .wf-inspector{display:flex!important;}
#workflowStudioSection .wf-inspector-heading{
  display:flex;align-items:center;justify-content:space-between;
  flex:0 0 auto;gap:8px;padding:1px 0 8px;
  color:#2b624e;font-size:12px;
}
#workflowStudioSection #wfInspectorClose{
  display:grid;place-items:center;width:26px;height:26px;
  border:1px solid #c3dbcb;border-radius:7px;background:#fff;
  font-size:20px;line-height:1;color:#376d56;
}
#workflowStudioSection .wf-inspector .wf-panel-tabs{margin-top:0;}
#workflowStudioSection .wf-stage-viewport{border-radius:0 0 10px 10px;}
@media(max-width:780px){
  #workflowStudioSection{
    display:none;flex-direction:column;
    height:calc(100dvh - var(--wf-editor-top,80px) - 5px);
    min-height:360px;overflow:hidden!important;
  }
  .app-shell.workflow-studio-open #workflowStudioSection{display:flex!important;}
  #workflowStudioSection .wf-top-palette-bar{gap:4px;}
  #workflowStudioSection .wf-top-palette-toggle{min-width:83px;padding:0 8px;font-size:11px;}
  #workflowStudioSection #wfActionsPopup{left:auto;right:0}
  #workflowStudioSection .wf-stage-wrap > .wf-inspector{right:4px;top:56px;bottom:32px;}
  #workflowStudioSection .wf-stage-footer{display:flex;font-size:9px}
}

/* GED Mairie — notification recipients selected directly from the synchronized LLDAP directory. */
.wf-ldap-recipient-picker {display:grid;gap:8px;padding:10px 12px 12px;
  border:1px solid #b9d9c8;border-radius:9px;background:#f5faf6;min-width:0}
.wf-ldap-recipient-label{font-size:12px;font-weight:790;color:#286347}
.wf-ldap-recipient-picker input[type="search"],
.wf-ldap-recipient-picker select {
  display:block;width:100%;box-sizing:border-box;min-width:0;
  padding:9px 11px;background:#fff;border:1px solid #bdd1c4;border-radius:7px;
  color:#1f4933;font-size:12px;font-family:inherit;
}
.wf-ldap-recipient-picker select{min-height:43px;font-weight:650}
.wf-ldap-recipient-picker optgroup{font-weight:800;color:#236244;background:#eff8f2}
.wf-ldap-recipient-picker option{font-weight:500;color:#284839;background:#fff}
.wf-ldap-recipient-picker .wf-help{margin:0;font-size:11px;line-height:1.5;color:#5d7b67}
.wf-ldap-recipient-picker input:focus-visible,
.wf-ldap-recipient-picker select:focus-visible {outline:2px solid #3a9671;outline-offset:1px}

/* Redimensionnement libre du panneau de propriétés, largeur initiale augmentée. */
#workflowStudioSection .wf-stage-wrap > .wf-inspector {
  box-sizing:border-box;
  width:min(var(--wf-inspector-width,470px),calc(100% - 26px))!important;
  min-width:0;
  padding:13px 15px 13px 18px;
  overflow:visible;
}
#workflowStudioSection .wf-stage-wrap > .wf-inspector .wf-inspector-body{
  overflow-x:hidden;overflow-y:auto;
  min-height:0;
}
#workflowStudioSection .wf-inspector-resizer{
  position:absolute;z-index:2;left:-7px;top:0;bottom:0;width:15px;
  border-radius:8px 0 0 8px;cursor:col-resize;touch-action:none;
  outline:none;background:transparent;user-select:none;
}
#workflowStudioSection .wf-inspector-resizer::before{
  content:'';position:absolute;top:50%;left:5px;transform:translateY(-50%);
  width:4px;height:76px;max-height:28%;border-radius:7px;
  background:#9ac6b1;box-shadow:0 0 0 1px #dbece3;
}
#workflowStudioSection .wf-inspector-resizer:hover::before,
#workflowStudioSection .wf-inspector-resizer:focus-visible::before,
#workflowStudioSection .wf-inspector-resizer.is-dragging::before{
  background:#267d5a;width:6px;left:4px;
}
#workflowStudioSection .wf-inspector-resizer:focus-visible{
  outline:2px solid #277d5c;outline-offset:2px;
}
#workflowStudioSection .wf-inspector-heading{
  padding-left:8px;min-height:30px;
}
#workflowStudioSection .wf-assignee-picker{
  display:grid;gap:8px;padding:12px;border:1px solid #bedcc9;
  border-radius:9px;background:#f4faf6;
}
#workflowStudioSection .wf-assignee-picker > label{
  font-weight:790;color:#2d6349;font-size:12px;
}
#workflowStudioSection .wf-assignee-picker input[type="search"],
#workflowStudioSection .wf-assignee-picker select{
  width:100%;min-height:38px;min-width:0;box-sizing:border-box;
  padding:9px 11px;border:1px solid #b6d1c1;border-radius:7px;
  background:#fff;color:#234b35;font:500 12px Inter,system-ui,'Segoe UI',sans-serif;
}
#workflowStudioSection .wf-assignee-picker input:focus-visible,
#workflowStudioSection .wf-assignee-picker select:focus-visible{
  outline:2px solid #318864;outline-offset:1px;
}
#workflowStudioSection .wf-assignee-picker select:disabled{
  background:#f0f3f0;color:#758679;
}
#workflowStudioSection .wf-assignee-picker optgroup{font-weight:800;color:#246845}
#workflowStudioSection .wf-assignee-picker option{font-weight:500;color:#2a4e37}
#workflowStudioSection .wf-assignee-picker .wf-assignee-current{
  font-weight:760;color:#2c6650;margin:3px 0 0;
}
#workflowStudioSection .wf-assignee-picker .wf-assignee-feedback{
  color:#556f60;margin:0;line-height:1.5;font-size:11px;
}
@media(max-width:780px){
  #workflowStudioSection .wf-stage-wrap > .wf-inspector{
    width:min(var(--wf-inspector-width,470px),calc(100% - 18px))!important;
    right:4px;padding:10px 11px 11px 17px;
  }
}

/* Empty task configuration: actionable inline palette instead of a blank dialog. */
.wf-task-panel .wf-task-empty {
  display:grid;justify-items:start;align-content:start;gap:12px;
  min-height:200px;padding:24px;box-sizing:border-box;border:1px dashed #b7d9c5;
  border-radius:12px;background:linear-gradient(130deg,#f3faf5,#fff);
}
.wf-task-panel .wf-task-empty h3 {
  font-size:17px;font-weight:800;color:#205c43;margin:0;
}
.wf-task-panel .wf-task-empty .wf-help {
  margin:0;max-width:580px;line-height:1.55;color:#597765;
}
.wf-task-panel .wf-task-action-more {
  margin:14px 0 6px;padding:8px 0;
  border-top:1px solid #dcebe2;
}
.wf-task-panel .wf-task-add-button {
  background:#21694c;color:#fff;border-color:#21694c;
  padding:10px 16px;font-size:13px;font-weight:800;
}
.wf-task-panel .wf-task-add-button:hover {
  background:#18573c;color:#fff;
}
.wf-task-panel .wf-task-action-chooser {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;width:min(720px,100%);margin:10px 0;
}
.wf-task-panel .wf-task-action-chooser[hidden]{display:none!important}
.wf-task-panel .wf-task-action-chooser .wf-task-action-choice {
  display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;
  min-width:0;border:1px solid #b8d7c6;background:#fff;
  padding:11px 12px;font-size:12px;font-weight:790;color:#246548;
}
.wf-task-panel .wf-task-action-chooser .wf-task-action-choice:hover,
.wf-task-panel .wf-task-action-chooser .wf-task-action-choice:focus-visible {
  border-color:#33865c;background:#eaf6ee;
}
.wf-task-panel .wf-task-action-chooser .wf-task-action-choice small {
  color:#637c6b;font-size:11px;line-height:1.35;font-weight:450;
}
#workflowStudioSection .wf-assignee-picker .wf-assignee-selected-label {
  margin-bottom:-3px;color:#27644a;font-size:12px;font-weight:800;
}
#workflowStudioSection .wf-assignee-picker .wf-assignee-selected {
  width:100%;min-height:40px;padding:9px 11px;box-sizing:border-box;
  border:1px solid #86bd9a;border-radius:8px;background:#eaf6ed;color:#174e38;
  font-size:12px;font-weight:800;cursor:default;text-overflow:ellipsis;
}
#workflowStudioSection .wf-assignee-picker .wf-assignee-selected:focus-visible {
  outline:2px solid #2f8361;outline-offset:1px;
}
#workflowStudioSection .wf-assignee-picker .wf-assignee-search-label {
  margin-top:9px;font-size:12px;font-weight:750;color:#436b56;
}
#workflowStudioSection .wf-assignee-picker .wf-assignee-current {
  padding:0;margin:0;font-size:11px;color:#286d4e;font-weight:690;
}
@media(max-width:640px){
  .wf-task-panel .wf-task-action-chooser{grid-template-columns:1fr}
  .wf-task-panel .wf-task-empty{padding:15px}
}

/* Vertical resizing of the workflow task configuration sheet.
 * The header remains draggable; only the bottom grip resizes the sheet. */
#wfTaskConfiguration .wf-task-configuration {
  position:relative;
  box-sizing:border-box;
  height:min(650px,calc(100dvh - 28px));
  min-height:min(320px,calc(100dvh - 28px));
  max-height:calc(100dvh - 28px);
  overflow:hidden;
}
#wfTaskConfiguration .wf-task-footer {
  flex:0 0 auto;
  padding-bottom:25px;
}
#wfTaskResizeGrip {
  position:absolute;
  z-index:20;
  bottom:0;
  left:50%;
  width:115px;
  height:19px;
  transform:translateX(-50%);
  display:grid;
  place-items:center;
  box-sizing:border-box;
  border-radius:9px 9px 0 0;
  background:rgba(222,242,229,.94);
  border:1px solid #b1d2bf;
  border-bottom:0;
  cursor:ns-resize;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}
#wfTaskResizeGrip::before {
  content:'';
  display:block;
  width:43px;
  height:4px;
  border-radius:6px;
  background:#589c7b;
  box-shadow:0 -5px 0 -1.5px rgba(88,156,123,.35);
}
#wfTaskResizeGrip:hover,#wfTaskResizeGrip:focus-visible,
#wfTaskResizeGrip.is-dragging {
  background:#d2eedd;
  border-color:#3f8c66;
  outline:2px solid #418d67;
  outline-offset:-2px;
}
#wfTaskResizeGrip:hover::before,#wfTaskResizeGrip:focus-visible::before {
  background:#20694b;
}
@media(max-height:440px){
  #wfTaskResizeGrip {height:14px}
  #wfTaskConfiguration .wf-task-footer {padding-bottom:19px}
}

/* Horizontal resizing complements the existing lower-edge vertical grip. */
#wfTaskConfiguration .wf-task-configuration {
  width:min(960px,calc(100dvw - 28px));
  min-width:min(560px,calc(100dvw - 28px));
  max-width:calc(100dvw - 28px);
}
#wfTaskWidthGrip {
  position:absolute;right:0;top:50%;transform:translateY(-50%);
  width:19px;height:114px;max-height:38%;
  z-index:21;display:grid;place-items:center;
  border:1px solid #b1d2bf;border-right:0;border-radius:9px 0 0 9px;
  background:rgba(222,242,229,.96);box-sizing:border-box;
  cursor:ew-resize;touch-action:none;user-select:none;-webkit-user-select:none;
}
#wfTaskWidthGrip::before {
  content:'';height:43px;width:4px;
  border-radius:6px;background:#589c7b;
  box-shadow:-5px 0 0 -1.5px rgba(88,156,123,.35);
}
#wfTaskWidthGrip:hover,#wfTaskWidthGrip:focus-visible,
#wfTaskWidthGrip.is-dragging {
  background:#d2eedd;border-color:#3f8c66;
  outline:2px solid #418d67;outline-offset:-2px;
}
#wfTaskWidthGrip:hover::before,#wfTaskWidthGrip:focus-visible::before {
  background:#20694b;
}
@media(max-width:600px){
  #wfTaskWidthGrip{height:75px;width:14px}
}
/* Role mapping beneath each profession; no automatic inference of a person's métier. */
.wf-role-choice-text {min-width:0;flex:1;display:grid;gap:3px}
.wf-role-choice-label {display:block;color:#243f30;font-weight:530}
.wf-role-holders {display:grid;gap:3px;margin-top:3px}
.wf-role-holder,.wf-role-service-email,.wf-role-no-holder {
  display:block;font-size:11px;line-height:1.45;overflow-wrap:anywhere;
  font-weight:420;color:#597365;
}
.wf-role-holder {color:#28644d;font-weight:610}
.wf-role-service-email {color:#59717b}
.wf-role-no-holder {color:#8a7455;font-style:italic}

/* Compact start: the saved source event/path stays in a keyboard-accessible
   hover panel, rather than permanently increasing the node's footprint. */
#workflowStudioSection .wf-node[data-kind="start"]{
  width:116px;height:58px;padding:6px 12px;
  display:flex;align-items:center;justify-content:center;
  border-radius:29px;background:#e9f7ee;border-color:#81b49b;
  cursor:grab;overflow:visible;
}
#workflowStudioSection .wf-node[data-kind="start"]:active{cursor:grabbing}
#workflowStudioSection .wf-node[data-kind="start"]:is(:hover,:focus-visible,:focus-within){
  z-index:25;
}
#workflowStudioSection .wf-node[data-kind="start"] .wf-node-type,
#workflowStudioSection .wf-node[data-kind="start"] .wf-node-meta,
#workflowStudioSection .wf-node[data-kind="start"] .wf-node-badges{display:none}
#workflowStudioSection .wf-node[data-kind="start"] .wf-node-title{
  display:block;margin:0;color:#1a6046;
  font-size:15px;line-height:1.1;font-weight:850;text-align:center;
  letter-spacing:.012em;white-space:nowrap;
}
#workflowStudioSection .wf-start-tooltip{
  position:absolute;top:calc(100% + 12px);left:0;
  box-sizing:border-box;width:340px;max-width:min(340px,calc(100vw - 55px));
  padding:12px 14px;border:1px solid #b7d6c3;border-radius:11px;
  background:#fff;color:#254237;
  box-shadow:0 14px 32px rgba(21,51,40,.22);
  font-size:12px;line-height:1.45;text-align:left;
  visibility:hidden;opacity:0;transform:translateY(-5px);
  transition:opacity .13s ease,transform .13s ease;
  pointer-events:none;user-select:text;
}
#workflowStudioSection .wf-node[data-kind="start"]:is(:hover,:focus-visible,:focus-within) .wf-start-tooltip{
  visibility:visible;opacity:1;transform:translateY(0);
}
#workflowStudioSection .wf-start-tooltip-heading{
  display:block;margin:0 0 8px;padding-bottom:7px;
  border-bottom:1px solid #e3efe7;
  color:#236347;font-size:13px;font-weight:800;
}
#workflowStudioSection .wf-start-tooltip-row{
  display:grid;grid-template-columns:105px minmax(0,1fr);
  gap:8px;margin:5px 0;
}
#workflowStudioSection .wf-start-tooltip-key{
  color:#5d7869;font-weight:720;
}
#workflowStudioSection .wf-start-tooltip-value{
  color:#243f35;overflow-wrap:anywhere;white-space:pre-wrap;
}
#workflowStudioSection .wf-start-tooltip-folder{
  margin:10px -14px -12px;padding:9px 14px;
  border-top:1px solid #e1eee5;border-radius:0 0 10px 10px;
  background:#eff8f2;
}
#workflowStudioSection .wf-start-tooltip-folder .wf-start-tooltip-value{
  color:#17633f;font-weight:850;
}
#workflowStudioSection .wf-node[data-kind="start"] .wf-start-tooltip-above{
  top:auto;bottom:calc(100% + 12px);
}
#workflowStudioSection .wf-node[data-kind="start"] .wf-start-tooltip-left{
  left:auto;right:0;
}
@media(prefers-reduced-motion:reduce){
  #workflowStudioSection .wf-start-tooltip{transition:none}
}

/* Terminal marker — same compact geometry and hover behavior as Début. */
#workflowStudioSection .wf-node[data-kind="end"]{
  width:116px;height:58px;padding:6px 12px;
  display:flex;align-items:center;justify-content:center;
  border-radius:29px;background:#eef3f8;border-color:#9db5c9;
  cursor:grab;overflow:visible;
}
#workflowStudioSection .wf-node[data-kind="end"]:active{cursor:grabbing}
#workflowStudioSection .wf-node[data-kind="end"]:is(:hover,:focus-visible,:focus-within){
  z-index:25;
}
#workflowStudioSection .wf-node[data-kind="end"] .wf-node-type,
#workflowStudioSection .wf-node[data-kind="end"] .wf-node-meta,
#workflowStudioSection .wf-node[data-kind="end"] .wf-node-badges{display:none}
#workflowStudioSection .wf-node[data-kind="end"] .wf-node-title{
  display:block;margin:0;color:#315c7b;
  font-size:15px;line-height:1.1;font-weight:850;text-align:center;
  letter-spacing:.012em;white-space:nowrap;
}
#workflowStudioSection .wf-node[data-kind="end"]:is(:hover,:focus-visible,:focus-within) .wf-end-tooltip{
  visibility:visible;opacity:1;transform:translateY(0);
}
#workflowStudioSection .wf-node[data-kind="end"] .wf-start-tooltip-above{
  top:auto;bottom:calc(100% + 12px);
}
#workflowStudioSection .wf-node[data-kind="end"] .wf-start-tooltip-left{
  left:auto;right:0;
}
#workflowStudioSection .wf-end-tooltip{
  border-color:#bbcbdd;
}
#workflowStudioSection .wf-end-tooltip .wf-start-tooltip-heading{
  color:#315c7b;border-bottom-color:#e1e9f2;
}
#workflowStudioSection .wf-end-tooltip .wf-start-tooltip-folder{
  background:#f0f5fa;border-top-color:#dfe7ef;
}
#workflowStudioSection .wf-end-tooltip .wf-start-tooltip-folder .wf-start-tooltip-value{
  color:#315c7b;
}


/* Saved workflow management: compact, keyboard-accessible table in the stage toolbar. */
#workflowStudioSection .wf-top-palette-bar{flex-wrap:wrap;min-width:0;flex-shrink:1}
#workflowStudioSection #wfSavedToggle{letter-spacing:0;white-space:nowrap}
#workflowStudioSection #wfSavedPopup{width:340px;max-width:min(380px,calc(100vw - 40px));padding:8px;box-sizing:border-box}
#workflowStudioSection .wf-saved-table{width:100%!important;min-width:0!important;max-width:100%!important;border-collapse:collapse;table-layout:fixed;font-size:12px;color:var(--wf-ink)}
#workflowStudioSection .wf-saved-table th{padding:7px 5px;text-align:left;font-size:11px;color:#547267;background:#edf6ef}
#workflowStudioSection .wf-saved-table th:first-child{width:48px;text-align:center}
#workflowStudioSection .wf-saved-table th:last-child{width:34px}
#workflowStudioSection .wf-saved-table td{padding:5px;border-bottom:1px solid #e2ece6;vertical-align:middle}
#workflowStudioSection .wf-saved-active,#workflowStudioSection .wf-saved-remove-cell{text-align:center}
#workflowStudioSection .wf-saved-active input{width:15px;height:15px;accent-color:#276d59;cursor:pointer;vertical-align:middle}
#workflowStudioSection .wf-saved-current td{background:#eef7f2}
#workflowStudioSection .wf-saved-name{display:block;width:100%;min-height:28px;padding:3px 4px;text-align:left;border:0;border-radius:4px;background:transparent;color:#204c3e;font-size:12px;font-weight:650;overflow-wrap:anywhere}
#workflowStudioSection .wf-saved-name:hover{background:#dceee4;text-decoration:underline}
#workflowStudioSection .wf-saved-delete{position:relative;display:inline-block;width:23px;height:23px;padding:0;border:1px solid #bb393e;border-radius:3px;background:#c83e44;vertical-align:middle}
#workflowStudioSection .wf-saved-delete::before,#workflowStudioSection .wf-saved-delete::after{content:'';position:absolute;left:50%;top:50%;width:12px;height:1.3px;background:#fff;transform:translate(-50%,-50%) rotate(45deg);border-radius:1px}
#workflowStudioSection .wf-saved-delete::after{transform:translate(-50%,-50%) rotate(-45deg)}
#workflowStudioSection .wf-saved-delete:hover{background:#a9272d}
#workflowStudioSection .wf-saved-table .wf-saved-empty{padding:12px 5px;color:var(--wf-muted);text-align:center}
#workflowStudioSection .wf-saved-feedback{margin:7px 3px 0;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#workflowStudioSection .wf-saved-feedback[data-tone="error"]{color:#a92d33}
#workflowStudioSection .wf-saved-feedback[data-tone="warning"]{color:#805d19}
#workflowStudioSection .wf-saved-new{display:block;width:100%;margin-top:8px;padding:7px;border:1px solid #c8ded1;border-radius:5px;background:#f5faf7;color:#276d59;font-size:12px;font-weight:700;text-align:left}
#workflowStudioSection .wf-saved-new:hover{background:#e5f2e9}
#workflowStudioSection .wf-saved-table :focus-visible,#workflowStudioSection .wf-saved-new:focus-visible{outline:2px solid #276d59;outline-offset:2px}

/* Explicit GED-local supervisor assignment, not a new LDAP identity. */
#wfInspector .wf-assignee-self,
#workflowStudioSection .wf-assignee-self {
  display:block;
  width:100%;
  margin-top:10px;
  padding:9px 12px;
  border:1px solid #83b7a0;
  border-radius:7px;
  background:#eef8f1;
  color:#17543c;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
  text-align:left;
  white-space:normal;
}
#wfInspector .wf-assignee-self:hover,
#workflowStudioSection .wf-assignee-self:hover {
  background:#e0f2e6;
}
#workflowStudioSection .wf-saved-open-error {
  display:block;
  margin-top:6px;
  border:1px solid #c9d9c6;
  border-radius:7px;
  background:#fff;
  padding:5px 8px;
  color:#205c41;
  font:650 11px Inter,system-ui,sans-serif;
  cursor:pointer;
  white-space:normal;
  text-align:left;
}
#workflowStudioSection .wf-saved-open-error:hover {
  background:#eff7f0;
}

/* Drag an existing GED directory onto the compact start marker. This is
   presentation-only until the operator confirms the source. */
#workflowStudioSection .wf-node[data-kind="start"].wf-start-drop-target{
  outline:4px dashed #23754f;
  outline-offset:7px;
  background:#c6efda;
  border-color:#23754f;
  box-shadow:0 0 0 7px rgba(35,117,79,.13),0 10px 25px rgba(20,75,50,.22);
  z-index:26;
}
body.wf-sidebar-source-dragging #workflowStudioSection .wf-node[data-kind="start"]{
  cursor:copy;
}
.wf-source-folder-draggable{cursor:grab}
.wf-source-folder-dragging{opacity:.7;cursor:grabbing}

/* Keep the GED command bar legible while the workflow editor occupies the
   workspace. Expanded workflow launch text previously overlapped other icons
   when sidebar width / browser zoom reduced the available grid track. */
html.ged-emblem-layout .app-shell.workflow-studio-open .ged-workspace-command-bar:not(.ged-command-bar-compact){
  grid-template-columns:max-content minmax(0,1fr) minmax(0,max-content);
  column-gap:12px;
}
html.ged-emblem-layout .app-shell.workflow-studio-open
  .ged-workspace-command-bar .brand-shortcuts {
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  width:auto;
  max-width:100%;
  min-width:0;
  gap:4px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
}
html.ged-emblem-layout .app-shell.workflow-studio-open
  .ged-workspace-command-bar .brand-shortcuts>.brand-shortcut{
  flex:0 0 32px;
  width:32px;
  min-width:32px;
  max-width:32px;
  overflow:hidden;
  white-space:nowrap;
}
/* Each action is visibly named on its instruction, not reduced to a
   practically invisible 'N actions' number. Tooltips enumerate all actions. */
#workflowStudioSection .wf-node-badges .wf-node-action-chip{
  display:inline-block;
  max-width:188px;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:2px 6px;
  border:1px solid #b6dbc7;
  background:#e5f5ea;
  color:#22664c;
  font-size:10px;
  font-weight:760;
  line-height:1.22;
}
#workflowStudioSection .wf-node.wf-selected .wf-node-action-chip{
  background:#d4efdf;
  border-color:#76bb92;
}

/* On desktop-narrow windows reserve a readable strip of canvas alongside
   the properties overlay, so a newly added action is not hidden under it. */
@media(min-width:801px){
  #workflowStudioSection .wf-stage-wrap > .wf-inspector{
    width:min(var(--wf-inspector-width,470px),calc(100% - 245px))!important;
  }
}

/* Each independent GED folder is drawn upstream of the single Début card.
   These are visual entry points to the same runtime processing path. */
#workflowStudioSection .wf-source-folder-card{
  position:absolute;z-index:3;box-sizing:border-box;
  display:flex;align-items:center;justify-content:flex-start;
  width:172px;height:47px;padding:6px 29px 6px 11px;
  border:1.5px solid #87b8a0;border-radius:9px;
  background:#eaf7ef;color:#205f44;
  box-shadow:0 4px 10px rgba(18,71,48,.11);
  font:760 12px/1.25 Inter,'Segoe UI',sans-serif;
  cursor:default;overflow:visible;
}
#workflowStudioSection .wf-source-folder-card::before{
  content:"";flex:0 0 13px;width:13px;height:11px;
  margin-right:7px;border:1.5px solid #368562;border-radius:2px;
  background:#def1e5;
}
#workflowStudioSection .wf-source-folder-name{
  display:block;min-width:0;max-width:100%;
  white-space:normal;overflow:hidden;text-overflow:ellipsis;
  overflow-wrap:anywhere;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
#workflowStudioSection .wf-source-entry-arrow{
  fill:none;stroke:#429b73;stroke-width:2.4;stroke-linecap:round;
  pointer-events:none;
}
#workflowStudioSection .wf-source-folder-card:is(:hover,:focus-visible,:focus-within){
  z-index:30;background:#d9f1e2;border-color:#257e58;
  outline:2px solid rgba(46,139,86,.2);
}
#workflowStudioSection .wf-source-folder-tooltip{
  position:absolute;left:0;top:calc(100% + 9px);
  z-index:40;box-sizing:border-box;min-width:220px;
  width:300px;max-width:min(340px,calc(100vw - 32px));
  border:1px solid #acd5bb;border-radius:9px;
  background:#fff;box-shadow:0 12px 24px rgba(14,44,32,.24);
  padding:11px 13px;color:#284c38;
  font-size:12px;line-height:1.5;text-align:left;
  opacity:0;visibility:hidden;pointer-events:none;
  white-space:normal;overflow-wrap:anywhere;
}
#workflowStudioSection .wf-source-folder-tooltip strong{
  display:block;color:#1b6b49;font-size:12px;margin-bottom:5px;
}
#workflowStudioSection .wf-source-folder-tooltip span{
  display:block;margin-top:5px;font-weight:500;
}
#workflowStudioSection .wf-source-folder-card:is(:hover,:focus-visible,:focus-within)
  .wf-source-folder-tooltip{opacity:1;visibility:visible}
#workflowStudioSection .wf-source-folder-remove{
  position:absolute;right:5px;top:9px;
  border:0;border-radius:4px;background:transparent;
  font-size:17px;line-height:1;color:#657c6b;
  width:19px;height:23px;cursor:pointer;
}
#workflowStudioSection .wf-source-folder-remove:hover{
  background:#fbe1e0;color:#a02e2e;
}
