/* === New Task Modal === */ .new-task-modal { min-height: min(520px, 80vh); } /* FNXC:NewTask 2026-06-22-20:30: The New Task dialog is a FLOATING, DRAGGABLE, RESIZABLE, NON-BLOCKING window (mirrors the right-dock pop-out). The overlay MUST out-specify the base `.modal-overlay` (which dims + blurs the page). Both base and override are single-class, so a two-class selector (`.modal-overlay.new-task-modal-overlay`) guarantees the transparent, non-blurring, click-through backdrop regardless of stylesheet order. `pointer-events: none` lets behind-clicks pass through to the app; the floating panel re-enables `pointer-events: auto`. No overlay click-to-dismiss — the header X / Cancel / Escape are the only dismissals. */ .modal-overlay.new-task-modal-overlay { align-items: stretch; justify-content: flex-start; padding: 0; background: transparent; backdrop-filter: none; pointer-events: none; } /* FNXC:FloatingWindow 2026-06-22-21:30: Only the desktop FLOATING New Task dialog joins the shared cross-type floating stack. When the overlay hosts the floating panel, reset the base `.modal-overlay` z-index:100 to auto so it does NOT establish a stacking context; the panel's inline z-index (from floatingWindowStack, 4000+) then interleaves at the root with the terminal, the right-dock pop-out, and FloatingWindow. The mobile full-screen sheet (no `--floating` panel) keeps the base overlay z-index:100 so it still paints above page content. */ .modal-overlay.new-task-modal-overlay:has(.new-task-modal--floating) { z-index: auto; } /* FNXC:NewTask 2026-06-22-20:30: Floating panel positioned by state-driven inline left/top/width/height. min/max keep content usable and the panel on-screen; `resize: none` because the corner/edge handles own resizing (the native grip conflicts with the pointer handlers). `pointer-events: auto` re-enables interaction on the panel only. Desktop only — mobile keeps the full-screen keyboard-aware sheet. */ .new-task-modal--floating { --floating-window-shadow: var(--shadow-lg); position: fixed; display: flex; flex-direction: column; min-width: calc(var(--space-2xl) * 8.75); min-height: calc(var(--space-2xl) * 7.5); max-width: calc(100vw - (var(--space-lg) * 2)); max-height: calc(100dvh - (var(--space-lg) * 2)); resize: none; pointer-events: auto; /* FNXC:FloatingWindow 2026-06-23-23:32: Floating modals share a gentle theme-controlled elevation token. Use the app shadow fallback instead of undefined --shadow-xl so themes can opt out or tune shadow strength consistently across New Task, Terminal, Right Dock, and shared FloatingWindow panels. */ box-shadow: var(--floating-window-shadow, var(--shadow-lg)); } .new-task-modal--floating .modal-body { max-height: none; } /* FNXC:NewTask 2026-06-22-20:30: Header is the drag handle. `touch-action: none` (matching the resize handles) hands the whole gesture to our pointer handlers so a finger drag stays smooth and never scrolls the page behind it. `cursor: grab/grabbing` is desktop-only signal. */ .new-task-modal__header--draggable { cursor: grab; user-select: none; touch-action: none; min-height: 48px; } .new-task-modal__header--draggable:active { cursor: grabbing; } /* FNXC:NewTask 2026-06-22-20:30: Edge + corner resize handles. touch-action:none keeps the drag from being hijacked by scroll/gestures so resizing stays smooth. */ .new-task-resize-handle { position: absolute; z-index: 2; touch-action: none; } .new-task-resize-handle--n, .new-task-resize-handle--s { left: var(--space-sm); right: var(--space-sm); height: var(--space-sm); cursor: ns-resize; } .new-task-resize-handle--n { top: 0; } .new-task-resize-handle--s { bottom: 0; } .new-task-resize-handle--e, .new-task-resize-handle--w { top: var(--space-sm); bottom: var(--space-sm); width: var(--space-sm); cursor: ew-resize; } .new-task-resize-handle--e { right: 0; } .new-task-resize-handle--w { left: 0; } .new-task-resize-handle--ne, .new-task-resize-handle--nw, .new-task-resize-handle--se, .new-task-resize-handle--sw { width: var(--space-lg); height: var(--space-lg); } .new-task-resize-handle--ne { top: 0; right: 0; cursor: nesw-resize; } .new-task-resize-handle--nw { top: 0; left: 0; cursor: nwse-resize; } .new-task-resize-handle--se { bottom: 0; right: 0; cursor: nwse-resize; } .new-task-resize-handle--sw { bottom: 0; left: 0; cursor: nesw-resize; } .new-task-modal .modal-body { padding: var(--space-xl); overflow-y: auto; max-height: calc(80vh - 120px); flex: 1; min-height: 0; } .new-task-modal .form-group { margin-top: 0; margin-bottom: var(--space-xl); padding: 0; } .new-task-modal .form-group:last-of-type { margin-bottom: 0; } .new-task-modal .form-group label { margin-bottom: var(--space-sm); } .new-task-modal .checkbox-label { margin-bottom: var(--space-xs) !important; } .task-form-primary-section { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-sm); } .task-form-primary-section .form-group { margin-bottom: 0; } .task-form-primary-section .description-with-refine { padding: var(--space-sm); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-tertiary); } .task-form-primary-section .description-with-refine textarea { min-height: 120px; padding: var(--space-md) calc(var(--space-2xl) * 2 + var(--space-sm) - var(--space-xs)) var(--space-md) var(--space-md); line-height: 1.5; background: var(--surface); } .task-form-primary-section .description-with-refine.description--fullscreen { padding: var(--space-lg); border: none; background: var(--surface); } .task-form-primary-section .description-with-refine.description--fullscreen textarea { min-height: unset; } .task-form-description-actions { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); width: fit-content; margin-top: 0; margin-bottom: 0; padding: var(--space-sm); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-tertiary); } .task-form-description-actions .btn { border-color: var(--border); align-items: center; gap: var(--space-xs); white-space: nowrap; } .task-form-action-icon { vertical-align: middle; } .task-form-more-options-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-sm) var(--space-xs); margin: 0 0 var(--space-sm); border: none; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; cursor: pointer; transition: color var(--transition-fast), border-color var(--transition-fast); } .task-form-more-options-toggle:hover:not(:disabled) { color: var(--text); border-color: var(--border); } .task-form-more-options-toggle:disabled { opacity: 0.6; cursor: not-allowed; } .task-form-more-options-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring-strong); border-color: var(--todo); } .task-form-more-options-toggle svg { color: var(--text-dim); } .task-form-more-options { margin-left: var(--space-sm); padding-left: var(--space-md); border-left: 1px solid var(--border-subtle); overflow: hidden; max-height: 2400px; opacity: 1; transition: max-height var(--transition-slow), opacity var(--transition-normal), margin-top var(--transition-normal), padding var(--transition-normal), border-color var(--transition-normal); } .task-form-more-options.collapsed { max-height: 0; opacity: 0; pointer-events: none; margin-top: 0; padding-top: 0; padding-bottom: 0; border-left-color: transparent; } .task-form-more-options .form-group { margin-bottom: var(--space-md); } .task-form-more-options .form-group:last-of-type { margin-bottom: 0; } .task-form-more-options .form-group label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.4px; } .task-form-more-options .form-group small { margin-top: var(--space-sm); color: var(--text-muted); } .task-form-more-options .model-select-row { margin-bottom: var(--space-sm); } .new-task-modal .form-group small { display: block; margin-top: var(--space-sm); font-size: 12px; color: var(--text-muted); line-height: 1.4; } .new-task-branch-error { margin: 0 var(--space-xl) var(--space-sm); } .new-task-modal textarea { min-height: calc(var(--space-xl) * 3 + var(--space-md)); transition: height var(--transition-instant); } .selected-deps { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-sm); padding: 0; } .dep-chip { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 12px; color: var(--text); font-family: var(--font-mono); max-width: 100%; } .dep-chip-remove { display: inline-flex; align-items: center; justify-content: center; width: var(--space-lg); height: var(--space-lg); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; line-height: 1; padding: 0; margin-left: var(--space-xs); border-radius: 50%; transition: background var(--transition-instant), color var(--transition-instant); } .dep-chip-remove:hover { color: var(--color-error); background: color-mix(in srgb, var(--color-error) 10%, transparent); } .dep-chip-remove:focus-visible { outline: none; box-shadow: var(--focus-ring-strong); color: var(--color-error); background: color-mix(in srgb, var(--color-error) 10%, transparent); } .model-select-row { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); } .model-select-row:last-child { margin-bottom: 0; } .model-select-label { width: calc(var(--space-xl) * 3); flex-shrink: 0; font-size: 13px; color: var(--text-muted); text-align: right; } /* === Workflow Steps Section (TaskForm & WorkflowResultsTab) === */ .workflow-steps-section { display: flex; flex-direction: column; gap: var(--space-sm); } .workflow-steps-description { margin-bottom: var(--space-xs); display: block; color: var(--text-muted); font-size: var(--space-xs); } .workflow-steps-list { display: flex; flex-direction: column; gap: var(--space-xs); } .workflow-step-item { display: flex; align-items: flex-start; gap: var(--space-sm); } .workflow-step-name { font-weight: 500; font-size: 13px; line-height: 1.4; } .workflow-step-description { font-size: 12px; color: var(--text-muted); margin-top: calc(var(--space-xs) * 0.5); line-height: 1.4; } /* Workflow step reorder controls */ .workflow-step-order { margin-top: var(--space-sm); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-sm); } .workflow-step-order-label { display: block; margin-bottom: var(--space-xs); color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; } .workflow-step-order-item { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-xs) calc(var(--space-xs) * 1.5); border-radius: var(--radius-sm); transition: background var(--transition-fast); } .workflow-step-order-item + .workflow-step-order-item { border-top: 1px solid var(--border-subtle); margin-top: calc(var(--space-xs) * 0.5); padding-top: calc(var(--space-xs) * 1.5); } .workflow-step-order-item:hover { background: var(--card-hover); } .workflow-step-order-number { display: flex; align-items: center; justify-content: center; min-width: calc(var(--space-lg) + var(--space-xs)); height: calc(var(--space-lg) + var(--space-xs)); border-radius: var(--radius-sm); background: var(--bg-tertiary); color: var(--text-muted); font-size: 11px; font-weight: 600; flex-shrink: 0; } .workflow-step-order-name { flex: 1; font-size: 13px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .workflow-step-order-actions { display: flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; } .workflow-step-order-actions .btn-icon { display: flex; align-items: center; justify-content: center; width: var(--space-xl); height: var(--space-xl); padding: 0; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-dim); cursor: pointer; transition: all var(--transition-fast); } @media (hover: hover) { .workflow-step-order-actions .btn-icon:hover:not(:disabled) { background: var(--card-hover); border-color: var(--border); color: var(--text); } } .workflow-step-order-actions .btn-icon:disabled { opacity: 0.3; cursor: not-allowed; } .workflow-step-order-actions .btn-icon:focus-visible { outline: none; box-shadow: var(--focus-ring-strong); border-color: var(--todo); color: var(--text); } @media (max-width: 768px) { .workflow-step-order-actions .btn-icon { width: 36px; height: 36px; } } /* === New Task Modal Quick Fields === */ .new-task-quick-fields { display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-sm) 0; } .new-task-quick-fields .form-group { margin-top: 0; margin-bottom: 0; } .new-task-quick-fields .form-group label { margin-bottom: var(--space-xs); } .new-task-quick-fields .dep-trigger { width: 100%; } @media (max-width: 768px) { /* TaskForm: cap description textarea height on mobile, restore in fullscreen */ .task-form-primary-section .description-with-refine textarea { max-height: 200px; overflow-y: auto; -webkit-overflow-scrolling: touch; } .task-form-primary-section .description-with-refine.description--fullscreen textarea { max-height: unset; } /* New task + task form: stacked mobile fields and bounded popovers */ .new-task-modal { display: flex; flex-direction: column; } .modal.new-task-modal[style*="--keyboard-overlap"] { height: var(--vv-height, 100dvh); max-height: var(--vv-height, 100dvh); transform: translateY(var(--vv-offset-top, 0px)); will-change: transform; } .new-task-modal .modal-body { max-height: unset; overflow-y: auto; flex: 1; min-height: 0; padding: var(--space-md) var(--space-sm); } .new-task-modal .form-group { padding: 0 var(--space-md); } .model-select-row { flex-direction: column; align-items: stretch; gap: var(--space-xs); } .model-select-label { width: auto; text-align: left; } .task-form .dep-dropdown { left: 0; right: 0; max-width: 100%; } .task-form-description-actions { width: 100%; flex-wrap: wrap; gap: var(--space-xs); } .task-form-description-actions .btn { min-height: 36px; flex: 1 1 auto; } .task-form-more-options-toggle { margin: 0 var(--space-md) var(--space-sm); width: calc(100% - var(--space-md) * 2); } .new-task-quick-fields { padding: 0 var(--space-md); } .new-task-branch-error { margin: 0 var(--space-md) var(--space-sm); } .new-task-quick-fields .dep-trigger { width: 100%; min-height: 36px; } .new-task-quick-fields .dep-dropdown { left: 0; right: 0; max-width: 100%; } .task-form-more-options { margin-left: 0; padding-left: 0; border-left: none; } .task-form .checkbox-label { flex-wrap: wrap; } .task-form .checkbox-label > div { flex: 1; min-width: 0; } }