#workflowRunner .workflow-visual-field { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
#workflowRunner .workflow-visual-field legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
#workflowRunner .workflow-visual-options { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
#workflowRunner .workflow-visual-option { position: relative; min-width: 0; cursor: pointer; scroll-snap-align: start; }
#workflowRunner .workflow-visual-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#workflowRunner .workflow-visual-option-body { display: flex; flex-direction: column; border: 1px solid #dfe3ec; border-radius: 8px; background: #fff; overflow: hidden; transition: border-color 150ms, background 150ms; }
#workflowRunner .workflow-visual-image { display: grid; place-items: center; aspect-ratio: 1; background: #f3f5f8; padding: 4px; }
#workflowRunner .workflow-visual-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
#workflowRunner .workflow-visual-image > span { color: #7b8597; font-size: 12px; }
#workflowRunner .workflow-visual-option-name { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 44px; padding: 8px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
#workflowRunner .workflow-visual-check { visibility: hidden; width: 16px; height: 16px; flex: 0 0 16px; color: #6354ed; }
#workflowRunner .workflow-visual-option input:checked + .workflow-visual-option-body { border-color: #6855f3; background: #f4f1ff; box-shadow: 0 0 0 1px #6855f3; }
#workflowRunner .workflow-visual-option input:checked + .workflow-visual-option-body .workflow-visual-check { visibility: visible; }
#workflowRunner .workflow-visual-option input:focus-visible + .workflow-visual-option-body { outline: 2px solid #4c3ed2; outline-offset: 2px; }
#workflowRunner .workflow-optional-settings { border-top: 1px solid #e5e8ef; margin-top: 18px; padding-top: 4px; }
#workflowRunner .workflow-optional-settings > summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 14px; color: #58657a; overflow-wrap: anywhere; }
#workflowRunner .workflow-optional-settings > summary span { margin-left: 8px; color: #788498; font-size: 12px; }
#workflowRunner .workflow-optional-settings .workflow-skill-field { max-width: 100%; }
#workflowRunner .workflow-model-panel > .workflow-optional-settings { margin: 0; border: 0; }
#workflowRunner .workflow-model-panel .workflow-panel-heading { margin-top: 8px; }
#workflowRunner .workflow-runner-cost { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; color: #58657a; font-size: 13px; line-height: 1.5; margin: 0; }
#workflowRunner .workflow-runner-cost strong { color: #182338; white-space: nowrap; font-size: 14px; }
#workflowRunner .workflow-runner-footer { flex-wrap: wrap; gap: 8px; }
#workflowRunner .workflow-runner-footer .workflow-runner-start { width: 100%; margin-top: 0; }
.workflow-option-manager { margin: 18px 0; padding: 12px 0; border-top: 1px solid #e1e5eb; border-bottom: 1px solid #e1e5eb; }
.workflow-option-manager > h3 { margin: 0 0 8px; font-size: 16px; }
.workflow-option-manager > p { font-size: 13px; color: #64748b; margin: 0 0 12px; }
.workflow-option-manager > details > summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 600; }
.workflow-option-upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; padding: 4px 0 16px; }
.workflow-option-upload { min-width: 0; }
.workflow-option-upload > strong { display: block; font-size: 13px; min-height: 32px; overflow-wrap: anywhere; }
.workflow-option-upload .upload-dropzone { display: grid; place-items: center; position: relative; width: 100%; aspect-ratio: 1; min-height: 0; border: 1px dashed #bbc5d6; border-radius: 8px; background: #f8fafc; cursor: pointer; padding: 6px; }
.workflow-option-upload .upload-dropzone img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.workflow-option-upload .upload-dropzone > span { color: #64748b; font-size: 13px; }
.workflow-option-upload .upload-dropzone [hidden] { display: none; }
.workflow-option-upload > button { min-height: 40px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { #workflowRunner .workflow-visual-option-body { transition: none; } }
