@import './ds/styles/system.css';
:root{
  --paper:var(--irs-system-background);--ink:var(--irs-system-text);
  --card:var(--irs-system-card);--inset:var(--irs-system-surface);
  --navy:var(--irs-system-primary);--on-navy:var(--irs-system-on-primary);
  --muted:var(--irs-system-muted);--tertiary:var(--irs-system-signature-text);
  --rule:var(--irs-system-border);--control:var(--irs-system-control-border);
  --selected:var(--irs-system-approved-background);--selected-ink:var(--irs-system-approved);
  --error:var(--irs-system-rejected);
  --error-wash:color-mix(in srgb,var(--irs-system-rejected) 10%,var(--irs-system-card));
  --line:var(--irs-system-control-border);
  --line-error:color-mix(in srgb,var(--irs-system-rejected) 75%,var(--irs-system-border));
  --shadow:0 2px 8px #131b2c08,0 12px 36px #131b2c0b;
  --radius:10px;--sidebar:248px;--appbar:60px;
  --ui:var(--irs-system-font-ui);--mono:var(--irs-system-font-mono);
}
[data-theme=dark]{color-scheme:dark;--shadow:0 8px 32px #0004}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--paper);color:var(--ink);font:calc(0.9375rem * var(--irs-system-scale))/1.45 var(--ui);overflow:hidden}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--navy);outline-offset:3px}button{border:0;background:transparent}a{color:var(--navy)}svg{display:block}.ui-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}span[data-icon]{display:inline-flex;align-items:center;justify-content:center}.appbar{height:var(--appbar);padding:0 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--rule)}.brand{display:flex;align-items:center;gap:14px;color:var(--ink);text-decoration:none;font-size:calc(1rem * var(--irs-system-scale))}.brand strong{font-weight:600;letter-spacing:-.4px}.brand-symbol{width:28px;height:28px;display:grid;place-items:center;font:600 calc(1.5625rem * var(--irs-system-scale))/1 var(--ui);background:var(--navy);color:var(--on-navy);border-radius:9px;transform:rotate(-8deg)}.brand-divider{height:18px;border-left:1px solid var(--rule);margin:0 2px}.brand>span:last-child{font-size:calc(0.875rem * var(--irs-system-scale));color:var(--muted)}.appbar-end{display:flex;align-items:center;gap:8px}.read-only{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:calc(0.75rem * var(--irs-system-scale));margin-right:16px}.read-only .ui-icon{width:16px;height:16px}.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;color:var(--muted);flex-shrink:0}.icon-button:hover{background:var(--inset);color:var(--ink)}.app-layout{height:calc(100dvh - var(--appbar));display:grid;grid-template-columns:var(--sidebar) 1fr}.library{display:flex;flex-direction:column;min-height:0;padding:24px 16px 16px;border-right:1px solid var(--rule);background:var(--paper)}.library-heading{display:flex;align-items:center;justify-content:space-between;margin:0 8px 16px}.section-label{font-size:calc(0.75rem * var(--irs-system-scale));font-weight:600;color:var(--muted)}.search-field{display:flex;align-items:center;gap:8px;background:var(--inset);border:1px solid transparent;border-radius:8px;padding:9px 10px;margin-bottom:24px;color:var(--tertiary)}.search-field:focus-within{border-color:var(--control)}.search-field .ui-icon{width:16px;height:16px}.search-field input{border:0;background:none;padding:0;min-width:0;width:100%;font-size:calc(0.8125rem * var(--irs-system-scale));outline:0}.search-field input::placeholder{color:var(--tertiary)}kbd{font:calc(0.6875rem * var(--irs-system-scale)) var(--mono);border:1px solid var(--rule);border-radius:3px;padding:0 4px;color:var(--tertiary)}.field-label{font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--tertiary);margin:0 8px 7px}.select-wrap{position:relative;margin-bottom:24px}.select-wrap select{appearance:none;width:100%;border:1px solid var(--rule);border-radius:8px;padding:10px 36px 10px 12px;background:var(--card);font-weight:550;font-size:calc(0.875rem * var(--irs-system-scale))}.select-wrap>span{position:absolute;right:10px;top:12px;pointer-events:none;color:var(--tertiary)}.select-wrap .ui-icon{width:16px;height:16px}.list-heading{display:flex;align-items:center;justify-content:space-between;margin:0 8px 10px}.count-badge{font:calc(0.6875rem * var(--irs-system-scale)) var(--mono);background:var(--inset);padding:2px 6px;border-radius:4px;color:var(--muted)}.flowitem{width:100%;display:flex;align-items:start;gap:10px;padding:12px 10px;border-radius:8px;text-align:left;margin-bottom:6px;border:1px solid transparent}.flowitem:hover{background:var(--inset)}.flowitem.active{background:var(--selected);color:var(--selected-ink)}.flowitem>.ui-icon{margin-top:2px;width:18px;height:18px}.flowitem strong{font-size:calc(0.875rem * var(--irs-system-scale));font-weight:550;display:block;line-height:1.25}.flowitem small{display:block;font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--muted);margin-top:5px}.inventory-note{display:flex;gap:10px;padding:20px 8px;margin-top:20px;border-top:1px solid var(--rule);color:var(--tertiary);font-size:calc(0.75rem * var(--irs-system-scale))}.inventory-note .ui-icon{width:17px;height:17px;margin-top:2px}.inventory-note strong{font-weight:550;color:var(--muted)}.inventory-note p{margin:6px 0 0;line-height:1.55}.library-bottom{display:flex;align-items:center;gap:10px;margin-top:auto;padding:20px 8px 0}.avatar{width:30px;height:30px;display:grid;place-items:center;background:var(--inset);border:1px solid var(--rule);border-radius:50%;font-size:calc(0.75rem * var(--irs-system-scale));color:var(--navy)}.library-bottom strong{display:block;font-size:calc(0.75rem * var(--irs-system-scale));font-weight:550}.library-bottom div>span{display:block;font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--tertiary)}.main{display:flex;flex-direction:column;min-width:0;min-height:0;padding:24px 24px 0}.flow-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;min-height:58px}.title-line{display:flex;align-items:center;gap:8px;min-width:0}.breadcrumbs{display:flex;gap:9px;font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--tertiary);margin-bottom:6px}.breadcrumbs>span:first-child{color:var(--muted)}h1{font-size:calc(1.5rem * var(--irs-system-scale));line-height:1.15;letter-spacing:-.6px;font-weight:600;margin:0}.flow-meta{display:flex;flex-direction:column;gap:6px;align-items:end;white-space:nowrap}.verified{font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--selected-ink);display:flex;align-items:center;gap:5px}.verified .ui-icon{width:14px;height:14px}.date{font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--tertiary)}.workspace{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;background:var(--card);border:1px solid var(--rule);border-radius:12px;overflow:hidden;isolation:isolate}.canvas-toolbar{height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--rule);background:var(--card);gap:10px}.toolbar-title{display:flex;align-items:center;gap:8px;min-width:0;font-size:calc(0.8125rem * var(--irs-system-scale));color:var(--ink);font-weight:550}.toolbar-title>.ui-icon{width:17px;height:17px;color:var(--navy)}.toolbar-separator{height:14px;border-left:1px solid var(--rule);margin:0 4px}#counts{font-size:calc(0.6875rem * var(--irs-system-scale));font-weight:400;color:var(--tertiary);white-space:nowrap}.toolbar-actions{display:flex;align-items:center;gap:8px}.text-button{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border-radius:6px;font-size:calc(0.75rem * var(--irs-system-scale));color:var(--muted)}.text-button .ui-icon{width:16px;height:16px}.text-button:hover{background:var(--inset)}#viewport{flex:1;min-height:0;position:relative;overflow:hidden;touch-action:none;cursor:grab;background:var(--paper)}#viewport:active{cursor:grabbing}#graph{height:100%;width:100%;user-select:none;overflow:hidden}.dot{fill:var(--control);opacity:.23}.marker-normal{fill:var(--line)}.marker-error{fill:var(--line-error)}.connection{fill:none;stroke:var(--line);stroke-width:1.45;marker-end:url(#arrow);transition:opacity .16s}.connection.error{stroke:var(--line-error);marker-end:url(#arrow-error)}.connection.cleanup{stroke-dasharray:5 6}.connection.faded,.edge-label.faded{opacity:.13}.connection.highlight{stroke:var(--navy);stroke-width:2.4}.edge-label{font:calc(0.75rem * var(--irs-system-scale)) var(--ui);fill:var(--muted);paint-order:stroke;stroke:var(--paper);stroke-width:6px;stroke-linejoin:round;pointer-events:none}.node{cursor:pointer}.node .node-body{fill:var(--card);stroke:var(--rule);stroke-width:1.4;filter:url(#node-shadow)}.node:hover .node-body{stroke:var(--control)}.node.selected .node-body{stroke:var(--navy);stroke-width:2.5}.node.selected .node-icon-well{fill:var(--selected)}.node.dim{opacity:.38}.node .node-icon-well{fill:var(--inset)}.node .node-icon{stroke:var(--navy);stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.node.error .node-icon{stroke:var(--error)}.node.error .node-icon-well{fill:var(--error-wash)}.node-kind{font:calc(0.6875rem * var(--irs-system-scale)) var(--ui);fill:var(--tertiary)}.node-title{font:550 calc(0.9375rem * var(--irs-system-scale)) var(--ui);fill:var(--ink)}.port{fill:var(--card);stroke:var(--line);stroke-width:1.5}.node.selected .port{fill:var(--navy);stroke:var(--navy)}.node-index{font:calc(0.625rem * var(--irs-system-scale)) var(--mono);fill:var(--tertiary)}.view-label{position:absolute;top:16px;left:20px;display:flex;align-items:center;gap:7px;font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--tertiary);pointer-events:none}.small-dot{height:5px;width:5px;border-radius:50%;background:var(--navy)}.view-label-divider{height:10px;border-left:1px solid var(--rule);margin:0 3px}.canvas-navigation{position:absolute;bottom:20px;left:20px;display:flex;align-items:center;gap:12px}.zoom-control{display:flex;align-items:center;padding:4px;background:var(--card);border:1px solid var(--rule);border-radius:8px;box-shadow:0 3px 10px #131b2c05}.zoom-control button{height:32px;min-width:32px;display:flex;justify-content:center;align-items:center;border-radius:5px;color:var(--muted)}.zoom-control button:hover{background:var(--inset)}.zoom-control .ui-icon{width:16px;height:16px}.zoom-control #zoomlevel{min-width:48px;font-size:calc(0.6875rem * var(--irs-system-scale));font-variant-numeric:tabular-nums}.control-divider{height:16px;border-left:1px solid var(--rule);margin:0 3px}.navigation-hint{font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--tertiary)}#minimap-button{position:absolute;bottom:20px;right:20px;width:154px;padding:9px 10px 6px;background:var(--card);border:1px solid var(--rule);border-radius:8px;box-shadow:0 3px 10px #131b2c05;text-align:left;color:var(--tertiary)}#minimap-button>span{font-size:calc(0.625rem * var(--irs-system-scale));display:block;margin-bottom:2px}#minimap{width:100%;height:76px}.mini-node{fill:var(--control);opacity:.45}.mini-edge{stroke:var(--line);stroke-width:2;opacity:.22}.mini-node.active{fill:var(--navy);opacity:1}#miniwindow{fill:var(--selected-ink);fill-opacity:.09;stroke:var(--navy);stroke-width:2;pointer-events:none}.canvas-status{height:33px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 16px;background:var(--card);border-top:1px solid var(--rule);font-size:calc(0.625rem * var(--irs-system-scale));color:var(--tertiary)}.legend{display:flex;gap:16px}.legend>span{display:flex;gap:5px;align-items:center}.legend i{width:16px;height:0;border-top:1.5px solid var(--line);display:inline-block}.legend i.line-error{border-color:var(--line-error)}.legend i.line-cleanup{border-top-style:dashed}.context-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:48px;padding:10px 0;font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--tertiary)}#summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:74%}.freshness{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--muted);padding:4px 0}.freshness .ui-icon{width:13px;height:13px}.inspector{position:absolute;z-index:5;top:58px;right:12px;bottom:45px;width:310px;background:var(--card);border:1px solid var(--rule);box-shadow:var(--shadow);border-radius:10px;overflow:auto;padding:16px}.inspector-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.inspector-top .icon-button{width:28px;height:28px}.detail-kind{display:inline-flex;align-items:center;gap:6px;background:var(--selected);color:var(--selected-ink);padding:5px 9px;border-radius:6px;font-size:calc(0.6875rem * var(--irs-system-scale))}.detail-kind .ui-icon{width:14px;height:14px}.inspector h2{font-size:calc(1.375rem * var(--irs-system-scale));line-height:1.15;letter-spacing:-.4px;font-weight:600;margin:12px 0}.inspector p{color:var(--muted);font-size:calc(0.8125rem * var(--irs-system-scale));line-height:1.65;margin:0}.source-block,.connection-block{margin-top:24px;padding-top:20px;border-top:1px solid var(--rule)}.source-block code{font:calc(0.6875rem * var(--irs-system-scale))/1.6 var(--mono);word-break:break-word;display:block;margin:9px 0;color:var(--ink)}.source-block a{font-size:calc(0.75rem * var(--irs-system-scale));display:inline-flex;gap:6px;align-items:center;text-decoration:none}.source-block a:hover{text-decoration:underline}.source-block .ui-icon{width:13px;height:13px}.source-block small{display:block;font-size:calc(0.625rem * var(--irs-system-scale));color:var(--tertiary);margin-top:9px}.neighbor{display:flex;gap:7px;align-items:center;width:100%;text-align:left;color:var(--muted);font-size:calc(0.75rem * var(--irs-system-scale));padding:7px 0}.neighbor:hover{color:var(--navy)}.neighbor .ui-icon{width:14px;height:14px}.connection-block .section-label{display:block;margin-bottom:8px}#empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:var(--paper);padding:32px}.empty-icon{background:var(--inset);padding:18px;border:1px solid var(--rule);border-radius:16px;color:var(--navy)}.empty-icon .ui-icon{height:30px;width:30px}#empty h2{font-size:calc(1.375rem * var(--irs-system-scale));letter-spacing:-.4px;font-weight:550;margin:24px 0 8px;max-width:340px}#empty p{font-size:calc(0.8125rem * var(--irs-system-scale));color:var(--muted);max-width:320px;margin:0 0 24px}.primary-button{border-radius:7px;background:var(--navy);color:var(--on-navy);padding:10px 16px;font-size:calc(0.8125rem * var(--irs-system-scale));font-weight:550}dialog{width:min(520px,calc(100vw - 32px));max-height:80dvh;padding:24px;background:var(--card);color:var(--ink);border:1px solid var(--rule);border-radius:14px;box-shadow:var(--shadow)}dialog::backdrop{background:#131b2c55;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:16px}.dialog-top h2{font-size:calc(1.3125rem * var(--irs-system-scale));font-weight:600;margin:3px 0}#dialog-content{font-size:calc(0.875rem * var(--irs-system-scale));color:var(--muted);line-height:1.65}#dialog-content p{margin:12px 0}#dialog-content a{font-size:calc(0.75rem * var(--irs-system-scale))}.node-list-row{display:flex;align-items:center;gap:12px;padding:12px 0;width:100%;border-bottom:1px solid var(--rule);text-align:left}.node-list-row>span{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:7px;background:var(--inset);color:var(--navy)}.node-list-row strong{font-size:calc(0.875rem * var(--irs-system-scale));font-weight:550;display:block}.node-list-row small{font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--tertiary)}.search-result{display:block;width:100%;text-align:left;padding:10px;border-radius:7px;margin-bottom:3px}.search-result:hover{background:var(--inset)}.search-result strong{display:block;font-size:calc(0.8125rem * var(--irs-system-scale));font-weight:550}.search-result small{font-size:calc(0.6875rem * var(--irs-system-scale));color:var(--tertiary)}#search-results>p{font-size:calc(0.75rem * var(--irs-system-scale));color:var(--tertiary);padding:8px}.workspace.expanded{position:fixed;inset:10px;z-index:50;border-radius:12px;background:var(--card)}[hidden]{display:none!important}.mobile-close,.mobile-library{display:none}@media(max-width:1100px){:root{--sidebar:216px}.main{padding:20px 16px 0}.library{padding:20px 12px 12px}h1{font-size:calc(1.375rem * var(--irs-system-scale))}.navigation-hint{display:none}.flow-meta{gap:4px}.date{display:none}.inspector{width:290px}#summary{max-width:60%}}
@media(max-width:700px){:root{--appbar:54px}.appbar{padding:0 16px}.brand{gap:10px}.brand strong{font-size:calc(1rem * var(--irs-system-scale))}.brand-symbol{height:26px;width:26px;font-size:calc(1.375rem * var(--irs-system-scale))}.brand>span:last-child{font-size:calc(0.75rem * var(--irs-system-scale))}.read-only{font-size:0;margin:0}.read-only .ui-icon{height:17px;width:17px}.appbar-end{gap:0}.icon-button{height:36px;width:36px}.app-layout{display:block}.library{position:fixed;z-index:40;left:0;top:var(--appbar);bottom:0;width:min(320px,85vw);transform:translateX(-100%);transition:transform .18s;box-shadow:var(--shadow)}body.library-open .library{transform:translateX(0)}#scrim{position:fixed;z-index:39;inset:var(--appbar) 0 0;background:#131b2c55}.mobile-close,.mobile-library{display:inline-flex}.library-heading{margin-bottom:14px}.main{height:100%;padding:16px 12px 0}.flow-heading{margin-bottom:16px;gap:8px;min-height:52px}.title-line{gap:5px}.title-line>div{min-width:0}.breadcrumbs{font-size:calc(0.625rem * var(--irs-system-scale));margin-bottom:4px}h1{font-size:calc(1.1875rem * var(--irs-system-scale));line-height:1.15}.flow-meta{display:none}.canvas-toolbar{padding:0 10px;height:44px}.toolbar-title{gap:6px;font-size:calc(0.75rem * var(--irs-system-scale))}.toolbar-separator{margin:0 2px}.toolbar-actions{gap:0}.text-button{padding:8px 7px;font-size:calc(0.6875rem * var(--irs-system-scale))}.text-button .ui-icon{height:15px;width:15px}#counts{font-size:calc(0.625rem * var(--irs-system-scale))}.canvas-navigation{left:12px;bottom:14px}.zoom-control{padding:3px}.zoom-control button{min-width:28px;height:30px}.zoom-control #zoomlevel{min-width:40px}.view-label{left:14px;top:13px;font-size:calc(0.625rem * var(--irs-system-scale))}.view-label-divider,.view-label>span:last-child{display:none}#minimap-button{bottom:70px;right:12px;width:104px;padding:6px 7px}#minimap{height:52px}#minimap-button>span{font-size:calc(0.5625rem * var(--irs-system-scale))}.canvas-status{height:30px;padding:0 10px;font-size:calc(0.5625rem * var(--irs-system-scale))}.legend{gap:10px}.legend i{width:12px}#provenance{max-width:120px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.context-footer{min-height:40px;padding:8px 2px;gap:8px}#summary{display:none}.freshness{font-size:calc(0.625rem * var(--irs-system-scale));margin-left:auto}.inspector{top:auto;left:8px;right:8px;bottom:8px;width:auto;max-height:65%;padding:16px;box-shadow:0 -4px 24px #131b2c18}.inspector-top{margin-bottom:12px}.inspector h2{font-size:calc(1.25rem * var(--irs-system-scale));margin:10px 0}.source-block,.connection-block{margin-top:18px;padding-top:16px}.workspace.expanded{inset:0;border-radius:0}.appbar .icon-button:last-child{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.library{overflow-y:auto;overscroll-behavior:contain}.node:focus-visible{outline:none}.node:focus-visible .node-body{stroke:var(--navy);stroke-width:3}

.search-field input::placeholder,.search-field kbd{color:var(--muted)}

.brand-logo{width:126px;height:28px;object-fit:contain}.dark-logo{display:none}[data-theme=dark] .light-logo{display:none}[data-theme=dark] .dark-logo{display:block}@media(max-width:700px){.brand-logo{width:110px;height:25px}}

/* Profundidade da shell: base, painel, bancada e superfície flutuante. */
:root{
  --shell-base:var(--inset);
  --shell-panel:var(--paper);
  --shell-rim:rgba(255,255,255,.85);
  --shell-seam:rgba(19,27,44,.12);
  --panel-shadow:0 1px 3px rgba(19,27,44,.06),0 8px 24px rgba(19,27,44,.045);
  --bench-shadow:0 2px 4px rgba(19,27,44,.065),0 16px 40px rgba(19,27,44,.065);
  --float-shadow:0 3px 8px rgba(19,27,44,.09),0 20px 48px rgba(19,27,44,.16);
  --well-shadow:inset 0 2px 5px rgba(19,27,44,.055);
  --node-shadow:0 2px 2px rgba(19,27,44,.085);
}
[data-theme=dark]{
  --shell-base:var(--paper);
  --shell-panel:var(--card);
  --shell-rim:rgba(230,225,214,.06);
  --shell-seam:rgba(157,181,236,.14);
  --panel-shadow:0 2px 5px rgba(0,0,0,.2),0 10px 30px rgba(0,0,0,.2);
  --bench-shadow:0 3px 8px rgba(0,0,0,.22),0 20px 48px rgba(0,0,0,.3);
  --float-shadow:0 4px 12px rgba(0,0,0,.35),0 24px 56px rgba(0,0,0,.5);
  --well-shadow:inset 0 3px 8px rgba(0,0,0,.24);
  --node-shadow:0 3px 3px rgba(0,0,0,.3);
}
.appbar{position:relative;z-index:2;background:var(--shell-panel);border-bottom-color:var(--shell-seam);box-shadow:0 2px 8px rgba(19,27,44,.035)}
.app-layout{background:var(--shell-base)}
.library{margin:16px 0 16px 16px;border:1px solid var(--shell-seam);border-radius:12px;background:var(--shell-panel);box-shadow:var(--panel-shadow),inset 0 1px 0 var(--shell-rim)}
.workspace{border-color:var(--shell-seam);border-radius:14px;box-shadow:var(--bench-shadow),inset 0 1px 0 var(--shell-rim)}
.canvas-toolbar{position:relative;z-index:1;box-shadow:0 1px 2px rgba(19,27,44,.025)}
#viewport{box-shadow:var(--well-shadow)}
.search-field{box-shadow:inset 0 1px 3px rgba(19,27,44,.05)}
.select-wrap select{box-shadow:0 1px 2px rgba(19,27,44,.04),inset 0 1px 0 var(--shell-rim)}
.flowitem.active{box-shadow:inset 0 1px 2px rgba(44,63,110,.07),inset 0 -1px 0 var(--shell-rim)}
.node .node-body{filter:drop-shadow(var(--node-shadow))}
.zoom-control,#minimap-button{border-color:var(--shell-seam);box-shadow:0 2px 4px rgba(19,27,44,.06),0 8px 20px rgba(19,27,44,.075),inset 0 1px 0 var(--shell-rim)}
.inspector{border-color:var(--shell-seam);box-shadow:var(--float-shadow),inset 0 1px 0 var(--shell-rim)}
[data-theme=dark] .inspector{background:var(--inset)}
@media(max-width:700px){
  .library{margin:12px 0 12px 12px;top:var(--appbar);bottom:0;border-radius:12px;box-shadow:var(--float-shadow)}
  .workspace{border-radius:12px}
  .workspace.expanded{border-radius:0}
  .inspector{box-shadow:var(--float-shadow),inset 0 1px 0 var(--shell-rim)}
}
@media(max-width:700px){.library{transform:translateX(calc(-100% - 24px))}body.library-open .library{transform:translateX(0)}}

body{font-variant-numeric:tabular-nums lining-nums}h1,.inspector h2{font-weight:650;letter-spacing:-.01em}

/* Metadados de cobertura, sem atribuir status de execução. */
.flowitem .flow-state{display:block;margin-top:5px;font-size:calc(.625rem * var(--irs-system-scale));font-weight:550;color:var(--muted)}
.flowitem.active .flow-state{color:var(--selected-ink)}

/* A categoria comunica natureza; a marca identifica a ferramenta. */
.stack-ai{--stack-color:#B39DFF;--stack-wash:#332957}
.stack-process{--stack-color:#F3BA67;--stack-wash:#42331F}
.stack-system{--stack-color:#9DB5EC;--stack-wash:#253552}
.stack-integration{--stack-color:#6DCFE8;--stack-wash:#193B48}
.stack-data{--stack-color:#E5A5D3;--stack-wash:#442B40}
.stack-infra{--stack-color:#AEBBCC;--stack-wash:#2C3542}
[data-theme=light] .stack-ai{--stack-color:#6842B5;--stack-wash:#EEE6FC}
[data-theme=light] .stack-process{--stack-color:#936018;--stack-wash:#FBEDD7}
[data-theme=light] .stack-system{--stack-color:#2C4D8A;--stack-wash:#E5ECF9}
[data-theme=light] .stack-integration{--stack-color:#086A82;--stack-wash:#DDF3F8}
[data-theme=light] .stack-data{--stack-color:#944875;--stack-wash:#F8E5F1}
[data-theme=light] .stack-infra{--stack-color:#4F6077;--stack-wash:#E8EDF4}
.node .stack-accent{fill:var(--stack-color)}
.node .node-icon-well{fill:var(--stack-wash);stroke:none}
.node .node-icon-well.branded{fill:#FFF;stroke:#0000000C;stroke-width:1}
.node .node-icon{color:var(--stack-color);stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}
.node-category{font-family:var(--ui);font-size:calc(.6875rem * var(--irs-system-scale));font-weight:650;fill:var(--stack-color)}
.node-component{font-family:var(--ui);font-size:calc(.75rem * var(--irs-system-scale));font-weight:550;fill:var(--ink)}
.node .node-kind,.node-provider{font-family:var(--ui);font-size:calc(.625rem * var(--irs-system-scale));font-weight:500;fill:var(--muted)}
.node-provider{fill:var(--stack-color)}
.stack-details{margin-top:20px;padding-top:18px;border-top:1px solid var(--rule)}
.component-row{display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-bottom:1px solid var(--rule)}
.component-row:last-child{border-bottom:0}.component-row>div{min-width:0;flex:1}
.component-mark{width:44px;height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;background:var(--stack-wash);color:var(--stack-color);border-radius:11px}
.component-mark.branded{background:#FFF;border:1px solid #0000000C}.component-mark .ui-icon{width:27px;height:27px}.component-logo{width:30px;height:30px;object-fit:contain}
.component-row strong{display:block;font-size:calc(.9375rem * var(--irs-system-scale));font-weight:600;color:var(--ink)}
.component-meta{display:block;color:var(--stack-color);font-size:calc(.75rem * var(--irs-system-scale));line-height:1.5;margin-top:3px}
.commercial-state{display:inline-block;font-size:calc(.6875rem * var(--irs-system-scale));color:var(--muted);border:1px solid var(--rule);border-radius:4px;padding:2px 6px;margin-top:7px}
.component-row .component-note,.stack-note{font-size:calc(.75rem * var(--irs-system-scale));line-height:1.5;color:var(--muted);margin:8px 0 0}
.stack-proof{display:inline-block;font-size:calc(.75rem * var(--irs-system-scale));margin-top:12px;color:var(--navy)}
.stack-legend{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 6px}
.stack-key{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:7px 9px;background:var(--stack-wash);color:var(--stack-color);font-size:calc(.6875rem * var(--irs-system-scale));font-weight:600}.stack-key .ui-icon{width:16px;height:16px}
@media(max-width:700px){.toolbar-title>.ui-icon{display:none}#counts{max-width:75px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.toolbar-actions .text-button{gap:4px;padding:8px 6px}.toolbar-actions .text-button .ui-icon{width:14px}.component-row{gap:10px}}
@media(max-width:700px){.workspace:has(.inspector:not([hidden])) .view-label{display:none}}
.detail-role{font-size:calc(.6875rem * var(--irs-system-scale));color:var(--muted);margin-left:8px}
.node-list-row .component-mark{width:38px;height:38px;flex-basis:38px}.node-list-row .component-logo{width:27px;height:27px}
.download-link{display:flex;padding:12px 14px;margin:8px 0;border:1px solid var(--rule);border-radius:8px;background:var(--inset);color:var(--navy);text-decoration:none;overflow-wrap:anywhere}.download-link:hover{background:var(--selected)}.coverage-card{padding:14px 0;border-bottom:1px solid var(--rule)}.coverage-card>a{font-weight:600;color:var(--navy)}.coverage-card p{font-size:calc(.75rem * var(--irs-system-scale))}.coverage-card .component-meta{display:block}#dialog-content h3{font-size:calc(1rem * var(--irs-system-scale));color:var(--ink)}
.library{display:flex;flex-direction:column;overflow:hidden}.library>*{flex-shrink:0}#flowlist,#search-results{flex:1 1 auto;min-height:100px;overflow:auto;scrollbar-width:thin}.inventory-note{margin-top:12px!important;padding-top:12px!important}.inventory-note p{margin:5px 0}.inventory-note .text-button{padding:3px 0;min-height:28px}.library-bottom{margin-top:12px!important}#layer{font-size:calc(.75rem * var(--irs-system-scale))}@media(max-width:700px){.inventory-note{margin-top:8px!important;padding-top:8px!important}.inventory-note p{font-size:calc(.6875rem * var(--irs-system-scale))}.library-bottom{display:none}}
.library .field-label{margin-top:12px}.library .list-heading{margin-top:16px}.library .library-heading{margin-bottom:12px}.library .inventory-note{margin-top:8px!important;padding-top:8px!important}.library .inventory-note strong{font-size:calc(.6875rem * var(--irs-system-scale))}.library .library-bottom{margin-top:8px!important}
.library .search-field,.library .select-wrap{margin-bottom:4px}#flowlist,#search-results{min-height:0}@media(max-height:800px){.library-bottom{display:none}}@media(max-height:600px){.library{overflow:auto}#flowlist,#search-results{flex:0 0 auto;max-height:220px}}
