:host { display: flex; flex: 1 1 auto; width: 100%; height: 100%; min-width: 0; min-height: 0; } .flow-editor-main { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.96)), radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 24%); } .flow-editor-canvas-shell { display: flex; flex: 1 1 auto; min-width: 0; overflow: hidden; flex-direction: column; } .flow-editor-canvas { flex: 1 1 auto; min-height: 0; } .flow-editor-assistant { display: flex; position: relative; flex-direction: column; flex: 0 0 380px; align-self: stretch; width: 380px; min-width: 320px; max-width: 420px; height: auto; min-height: 0; background: #fff; overflow: hidden; transition: width 180ms ease, flex-basis 180ms ease, min-width 180ms ease; } .flow-editor-side-rail { position: absolute; top: 60px; right: 12px; z-index: 4; display: inline-flex; flex-direction: column; gap: 8px; } .flow-editor-side-rail-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 14px; background: rgba(255, 255, 255, 0.94); color: #334155; box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08); } .flow-editor-side-rail-button-active { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; } .flow-editor-side-rail-button:disabled { opacity: 0.48; color: #94a3b8; box-shadow: none; } .flow-editor-side-rail-badge { position: absolute; top: -4px; right: -4px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; } .flow-editor-assistant-collapsed { flex: 0 0 72px; width: 72px; min-width: 72px; } .flow-editor-assistant-toggle { position: absolute; top: 12px; right: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #0f172a; font-size: 12px; font-weight: 700; box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1); } .flow-editor-assistant-collapsed .flow-editor-assistant-toggle { right: 50%; transform: translateX(50%); padding: 10px; } .flow-editor-assistant-collapsed .flow-editor-assistant-toggle span { display: none; } .flow-editor-empty { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 32px; text-align: center; color: #475569; } .flow-editor-empty h2 { margin: 0; font-size: 28px; font-weight: 800; color: #0f172a; } .flow-editor-empty p { margin: 0; max-width: 420px; line-height: 1.5; } .flow-editor-empty-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 6px; } .flow-editor-create-ai-backdrop { position: fixed; inset: 0; z-index: 1300; background: rgba(15, 23, 42, 0.42); } .flow-editor-create-ai-modal { position: fixed; left: 50%; top: 50%; z-index: 1301; display: flex; flex-direction: column; width: min(760px, calc(100vw - 32px)); height: min(720px, calc(100vh - 48px)); transform: translate(-50%, -50%); overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.36); border-radius: 18px; background: #ffffff; box-shadow: 0 30px 70px rgba(15, 23, 42, 0.34); } .flow-editor-create-ai-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px 14px; border-bottom: 1px solid #e2e8f0; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); } .flow-editor-create-ai-eyebrow { margin-bottom: 4px; color: #0f766e; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; } .flow-editor-create-ai-title { margin: 0; color: #0f172a; font-size: 22px; font-weight: 800; line-height: 1.1; } .flow-editor-create-ai-window-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; } .flow-editor-create-ai-close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #cbd5e1; border-radius: 999px; background: #ffffff; color: #475569; } .flow-editor-create-ai-close:hover { background: #f1f5f9; } .flow-editor-create-ai-close:disabled { border-color: #e2e8f0; background: #f8fafc; color: #cbd5e1; cursor: not-allowed; opacity: 0.72; box-shadow: none; } .flow-editor-create-ai-close:disabled:hover { background: #f8fafc; } .flow-editor-create-ai-close .mat-icon { width: 18px; height: 18px; font-size: 18px; } .flow-editor-create-ai-assistant { min-height: 0; flex: 1 1 auto; } .flow-editor-create-ai-floating { position: fixed; right: 24px; bottom: 24px; z-index: 1299; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 48px); min-height: 44px; padding: 10px 14px; border: 1px solid rgba(14, 116, 144, 0.28); border-radius: 999px; background: #ffffff; color: #0f172a; box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22); font-size: 13px; font-weight: 800; } .flow-editor-create-ai-floating:hover { background: #f8fafc; } .flow-editor-create-ai-floating .mat-icon { width: 18px; height: 18px; font-size: 18px; color: #0f766e; } .flow-editor-tour-target { height: 100%; } .flow-editor-tour-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.46); z-index: 1500; } .flow-editor-tour-spotlight { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.18), 0 0 0 3px rgba(255, 255, 255, 0.9), 0 18px 36px rgba(15, 23, 42, 0.18); z-index: 1501; pointer-events: none; } .flow-editor-tour-card { position: fixed; width: min(320px, calc(100vw - 32px)); padding: 18px; border-radius: 18px; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border: 1px solid rgba(148, 163, 184, 0.35); box-shadow: 0 24px 48px rgba(15, 23, 42, 0.24); z-index: 1502; } .flow-editor-tour-step { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #0f766e; } .flow-editor-tour-title { margin: 8px 0 6px; font-size: 20px; font-weight: 800; color: #0f172a; } .flow-editor-tour-text { margin: 0; font-size: 14px; line-height: 1.5; color: #334155; } .flow-editor-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; } .flow-editor-tour-actions-right { display: flex; align-items: center; gap: 8px; } @media (max-width: 1100px) { .flow-editor-main { flex-direction: column; } .flow-editor-assistant { flex: 0 0 auto; width: 100%; max-width: none; min-width: 0; height: 42vh; } .flow-editor-assistant-collapsed { width: 72px; min-width: 72px; height: 42vh; } .flow-editor-tour-card { left: 16px !important; right: 16px; width: auto; } }