.flow-workspace { min-width: 0; }
.flow-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 15; }
.flow-toolbar label { display: flex; align-items: center; gap: 8px; margin: 0; }
.flow-toolbar select { width: auto; max-width: 260px; margin: 0; }
.flow-help { margin: 0; color: #64748b; font-size: 13px; line-height: 1.7; }
.flow-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 24px; align-items: start; min-height: 80px; }
.flow-zone { background: #fff; border: 1px solid #cbd5e1; border-radius: 16px; min-width: 0; overflow: hidden; box-shadow: 0 3px 12px #0f172a05; }
.flow-zone-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; padding: 14px 18px; }
.flow-zone-heading .flow-heading-name > .flow-name { font-size: 17px; font-weight: 700; }
.flow-shelves { display: grid; gap: 15px; padding: 18px; }
.flow-shelf { border: 1.5px dashed #a8b8cd; background: #fafcfe; padding: 12px; border-radius: 10px; min-width: 0; }
.flow-shelf-heading { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.flow-shelf-heading .flow-heading-name > .flow-name { font-weight: 650; }
.flow-heading-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; min-width: 0; }
.flow-heading-note { font-size: 12px; color: #64748b; white-space: pre-wrap; overflow-wrap: anywhere; }
.flow-shelf-heading > .muted, .flow-zone-heading > .muted { flex: none; }
.flow-name { border: 0; border-radius: 6px; background: transparent; color: inherit; padding: 4px 6px; text-align: left; display: inline-flex; align-items: start; gap: 8px; min-width: 0; overflow-wrap: anywhere; white-space: normal; line-height: 1.5; font-size: 14px; cursor: pointer; }
.flow-name:hover, .flow-name:focus-visible { background: #dbeafe; color: #1e40af; }
.flow-name > span { flex: none; color: #94a3b8; }
.flow-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr)); gap: 10px; min-height: 55px; align-items: stretch; }
.flow-box { min-width: 0; padding: 11px 10px; border: 1px solid #dbe4ed; border-radius: 9px; background: #fff; border-left: 3px solid #60a5fa; cursor: grab; }
.flow-box > .flow-name { font-weight: 650; padding: 0 2px 6px; width: 100%; justify-content: space-between; }
.flow-box-meta { color: #64748b; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.flow-box-code { color: #64748b; font: 11px/1.7 ui-monospace, monospace; overflow-wrap: anywhere; }
.flow-view-contents { border: 0; background: transparent; padding: 3px 0; color: #245dd7; font-size: 12px; cursor: pointer; }
.flow-view-contents:hover { text-decoration: underline; }
.flow-box-note { font-size: 12px; color: #475569; margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.flow-empty { color: #94a3b8; font-size: 13px; padding: 10px; margin: 0; align-self: center; }
.flow-shelf .flow-empty { grid-column: 1 / -1; }
.flow-zone [draggable=true], .flow-zone[draggable=true] { cursor: grab; }
.flow-dragging { opacity: .45; }
.flow-drop { background: #eff6ff; outline: 2px solid #3b82f6; outline-offset: 2px; }
.flow-before { outline: 2px solid #3b82f6; box-shadow: -5px 0 0 #3b82f6; }
.flow-box.is-disabled { background: #f8fafc; border-left-color: #94a3b8; }
.flow-menu { position: fixed; z-index: 1500; min-width: 175px; max-width: min(300px, calc(100vw - 16px)); padding: 6px; background: #fff; color: #1e293b; border: 1px solid #dbe4ed; border-radius: 10px; box-shadow: 0 10px 32px #0f172a28; }
.flow-menu-title { padding: 6px 10px 9px; color: #64748b; font-size: 12px; border-bottom: 1px solid #f1f5f9; overflow-wrap: anywhere; }
.flow-menu button { display: block; text-align: left; width: 100%; background: transparent; color: inherit; border: 0; padding: 9px 10px; border-radius: 5px; }
.flow-menu button:hover, .flow-menu button:focus-visible { background: #eff6ff; color: #1d4ed8; }
.flow-menu button[data-choice=delete] { color: #b91c1c; border-top: 1px solid #f1f5f9; }
.flow-contents-modal { width: min(1100px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
.flow-contents-location { overflow-wrap: anywhere; }
.flow-contents-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 16px 0; }
.flow-contents-filters label { margin: 0; flex: 1 1 150px; }
.flow-contents-filters label:first-child { flex: 3 1 260px; }
.flow-contents-filters input, .flow-contents-filters select { margin-bottom: 0; }
.flow-contents-filters button { margin-bottom: 0; }
.flow-contents-results { min-height: 160px; }
.flow-contents-results table { min-width: 720px; }
.flow-contents-results td { vertical-align: top; overflow-wrap: anywhere; max-width: 300px; }
.flow-contents-results td small { display: block; color: #64748b; font-size: 12px; }
.flow-status { border-left: 3px solid #f59e0b; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flow-reference { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 12px; padding-top: 12px; }
.flow-reference article { border: 1px solid #e2e8f0; padding: 12px; border-radius: 8px; overflow-wrap: anywhere; }
.flow-reference p { white-space: pre-wrap; }
.flow-reference img { max-width: 100%; height: auto; display: block; margin-top: 10px; }
.flow-workspace details > summary { cursor: pointer; font-weight: 600; }
.flow-workspace details .table-wrap { margin-top: 12px; }
@media (max-width: 650px) { .flow-shelves { padding: 10px; } .flow-zone-heading { padding: 10px; } .flow-toolbar select { max-width: 190px; } }
