/* Vettro Workflows: three-column responsive masonry with inline stage editing. */
.workflow-board-page .page-heading{
  margin:0 0 30px;
  align-items:center;
}
.workflow-overview-count{font-size:12px;color:#777b84;font-weight:500;}
.workflow-board-page #workflow-status{
  color:#646878;font-size:13px;min-height:0;
  margin:15px 0;
}
.workflow-board-page #workflow-status:empty{display:none}
.workflow-search-panel{
  --wf-blue:#228fe1;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  width:100%;
  min-height:148px;
  margin:0 0 38px;
  padding:23px clamp(26px,3vw,46px);
  gap:17px;
  color:#fff;
  border-radius:20px;
  background:linear-gradient(112deg,#56c2ed,#259de8 48%,#2b78da);
}
.wf-search{
  display:flex;
  align-items:center;
  width:100%;
  height:47px;
  gap:11px;
  padding:0 18px;
  border-radius:11px;
  border:1px solid rgba(255,255,255,.80);
  background:transparent;
}
.wf-search:focus-within{outline:2px solid #fff;outline-offset:3px;}
.wf-search>.icon{color:#fff;width:19px;height:19px;stroke-width:1.6;}
.wf-search input{
  flex:1;min-width:0;width:100%;
  background:transparent;color:#fff;border:0;outline:0;
  font:inherit;font-size:14px;
}
.wf-search input::placeholder{color:rgba(255,255,255,.89);}
.wf-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-around;
  gap:20px;
  max-width:100%;
}
.wf-tool{
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:12px;
  gap:2px;
}
.wf-control{
  width:42px;height:37px;cursor:pointer;
  display:grid;place-items:center;
  background:transparent;border:0;border-radius:9px;color:#fff;
}
.wf-control .icon{width:19px;height:19px;stroke-width:1.6;}
.wf-control:hover,.wf-control[aria-expanded="true"]{background:rgba(255,255,255,.16);}
.wf-tools-popover{
  position:absolute;top:calc(100% - 8px);left:clamp(26px,3vw,46px);
  z-index:50;min-width:230px;max-width:calc(100% - 30px);
  display:grid;gap:4px;padding:14px;
  color:#273243;background:#fff;border:1px solid #e9e7e5;
  border-radius:14px;box-shadow:0 14px 40px #25223420;
}
.wf-tools-popover[hidden]{display:none!important;}
.wf-tools-popover strong{font-size:12px;color:#878b94;padding:3px 7px 7px;}
.wf-tools-popover button{
  display:flex;align-items:center;gap:9px;
  text-align:left;padding:10px 11px;border:0;border-radius:8px;
  cursor:pointer;background:transparent;color:#28313c;font-size:13px;
}
.wf-tools-popover button:hover,
.wf-tools-popover button[aria-pressed="true"]{background:#edf5fb;color:#2275b3;}
.wf-tools-popover .icon{width:15px;height:15px;}
.workflow-board-page .workflows.wf-masonry{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:8px;
  grid-auto-flow:dense;
  column-gap:clamp(25px,2.4vw,40px);
  row-gap:8px;
  align-items:start;
  overflow:visible;
  margin:0 0 45px;
  min-height:200px;
}
.wf-masonry>.wf-board-card{
  grid-row-end:span 19;
  align-self:start;
  min-width:0;
  margin:0;
  overflow:visible;
  padding:clamp(20px,2vw,28px);
  background:var(--surface,#f6f4f2);
  border:0;border-radius:20px;
  box-shadow:none;
}
.wf-board-card .icon{stroke-width:1.6;}
.wf-card-head{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:9px;margin:0 0 23px;
}
.wf-card-heading{min-width:0;flex:1;}
.wf-card-heading h2{
  font-size:17px;line-height:1.3;letter-spacing:-.35px;
  font-weight:700;margin:1px 0 0;
  overflow-wrap:anywhere;color:var(--ink);
}
.wf-card-eyebrow{
  display:flex;align-items:center;gap:8px;
  margin:0 0 15px;color:#434956;
  font-size:14px;font-weight:680;line-height:1.3;
}
.wf-card-eyebrow .icon{width:17px;height:17px;color:#743ce0;}
.wf-name-input{
  width:100%;height:43px;outline:none;
  border:1px solid #ddd9d6;border-radius:9px;background:#fff;
  padding:11px 12px;color:#191d2b;font-size:14px;font-weight:600;
}
.wf-name-input:focus-visible,.wf-field-label input:focus-visible,
.wf-mini-dialog :is(select,input):focus-visible{
  outline:2px solid #8a67ef;outline-offset:1px;
}
.wf-card-actions{
  display:flex;align-items:center;justify-content:flex-end;
  gap:3px;flex:none;
}
.wf-icon-button{
  display:grid;place-items:center;
  width:27px;height:28px;
  border-radius:8px;
  border:0;background:transparent;
  color:#727782;cursor:pointer;
}
.wf-icon-button .icon{width:15px;height:15px;}
.wf-icon-button:hover{color:#6a36dc;background:#eae5f2;}
.wf-icon-button:focus-visible{outline:2px solid #8251ef;outline-offset:2px;}
.wf-icon-button[aria-pressed="true"]{color:#8246ed;}
.wf-icon-button[aria-pressed="true"] .icon{fill:#8246ed22;}
.wf-icon-button[data-shared="true"]{color:#5a83af;}
.wf-icon-button[disabled]{opacity:.3;cursor:not-allowed;}
.wf-stages{display:flex;flex-direction:column;gap:15px;}
.wf-stage{
  min-width:0;position:relative;
  padding:0;
  border-radius:13px;
  border:1px solid #eae5e1;
  background:#fbfaf8;
}
.wf-stage-expanded{
  background:#fff;
  border-color:#ded3f6;
}
.wf-stage-top{
  display:flex;align-items:center;
  gap:9px;
  min-height:64px;
  padding:14px 13px;
}
.wf-stage-num{
  flex:none;width:24px;height:24px;
  display:grid;place-items:center;
  border-radius:50%;
  background:#ebe5fb;color:#6534d0;
  font-size:11px;font-weight:700;
}
.wf-stage-label{
  flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  color:#303541;font-size:12px;font-weight:650;white-space:nowrap;
}
.wf-collapsed-people{
  display:flex;align-items:center;justify-content:flex-end;
  gap:5px;min-width:0;
}
.wf-person{
  position:relative;
  display:inline-grid;
  place-items:center;
  flex:none;
  width:46px;height:46px;
  vertical-align:middle;
  cursor:default;
  outline:0;
  border-radius:50%;
  z-index:1;
}
.wf-person:focus-visible{outline:2px solid #734ce1;outline-offset:3px;}
.wf-person:hover,.wf-person:focus-within{z-index:60;}
.wf-person-mini{width:22px;height:22px;}
.wf-face{
  display:grid;place-items:center;
  width:100%;height:100%;
  position:relative;
  overflow:hidden;
  border-radius:50%;
  background:linear-gradient(140deg,#e3d6fc,#d4ebf3);
  border:1px solid #ffffff;
  color:#6a59a5;
}
.wf-face img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;display:block;
}
.wf-face>.icon{width:48%;height:48%;}
.wf-initial{font-size:13px;font-weight:650;letter-spacing:-.4px;}
.wf-person-mini .wf-initial{font-size:8px;}
.wf-role-icon{
  position:absolute;top:-4px;left:-5px;
  display:grid;place-items:center;
  height:18px;width:18px;
  border:1px solid #ede8fa;border-radius:50%;
  background:#fbf9ff;color:#684baf;z-index:2;
}
.wf-role-icon .icon{width:10px;height:10px;}
.wf-face-overflow{
  display:grid;place-items:center;flex:none;
  background:#e9e5e2;border-radius:99px;
  width:22px;height:22px;
  font-size:9px;color:#666974;
}
.wf-stage-actions{
  display:flex;align-items:center;justify-content:flex-end;
  flex:none;gap:0;
}
.wf-stage-actions .wf-icon-button{width:24px;height:27px;}
.wf-stage-actions .wf-icon-button .icon{width:13px;height:13px;}
.wf-stage-expanded .wf-stage-actions [data-wf-toggle-stage] .icon{
  transform:rotate(180deg);
}
.wf-person-popover{
  display:none;
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  width:230px;
  max-width:80vw;
  padding:15px;
  z-index:70;
  background:#fff;
  border:1px solid #e9e4e0;
  box-shadow:0 15px 40px #191a2925;
  border-radius:12px;
  text-align:left;
  color:#27303e;
  white-space:normal;
  line-height:1.35;
}
.wf-person-popover::before{
  content:"";position:absolute;
  top:-6px;left:0;right:0;height:7px;
}
.wf-person:hover .wf-person-popover,
.wf-person:focus-within .wf-person-popover{
  display:flex;flex-direction:column;gap:6px;
}
.wf-person-popover strong{font-size:13px;color:#171b2b;}
.wf-person-popover small{font-size:11px;color:#797c86;}
.wf-person-actions{display:flex;flex-direction:column;gap:5px;border-top:1px solid #eeeae6;padding-top:8px;margin-top:3px;}
.wf-person-actions button{
  background:transparent;
  display:flex;align-items:center;gap:8px;
  padding:7px 4px;border:0;text-align:left;
  cursor:pointer;border-radius:6px;
  font-size:11px;color:#545a64;
}
.wf-person-actions button:hover{background:#f4f1f9;color:#6036c6;}
.wf-person-actions .icon{width:13px;height:13px;}
.wf-stage-content{
  padding:4px 18px 21px;
}
.wf-field-label{
  display:grid;gap:8px;
  font-size:12px;font-weight:600;color:#4b5261;
  margin-bottom:17px;
}
.wf-field-label input{
  border:1px solid #e6e1db;
  outline:none;
  background:#fff;
  border-radius:9px;
  height:41px;
  width:100%;
  padding:10px 12px;
  font-size:13px;color:#1a2130;
}
.wf-stage-note{
  font-size:11px;color:#92939c;
  margin:0 0 15px;line-height:1.6;
}
.wf-empty-graph{
  display:grid;place-items:center;
  min-height:86px;
}
.wf-stage-graph{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  padding:6px 8px 12px;
  min-width:0;
}
.wf-reviewers{
  display:flex;align-items:center;
  justify-content:center;flex-wrap:wrap;
  gap:16px 23px;
  max-width:250px;
  min-height:48px;
}
.wf-decision-people{display:flex;justify-content:center;gap:17px;}
.wf-branch-join{width:min(180px,80%);height:24px;overflow:visible;display:block;margin:1px 0 3px;}
.wf-branch-join path{fill:none;stroke:rgba(112,94,158,.34);stroke-width:1;stroke-linecap:round;stroke-linejoin:round;}
.wf-flow-line{
  position:relative;
  width:1px;height:24px;
  margin:2px 0 5px;
  background:rgba(112,94,158,.34);
}
.wf-flow-line::after{
  content:"";
  position:absolute;bottom:-1px;left:-3px;
  width:6px;height:6px;
  border-right:1px solid rgba(112,94,158,.34);
  border-bottom:1px solid rgba(112,94,158,.34);
  transform:rotate(45deg);
}
.wf-outcomes{display:flex;align-items:center;justify-content:center;gap:28px;}
.wf-route{
  width:35px;height:35px;display:grid;place-items:center;
  border-radius:50%;
  border:1px solid #ddd8e0;
  background:#fbfaf8;
  color:#888693;
  opacity:.72;
}
.wf-route .icon{height:15px;width:15px;}
.wf-return{color:#ad777f;border-color:#e8cfd3;}
.wf-advance{color:#638a7f;border-color:#d0e2d8;}
.wf-graph-add{
  display:flex;align-items:center;
  flex-direction:column;justify-content:center;
  gap:2px;
}
.wf-graph-add .wf-flow-line{height:16px;}
.wf-add-person{
  width:44px;height:44px;
  border-radius:50%;
  border:1px dashed #c5badf;
  background:#f3eefb;
  color:#9c8abc;
  display:grid;place-items:center;
  cursor:pointer;
  transition:background .12s ease;
}
.wf-add-person:hover,.wf-add-person:focus-visible{
  color:#653bd1;background:#e9e1f9;
  outline:0;border-style:solid;
}
.wf-add-person .icon{width:18px;height:18px;}
.wf-stage-footer{display:flex;justify-content:flex-end;margin-top:15px;}
.wf-save-stage{
  font-size:12px;font-weight:600;
  color:#fff;background:#713de1;
  border:0;border-radius:8px;
  cursor:pointer;padding:9px 14px;
}
.wf-save-stage:hover{background:#5e2dc5;}
.wf-card-footer{display:grid;gap:12px;padding-top:20px;}
.wf-add-stage{
  display:flex;justify-content:center;align-items:center;gap:8px;
  min-height:42px;border:0;border-radius:9px;
  color:#686c7b;background:#e8e5e6;
  cursor:pointer;font-size:12px;font-weight:600;
}
.wf-add-stage[disabled]{
  opacity:.5;cursor:not-allowed;
}
.wf-add-stage:not([disabled]):hover{background:#e4dcf5;color:#6038c0;}
.wf-add-stage .icon{width:15px;height:15px;}
.wf-footer-row{display:flex;gap:8px;}
.wf-save-workflow{
  min-height:43px;flex:1;border:0;border-radius:9px;
  background:#733fe2;color:#fff;
  font-size:13px;font-weight:650;cursor:pointer;
}
.wf-save-workflow:hover{background:#5f2dc7;}
.wf-discard{
  border-radius:9px;
  background:transparent;border:1px solid #d4d0d4;
  padding:0 12px;color:#666978;cursor:pointer;
  font-size:12px;
}
.wf-dialog-layer{
  position:fixed;
  z-index:500;
  width:304px;
  max-width:calc(100vw - 24px);
  background:#fff;
  padding:0;
  border-radius:14px;
  box-shadow:0 20px 54px rgba(22,24,34,.20);
  border:1px solid #e3e0e5;
}
.wf-dialog-layer[hidden]{display:none!important;}
.wf-mini-dialog{
  display:flex;flex-direction:column;gap:14px;
  padding:20px;
  color:#303444;
}
.wf-mini-dialog>strong{font-size:14px;}
.wf-mini-dialog>p{
  font-size:11px;line-height:1.5;color:#787c86;
  margin:0;
}
.wf-mini-dialog label{
  display:flex;flex-direction:column;gap:7px;
  font-size:11px;font-weight:600;color:#646876;
}
.wf-mini-dialog input,.wf-mini-dialog select{
  display:block;width:100%;min-width:0;
  height:37px;
  border-radius:8px;
  border:1px solid #dddbe0;
  background:#fff;
  color:#232937;
  padding:8px 10px;
  font:inherit;font-size:12px;
}
.wf-mini-dialog [hidden]{display:none!important;}
.wf-mini-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:5px;}
.wf-mini-actions button{
  padding:9px 12px;
  border-radius:8px;border:1px solid #ddd8e1;
  color:#50566a;cursor:pointer;font-weight:600;
  background:transparent;font-size:12px;
}
.wf-mini-actions button[type="submit"]{background:#723ee2;color:#fff;border-color:#723ee2;}
.wf-shared-recipients{display:grid;gap:7px;}
.wf-shared-recipients:empty{display:none;}
.wf-shared-recipients>div{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;font-size:11px;color:#656974;
  background:#f7f4f9;border-radius:8px;padding:6px 9px;
}
.wf-shared-recipients button{
  background:transparent;border:0;color:#777;font-size:17px;cursor:pointer;
}
.workflow-board-page .workflows.wf-masonry.wf-list-layout{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:26px;
}
.wf-list-layout>.wf-board-card{
  grid-row-end:auto!important;
  width:100%;
}
@media(max-width:1180px){
 .workflow-board-page .workflows.wf-masonry:not(.wf-list-layout){grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:850px){
 .workflow-board-page .workflows.wf-masonry:not(.wf-list-layout){grid-template-columns:minmax(0,1fr);}
 .workflow-search-panel{padding:22px;min-height:145px;}
}
@media(max-width:700px){
 .workflow-board-page{padding-bottom:34px;}
 .workflow-board-page .page-heading{margin:14px 0 24px;}
 .workflow-search-panel{margin-bottom:28px;}
 .wf-board-card .wf-card-head{gap:8px;}
 .wf-person-popover{left:auto;right:0;transform:none;max-width:72vw;}
 .workflow-board-page .workflows.wf-masonry{column-gap:20px;}
 .wf-masonry>.wf-board-card{padding:21px;}
}
@media(prefers-reduced-motion:reduce){
 .wf-add-person{transition:none;}
}

/* Compact stage participants with deliberate separation. */
.wf-stages{gap:19px;}
.wf-stage-top{padding:16px 13px;}
.wf-collapsed-people{gap:8px;}
.workflow-board-page .workflows.wf-masonry{column-gap:clamp(30px,3vw,44px);}

/* Workflow design pass: search belongs to the masonry, second cell. */
.workflow-board-page > .workflow-search-panel { display:none; }
.workflow-board-page .workflows.wf-masonry>.workflow-search-panel {
  grid-row-end:span 18;
  min-height:250px;
  padding:27px 22px;
  margin:0;
  width:100%;
  border-radius:20px;
  justify-content:center;
  align-self:start;
  overflow:visible;
}
.workflow-board-page .workflows.wf-masonry>.workflow-search-panel .wf-toolbar { padding:10px 0 0; }
.workflow-board-page .workflows.wf-masonry { column-gap:clamp(33px,3.2vw,52px); }
.workflow-board-page .workflow-overview-count { margin-left:auto; }
.workflow-board-page .wf-card-head-new { display:block; }
.workflow-board-page .wf-card-head-new .wf-card-eyebrow {
  font-size:18px;
  font-weight:750;
  letter-spacing:-.45px;
  gap:12px;
  margin:0 0 24px;
}
.workflow-board-page .wf-card-head-new .wf-card-eyebrow .icon {
  width:24px;height:24px;padding:4px;
  background:#e8dfff;border-radius:8px;
}
.wf-name-actions { display:flex;align-items:center;gap:10px; }
.wf-name-actions .wf-name-input { flex:1;min-width:0; }
.wf-name-actions .wf-card-actions { flex:none;gap:4px; }
.wf-stage-top { gap:10px; }
.wf-stage-move { display:flex;align-items:center;gap:0;margin-right:2px; }
.wf-stage-move .wf-icon-button { width:20px;height:22px; }
.wf-stage-move [data-wf-move-up] .icon { transform:rotate(-90deg); }
.wf-stage-move [data-wf-move-down] .icon { transform:rotate(90deg); }
.wf-drag-handle { width:19px;height:23px;display:grid;place-items:center;cursor:grab;color:#a29da9; }
.wf-drag-handle .icon {width:13px;height:13px;}
.wf-stage[data-wf-drop-target] { outline:2px dashed #a691df;outline-offset:2px; }
.wf-inline-error {
  display:flex;align-items:flex-start;gap:7px;margin:7px 0 14px;
  font-size:11px;line-height:1.55;color:#a42d3a;background:#fff0f1;
  border-radius:8px;padding:9px 10px;
}
.wf-inline-error .icon {width:15px;height:15px;flex:none;}
.wf-inline-success {display:flex;align-items:center;gap:7px;color:#28745c;font-size:11px;margin:0 0 15px;}
.wf-inline-success .icon {height:14px;width:14px;}
.workflow-board-page #workflow-status:empty { display:none; }
@media(max-width:1180px){
 .workflow-board-page .workflows.wf-masonry:not(.wf-list-layout){grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:850px){
 .workflow-board-page .workflows.wf-masonry:not(.wf-list-layout){grid-template-columns:minmax(0,1fr);}
}

/* Shared dark popover language: anchored to the control that opened it. */
.wf-dialog-layer {
  width:334px;
  max-width:calc(100vw - 24px);
  background:#101114;
  color:#f6f4f2;
  border:1px solid #333740;
  border-radius:15px;
  box-shadow:0 18px 46px rgba(7,8,11,.27);
  overflow:visible;
}
.wf-dialog-layer::before {
  content:"";
  position:absolute;top:-6px;
  left:calc(var(--wf-arrow-x, 40px) - 6px);
  width:11px;height:11px;
  transform:rotate(45deg);
  background:#101114;
  border-top:1px solid #333740;
  border-left:1px solid #333740;
  z-index:1;
}
.wf-dialog-layer[data-placement="top"]::before{
  top:auto;bottom:-6px;
  border-top:0;border-left:0;
  border-right:1px solid #333740;
  border-bottom:1px solid #333740;
}
.wf-dialog-layer .wf-mini-dialog{
  position:relative;
  gap:13px;
  padding:20px;
  color:#f6f4f2;
}
.wf-dialog-layer .wf-mini-dialog>strong{
  font-size:15px;font-weight:700;letter-spacing:-.15px;
}
.wf-dialog-layer .wf-mini-dialog>p{
  color:#acb2bf;line-height:1.55;font-size:11px;
}
.wf-dialog-layer .wf-pop-tabs{
  display:flex;align-items:center;gap:5px;
  background:#21242b;border-radius:10px;padding:4px;
}
.wf-dialog-layer .wf-pop-tabs button{
  flex:1;border:0;background:transparent;border-radius:7px;
  color:#aeb3bd;font-size:11px;font-weight:600;
  min-height:33px;cursor:pointer;
}
.wf-dialog-layer .wf-pop-tabs button[aria-pressed="true"]{
  background:#414552;color:#fff;
}
.wf-dialog-layer .wf-option-list{
  display:grid;
  gap:5px;
  max-height:178px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-color:#555966 #191b20;
  padding-right:3px;
}
.wf-dialog-layer .wf-pop-option{
  display:flex;align-items:center;
  width:100%;min-height:43px;
  padding:6px 8px;
  gap:10px;
  background:transparent;
  border:1px solid transparent;
  border-radius:9px;
  cursor:pointer;text-align:left;
  color:#e7e8ef;font-size:12px;
}
.wf-dialog-layer .wf-pop-option:hover{background:#242831;}
.wf-dialog-layer .wf-pop-option[aria-pressed="true"]{
  background:#342c48;border-color:#7058ad;
}
.wf-pop-option > span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere;}
.wf-pop-option > .icon{width:14px;height:14px;color:#a88aff;opacity:0;}
.wf-pop-option[aria-pressed="true"] > .icon{opacity:1;}
.wf-menu-avatar{
  width:29px;height:29px;flex:none;
  display:grid;place-items:center;
  border-radius:50%;
  color:#e4dcfc;background:#5d526d;
  overflow:hidden;
  font-size:10px;font-weight:700;
}
.wf-menu-avatar img{display:block;width:100%;height:100%;object-fit:cover;}
.wf-menu-avatar .icon{width:15px;height:15px;}
.wf-dialog-layer .wf-pop-email{
  display:grid;gap:8px;
  font-size:11px;color:#d2d5e1;
  padding:4px 0 0;
}
.wf-dialog-layer .wf-pop-email input{
  background:#24272e;
  color:#fff;border:1px solid #50525b;
  border-radius:9px;height:41px;
  padding:10px 12px;font-size:12px;
}
.wf-dialog-layer .wf-pop-email input::placeholder{color:#9b9da7;}
.wf-dialog-layer .wf-pop-email input:focus-visible{
  outline:2px solid #ab92ff;outline-offset:2px;
}
.wf-dialog-layer [hidden]{display:none!important;}
.wf-dialog-layer .wf-pop-section-label{
  font-size:11px;font-weight:700;
  color:#c2c1d0;
  padding-top:5px;
}
.wf-dialog-layer .wf-role-choices{display:grid;gap:7px;}
.wf-dialog-layer .wf-role-choice{
  display:flex;align-items:center;gap:11px;
  text-align:left;cursor:pointer;
  border-radius:10px;
  border:1px solid #3c404a;
  background:#1c1e24;color:#f5f1ff;
  padding:10px 11px;
}
.wf-dialog-layer .wf-role-choice:hover{border-color:#7767a0;}
.wf-dialog-layer .wf-role-choice[aria-pressed="true"]{
  border-color:#a283ed;background:#302a3d;
}
.wf-role-choice-icon{
  width:33px;height:33px;flex:none;
  display:grid;place-items:center;
  border-radius:9px;background:#383044;color:#c0aafa;
}
.wf-role-choice-icon>.icon{height:17px;width:17px;}
.wf-dialog-layer .wf-role-choice>span:nth-child(2){
  display:flex;flex:1;flex-direction:column;gap:3px;min-width:0;
}
.wf-dialog-layer .wf-role-choice strong{font-size:12px;font-weight:700;}
.wf-dialog-layer .wf-role-choice small{
  color:#adafbb;font-size:10px;line-height:1.4;
}
.wf-role-choice>.icon{
  color:#baa2ff;width:15px;height:15px;opacity:0;
}
.wf-role-choice[aria-pressed="true"]>.icon{opacity:1;}
.wf-dialog-layer .wf-pop-error{
  display:flex;align-items:flex-start;gap:7px;
  margin:0;padding:9px 10px;
  font-size:11px;line-height:1.5;color:#ffb5bc;
  background:#4d252c;border-radius:8px;
}
.wf-dialog-layer .wf-pop-error>.icon{
  width:15px;height:15px;flex:none;
}
.wf-dialog-layer .wf-mini-actions{
  display:flex;justify-content:flex-end;gap:9px;
  margin-top:4px;
}
.wf-dialog-layer .wf-mini-actions button{
  min-height:37px;
  background:transparent;
  border:1px solid #555862;
  color:#e2e3eb;border-radius:8px;
  padding:9px 14px;font-size:11px;font-weight:650;
}
.wf-dialog-layer .wf-mini-actions button:hover{background:#262a34;}
.wf-dialog-layer .wf-mini-actions button[type="submit"]{
  color:#fff;
  background:#7541e0;border-color:#7541e0;
}
.wf-dialog-layer .wf-mini-actions button[type="submit"]:hover{background:#8852f0;}
.wf-dialog-layer .wf-shared-recipients{
  display:grid;gap:7px;
  max-height:132px;overflow:auto;
}
.wf-dialog-layer .wf-shared-recipients>div{
  display:flex;align-items:center;gap:8px;
  padding:7px 8px;background:#25282f;
  color:#e1e4eb;font-size:11px;
}
.wf-shared-recipients>div>span:nth-child(2){flex:1;}
.wf-dialog-layer .wf-shared-recipients button{
  width:24px;height:24px;flex:none;display:grid;place-items:center;
  border:0;background:transparent;color:#f0b2bb;cursor:pointer;
}
.wf-dialog-layer .wf-shared-recipients button:hover{background:#453038;}
.workflow-board-page .workflow-search-panel .wf-tools-popover {
  background:#101114;color:#f7f6fb;
  border-color:#383b44;
  box-shadow:0 20px 40px #14141433;
  z-index:220;
}
.workflow-board-page .workflow-search-panel .wf-tools-popover strong{color:#aeb4c0;}
.workflow-board-page .workflow-search-panel .wf-tools-popover button{color:#e3e5eb;}
.workflow-board-page .workflow-search-panel .wf-tools-popover button:hover,
.workflow-board-page .workflow-search-panel .wf-tools-popover button[aria-pressed="true"]{
  background:#353145;color:#e2d3ff;
}
@media(max-width:600px){
 .wf-dialog-layer .wf-mini-dialog{padding:16px;}
 .wf-dialog-layer .wf-option-list{max-height:118px;}
 .wf-dialog-layer .wf-role-choice{padding:8px;}
 .wf-stage-move .wf-drag-handle{display:none;}
}

/* Reorder controls live within the expanded editor; collapsed rows stay quiet. */
.wf-stage-reorder{
  display:flex;align-items:center;justify-content:flex-end;
  gap:4px;margin:0 0 12px;
  padding-bottom:9px;border-bottom:1px solid #f0edef;
}
.wf-stage-reorder .wf-icon-button{height:25px;width:24px;}
.wf-stage-reorder .wf-icon-button .icon{width:13px;height:13px;}
.wf-stage-reorder [data-wf-move-up] .icon{transform:rotate(-90deg);}
.wf-stage-reorder [data-wf-move-down] .icon{transform:rotate(90deg);}
.wf-stage-reorder>span{font-size:10px;color:#9c9ca5;margin-left:7px;}
.wf-stage-actions .wf-drag-handle{flex:none;height:26px;width:15px;}
.wf-stage-actions{gap:1px;}
.wf-stage-actions .wf-icon-button{width:21px;}
.wf-dialog-layer>.wf-mini-dialog{max-height:calc(100dvh - 42px);overflow-y:auto;overscroll-behavior:contain;}

/* Tooltips remain on top of neighboring masonry cards during hover and keyboard focus. */
.wf-board-card:has(.wf-person:hover),
.wf-board-card:has(.wf-person:focus-within) { position:relative; z-index:90; }
.wf-stage:has(.wf-person:hover),
.wf-stage:has(.wf-person:focus-within) { z-index:100; }
.wf-person-popover:focus-within{display:flex;flex-direction:column;gap:6px;}


/* Flat workflow stage rows: one faint divider instead of nested bordered boxes.
   Shared by both the Create New Workflow card and saved workflow cards. */
.workflow-board-page .wf-board-card .wf-stages {
  gap:0;
}
.workflow-board-page .wf-board-card .wf-stage,
.workflow-board-page .wf-board-card .wf-stage-expanded,
.workflow-board-page .wf-board-card .wf-stage-collapsed {
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  margin:0;
  min-width:0;
}
.workflow-board-page .wf-board-card .wf-stage + .wf-stage {
  border-top:1px solid #e5e1de;
}
.workflow-board-page .wf-board-card .wf-stage-top {
  min-height:48px;
  padding:11px 1px;
  gap:8px;
}
.workflow-board-page .wf-board-card .wf-stage-content {
  padding:3px 3px 16px;
}
.workflow-board-page .wf-board-card .wf-stage-note {
  margin-top:2px;
}
.workflow-board-page .wf-board-card .wf-stage-footer {
  margin-top:10px;
}


/* Stage operations now belong to the bottom of the expanded stage. */
.workflow-board-page .wf-board-card .wf-stage-expanded .wf-collapsed-people {display:none!important;}
.workflow-board-page .wf-board-card .wf-stage-footer {
  display:flex;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;gap:9px;margin-top:16px;padding-top:13px;
  border-top:1px solid #ece7e4;
}
.workflow-board-page .wf-board-card .wf-stage-footer .wf-delete-stage {
  display:inline-flex;align-items:center;justify-content:center;
  gap:6px;min-height:36px;padding:8px 12px;
  font-size:11px;font-weight:650;
  border:1px solid #e1dce0;border-radius:8px;
  background:#fff;color:#8d4b57;cursor:pointer;
}
.workflow-board-page .wf-board-card .wf-stage-footer .wf-delete-stage .icon {width:13px;height:13px;}
.workflow-board-page .wf-board-card .wf-stage-footer .wf-delete-stage:hover:not(:disabled) {
  border-color:#d8b6bf;background:#fff1f2;color:#a2384a;
}
.workflow-board-page .wf-board-card .wf-stage-footer .wf-delete-stage:disabled {opacity:.4;cursor:not-allowed;}
.workflow-board-page .wf-board-card .wf-stage-footer .wf-save-stage {min-height:36px;padding:8px 13px;}
