/* Figma PCF process composition. Canonical Leadity colors and controls. */
.pcf-steps{--flow-height:53px;--flow-connector:100px;--flow-branch-offset:120px;--process-canvas-height:597px;--process-panel-width:400px;--process-title-font:600 var(--text-base)/1.3 "Roboto Table Header",var(--font-body);--process-title-tracking:.08px;display:grid;gap:var(--s6);min-width:0}
.pcf-process-toolbar-actions{display:flex;align-items:center;gap:var(--s4);flex-wrap:wrap;min-width:0}
.pcf-process-segments .p-segment{min-width:0;padding-inline:var(--s5)}
.pcf-view-switch .p-segment{width:64px}
.pcf-template-row{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--s6);flex-wrap:wrap;min-width:0}
.pcf-template{display:grid;gap:var(--s4);flex:0 1 960px;min-width:0}
#app .pcf-template h2{font:600 var(--text-lg)/1.5 "Roboto Table Header",var(--font-body);letter-spacing:.09px}
.pcf-template-controls{display:flex;align-items:center;gap:var(--s4);min-width:0}
.pcf-template-controls>.combo{flex:0 1 556px;min-width:0}.pcf-template-controls>.p-button{flex:none}
.pcf-template-row>.p-button{margin-bottom:var(--s3)}
.pcf-diagram-shell{position:relative;min-width:0;height:var(--process-canvas-height);background:var(--neutral-10);border-radius:var(--radius-panel);isolation:isolate}
.pcf-diagram-scroll{height:100%;max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:inherit;scroll-padding:var(--s7)}
.pcf-flow-content{position:relative;display:flex;align-items:center;justify-content:center;width:max-content;min-width:100%;min-height:100%;padding:var(--s8) var(--s8) 140px}
.pcf-flow-roots{display:flex;align-items:flex-start;gap:var(--flow-connector);width:max-content;position:relative;z-index:1}
.pcf-flow-group{display:grid;align-content:start;gap:var(--s7);min-width:0}
.pcf-flow-node{position:relative;display:flex;align-items:center;justify-content:center;min-height:var(--flow-height);width:max-content;max-width:280px;padding:var(--s5) var(--s7);border:0;border-radius:var(--radius-compact);background:var(--surface);color:var(--neutral-100);font:var(--process-title-font);letter-spacing:var(--process-title-tracking);cursor:pointer;text-align:center;box-shadow:var(--shadow-default)}
.pcf-flow-node>span:first-child{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.pcf-flow-node:hover{background:var(--neutral-20);color:var(--fg)}
.pcf-flow-dot{position:absolute;display:block;width:var(--s3);height:var(--s3);border-radius:50%;background:var(--neutral-100);pointer-events:none}.pcf-flow-dot.right{right:calc(-1 * var(--s2));top:calc(50% - var(--s2))}.pcf-flow-dot.bottom{bottom:calc(-1 * var(--s2));left:calc(50% - var(--s2))}
.pcf-flow-children{display:grid;gap:var(--s6);padding-left:var(--flow-branch-offset)}
.pcf-flow-lines{position:absolute;left:0;top:0;pointer-events:none;color:var(--neutral-100);overflow:visible}.pcf-flow-lines g path{fill:none;stroke:var(--neutral-100);stroke-width:1}
.pcf-flow-palette{position:absolute;left:var(--s6);bottom:var(--s7);z-index:2;display:flex;align-items:center;gap:var(--s4);padding:var(--s5);border-radius:var(--radius-compact);background:var(--neutral-100);box-shadow:var(--shadow-default)}
.pcf-palette-node{background:var(--surface);cursor:grab}.pcf-palette-node:active{cursor:grabbing}
.pcf-steps-empty{font:var(--body);color:var(--neutral-80)}
.pcf-step-edit-layer{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) min(var(--process-panel-width),100%);z-index:3;border-radius:inherit;overflow:clip}
.pcf-step-scrim{border:0;background:color-mix(in srgb,var(--neutral-120) 40%,transparent);cursor:default;min-width:0}
.pcf-step-editor{display:flex;flex-direction:column;gap:var(--s6);padding:var(--s7);min-width:0;background:var(--surface);overflow:auto;scrollbar-width:thin;box-shadow:var(--shadow-floating)}
.pcf-step-editor>header{display:flex;align-items:flex-start;gap:var(--s3);min-width:0;position:relative}
#app .pcf-step-editor h2{font:var(--display-md);overflow-wrap:anywhere;max-width:280px;padding-right:var(--s4)}
.pcf-step-editor>header>.p-icon{position:absolute;right:calc(-1 * var(--s4));top:calc(-1 * var(--s4));width:32px;height:32px;background:transparent}
.pcf-step-editor .p-textarea-shell{--form-textarea-height:153px}
.pcf-step-editor .field-error:empty{display:none}
.pcf-step-editor>footer{display:flex;justify-content:space-between;gap:var(--s4);align-items:center;margin-top:auto}
.pcf-step-editor .pcf-remove{min-height:32px;background:var(--surface);color:var(--error-text);box-shadow:var(--shadow-default);padding:var(--s3)}
.pcf-step-editor .pcf-remove:hover{background:var(--error-soft)}
.pcf-graph-save{display:flex;justify-content:flex-end}.pcf-graph-save[hidden]{display:none}
.pcf-step-table-scroll{min-width:0;max-width:100%;overflow:auto;scrollbar-width:thin;padding:var(--s2);margin:calc(-1 * var(--s2))}
.pcf-step-table{width:100%;min-width:920px;table-layout:fixed;border-collapse:separate;border-spacing:0 var(--s4);font:var(--body)}
.pcf-step-table .pcf-grip-col{width:32px}.pcf-step-table .pcf-actions-col{width:100px}
.pcf-step-table th{text-align:left;font:var(--process-title-font);letter-spacing:var(--process-title-tracking);color:var(--neutral-100);padding:0 var(--s4) 0 0;background:transparent}
.pcf-step-table td{vertical-align:top;padding:0 var(--s4) 0 0;border:0}.pcf-step-table td:last-child{padding:0}
.pcf-step-table tbody tr:last-child td{padding-bottom:var(--s4);border-bottom:1px solid var(--border)}
.pcf-compact-input{display:block;width:100%;height:var(--control-default);min-height:var(--control-default);padding:var(--s3) var(--s4);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-field);font:var(--body);line-height:22px;color:var(--fg)}
.pcf-compact-input:hover{border-color:var(--neutral-60)}.pcf-compact-input:disabled{color:var(--neutral-60);background:var(--neutral-10);border-color:var(--neutral-20)}.pcf-compact-input[aria-invalid=true]{border-color:var(--error-text)}
.pcf-step-table .combo.pcf-compact-combo{--field-height:var(--control-default);--field-padding-top:var(--s3);--field-padding-bottom:var(--s3)}
.pcf-step-table .combo.pcf-compact-combo>label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.pcf-step-table .combo.pcf-compact-combo>.combo-trigger{height:var(--control-default);min-height:var(--control-default);padding:var(--s3) var(--s8) var(--s3) var(--s4)}
.pcf-step-table .combo.pcf-compact-combo>.combo-trigger>i{top:var(--s4)}
.pcf-row-actions{display:flex;gap:var(--s3)}.pcf-row-actions .p-icon{color:var(--fg)}.pcf-row-actions .p-icon:last-child{color:var(--error-text);background:var(--surface);box-shadow:var(--shadow-default)}
.pcf-row-grip{display:grid;place-items:center;width:40px;height:40px;margin-left:calc(-1 * var(--s3));background:transparent;border:0;color:var(--neutral-80);cursor:grab;touch-action:none}
.pcf-row-grip:hover{color:var(--fg)}.pcf-product-root>td:first-child{padding-top:var(--s4);color:var(--neutral-40)}
.pcf-list-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);margin-top:var(--s6)}
.pcf-steps-error:empty,#pcf-steps-error:empty{display:none}
.pcf-note-evidence{display:grid;gap:var(--s4);margin-top:var(--s4)}.pcf-note-evidence h3{font:var(--body-medium);margin:0}.pcf-note-evidence>.p-button{justify-self:start}.pcf-note-evidence ul{list-style:none;padding:0;margin:0;display:grid;gap:var(--s3)}.pcf-note-evidence li{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);min-width:0}.pcf-note-evidence a{display:flex;align-items:center;gap:var(--s3);min-width:0}.pcf-note-evidence a>span{overflow-wrap:anywhere}.pcf-note-evidence a:hover{text-decoration:underline}
@container study-content (max-width:800px){.pcf-template{flex-basis:100%}.pcf-template-controls{flex-wrap:wrap}.pcf-template-controls>.combo{flex-basis:100%}.pcf-process-toolbar-actions{justify-content:flex-end;flex:1}.pcf-template-row>.p-button{margin-bottom:0}.pcf-flow-content{justify-content:flex-start}.pcf-step-editor{padding:var(--s6)}.pcf-step-edit-layer{grid-template-columns:minmax(0,1fr) min(400px,100%)}}
@media(max-width:760px){.pcf-process-toolbar-actions>.p-button{font-size:var(--text-sm)}.pcf-process-toolbar-actions{justify-content:space-between;width:100%}.pcf-view-switch .p-segment{width:48px}.pcf-flow-palette{left:var(--s5);bottom:var(--s5);padding:var(--s3)}.pcf-flow-content{padding-inline:var(--s6)}.pcf-list-footer{flex-wrap:wrap}.pcf-list-footer>.primary{margin-left:auto}.pcf-step-editor>header>.p-icon{right:calc(-1 * var(--s3))}}
.pcf-flow-header{position:relative;width:max-content;max-width:280px}
.pcf-flow-header>.p-icon{position:absolute;z-index:2;width:40px;height:40px;opacity:0;pointer-events:none;background:var(--neutral-10);color:var(--fg)}
.pcf-flow-header>[data-pcf=connect-menu]{right:-20px;top:calc(50% - 20px)}
.pcf-flow-header>[data-pcf=add-child]{left:calc(50% - 20px);bottom:-20px}
.pcf-flow-header:hover>.p-icon,.pcf-flow-header:focus-within>.p-icon{opacity:1;pointer-events:auto}
.pcf-flow-header>.p-icon:focus-visible{opacity:1;pointer-events:auto}
.pcf-connection-popover{position:fixed;inset:auto;margin:0;width:min(328px,calc(100% - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:var(--s5);border:1px solid var(--border);border-radius:var(--radius-panel);background:var(--surface);color:var(--fg);box-shadow:var(--shadow-floating)}
.pcf-connection-popover:popover-open{display:grid;gap:var(--s5)}
.pcf-connection-popover .field-error:empty{display:none}
.pcf-connection-row{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);min-width:0}
.pcf-connection-row>span{overflow-wrap:anywhere}
.pcf-connection-popover :focus-visible,.pcf-step-note :focus-visible{outline:2px solid var(--neutral-80);outline-offset:2px}
@media(hover:none){.pcf-flow-header>.p-icon{opacity:1;pointer-events:auto}}
/* Compact note/upload popover remains anchored to its table-row action. */
.pcf-step-note{position:fixed;inset:auto;margin:0;width:min(400px,calc(100% - 16px));max-height:calc(100dvh - 16px);overflow:auto;padding:var(--s6);border:1px solid var(--border);border-radius:var(--radius-panel);background:var(--surface);color:var(--fg);box-shadow:var(--shadow-floating)}
.pcf-step-note:popover-open{display:grid;gap:var(--s6)}
.pcf-step-note>header{display:flex;align-items:center;justify-content:space-between;gap:var(--s4)}
.pcf-step-note h2{font:600 var(--text-lg)/1.5 "Roboto Table Header",var(--font-body)}
.pcf-step-note>footer{display:flex;justify-content:flex-end;gap:var(--s4)}
.pcf-step-note .field-error:empty{display:none}
.pcf-template-controls>.combo{grid-template-columns:minmax(0,1fr)}
.pcf-template-controls>.combo>.combo-trigger{min-width:0;max-width:100%}
#pcf-step-list-form{min-width:0;max-width:100%}
.pcf-step-table-scroll{position:relative}
/* Source-backed flow colors: neutral-80 lines/palette, neutral-100 labels. */
.pcf-flow-dot,.pcf-flow-palette{background:var(--neutral-80)}
.pcf-flow-lines{color:var(--neutral-80)}.pcf-flow-lines g path{stroke:var(--neutral-80)}
@container study-content (max-width:400px){.pcf-process-segments .p-segment{padding:var(--s3);line-height:16px;font-size:var(--text-sm)}}
