/* Siam2Dev-UML 2.2.0.13 — Flow Canvas visual system, scoped to flow theme.
   This changes the editing workspace UI, never Project data or UML model geometry. */
html[data-ui-theme="flow"]{
 --ui-bg:#06182b;--ui-panel:#0c253d;--ui-panel-alt:#153752;
 --ui-text:#eaf6ff;--ui-muted:#a8c7df;--ui-border:#315b77;
 --ui-accent:#38c8f2;--ui-hover:#215071;--ui-input:#092039;
 --ui-shadow:rgba(0,9,23,.46);--canvas-bg:#071c31;--canvas-grid:#21445d;
 --bg:#06182b;--sidebar:#0c253d;--line:#315b77;--ink:#eaf6ff;--muted:#a8c7df;--accent:#38c8f2;
 color-scheme:dark;
}
html[data-ui-theme="flow"] .top,
html[data-ui-theme="flow"] .top-row,
html[data-ui-theme="flow"] .bottom{
 background:linear-gradient(135deg,#0a2239,#102c47 65%,#0b2540)!important;
 border-color:#315b77!important;
}
html[data-ui-theme="flow"] .panel.left,
html[data-ui-theme="flow"] .panel.right{
 background:#0a233a!important;border-color:#315b77!important;
}
html[data-ui-theme="flow"] .left-tab-bar{background:#0a2138!important}
html[data-ui-theme="flow"] .top button,
html[data-ui-theme="flow"] .top .menu-drop summary,
html[data-ui-theme="flow"] .left button:not(.active),
html[data-ui-theme="flow"] .right button:not(.active){
 border-color:#345b78!important;border-radius:9px;
}
html[data-ui-theme="flow"] .top button.active,
html[data-ui-theme="flow"] .left button.active,
html[data-ui-theme="flow"] .left button[aria-selected="true"]{
 background:linear-gradient(135deg,#12aacc,#2ac7dc)!important;
 color:#06233a!important;border-color:#6be7fa!important;
}
html[data-ui-theme="flow"] .left .project-explorer,
html[data-ui-theme="flow"] .left .workflow-overview,
html[data-ui-theme="flow"] .left .up-phase,
html[data-ui-theme="flow"] .right .inspector-section,
html[data-ui-theme="flow"] .right .tip{
 border-radius:12px!important;border-color:#2f5573!important;
 box-shadow:0 6px 16px rgba(0,8,22,.15);
}
html[data-ui-theme="flow"] .work{background:#071c31!important}
html[data-ui-theme="flow"] .workspace{background:#071c31!important}
/* SVG grid: preserve the diagram element colors, recolor the grid and link geometry only. */
html[data-ui-theme="flow"] #canvas #grid path{stroke:#204965!important;stroke-width:1}
html[data-ui-theme="flow"] #canvas #background{fill:url(#grid)!important}
html[data-ui-theme="flow"] #canvas #edges .connector:not(.selected){stroke:#8caee7!important}
html[data-ui-theme="flow"] #canvas #edges .connector.selected{stroke:#ffbb64!important}
html[data-ui-theme="flow"] #canvas #openArrow path,
html[data-ui-theme="flow"] #canvas #arrow path,
html[data-ui-theme="flow"] #canvas #triangle path,
html[data-ui-theme="flow"] #canvas #diamond path{stroke:#8caee7!important}
html[data-ui-theme="flow"] #canvas #arrow path,
html[data-ui-theme="flow"] #canvas #diamondSolid path{fill:#8caee7!important;stroke:#8caee7!important}
html[data-ui-theme="flow"] .minimap{background:#0c2a44!important;border:1px solid #396989!important;border-radius:12px;box-shadow:0 8px 22px #00111d88}
html[data-ui-theme="flow"] .canvas-scroll-hint,
html[data-ui-theme="flow"] .canvas-context-label{background:#0b2a44!important;color:#daedfb!important;border:1px solid #3b6580!important;border-radius:9px}
html[data-ui-theme="flow"] .menu-entries{border-radius:12px!important;box-shadow:0 18px 42px #0008!important}
html[data-ui-theme="flow"] .sheets-bar{border-top:1px solid #315b77!important}
html[data-ui-theme="flow"] :is(button,input,select,textarea):focus-visible{outline:2px solid #5edcf8!important;outline-offset:2px}
/* Keep white/light canvas as an accessibility choice; user's canvas selection overrides theme. */
html[data-ui-theme="flow"][data-canvas-scheme="white"] .work,
html[data-ui-theme="flow"][data-canvas-scheme="white"] .workspace{background:#fff!important}
html[data-ui-theme="flow"][data-canvas-scheme="soft"] .work,
html[data-ui-theme="flow"][data-canvas-scheme="soft"] .workspace{background:#f3f8fe!important}
html[data-ui-theme="flow"][data-canvas-scheme="white"] #canvas #grid path,
html[data-ui-theme="flow"][data-canvas-scheme="soft"] #canvas #grid path{stroke:#d9e4ef!important}
html[data-ui-theme="flow"][data-canvas-scheme="white"] #canvas #edges .connector:not(.selected),
html[data-ui-theme="flow"][data-canvas-scheme="soft"] #canvas #edges .connector:not(.selected){stroke:#465a72!important}
@media(max-width:700px){html[data-ui-theme="flow"] .top{background:#0b263e!important}}
