ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
feat(automations): two-column New automation dialog with trigger picker
Juan Denis049235b12d0c
diff --git a/builtin-extensions/serverkit-tramo/frontend/components/AutomationsPage.jsx b/builtin-extensions/serverkit-tramo/frontend/components/AutomationsPage.jsxindex 49e8c1dd..84f5d3af 100644--- a/builtin-extensions/serverkit-tramo/frontend/components/AutomationsPage.jsx+++ b/builtin-extensions/serverkit-tramo/frontend/components/AutomationsPage.jsx@@ -3,7 +3,7 @@ import { useParams, useNavigate } from 'react-router-dom';import {Workflow, RefreshCw, Plus, Trash2, Rocket, Pencil, Play, LayoutTemplate,Server, Power, KeyRound, CheckCircle2, X, Send, Github, MessageSquare,- Zap, ChevronRight,+ Zap, ChevronRight, MousePointerClick, Clock, Webhook, Check,} from 'lucide-react';import api from '@/services/api';import { PageTopbar, Pill } from '@/components/ds';@@ -35,6 +35,33 @@ const TEMPLATE_META = {};const DEFAULT_TEMPLATE_META = { Icon: Zap, brand: 'default', tags: [] };+// Trigger choices for a new workflow. Each seeds a valid builtin tramo trigger+// node so the editor opens with the trigger already placed. Panel events arrive+// at a webhook-trigger on the /sk/events path (the events bridge posts there),+// so no custom node type is needed.+const TRIGGERS = [+ {+ id: 'manual', Icon: MousePointerClick, title: 'Manually trigger',+ subtitle: 'Run it on demand from the Automations page',+ node: () => ({ id: 'trigger', type: 'manual-trigger', position: { x: 80, y: 120 }, config: {} }),+ },+ {+ id: 'schedule', Icon: Clock, title: 'On a schedule',+ subtitle: 'Run on a cron schedule, e.g. every night',+ node: () => ({ id: 'trigger', type: 'cron-trigger', position: { x: 80, y: 120 }, config: { expression: '0 3 * * *' } }),+ },+ {+ id: 'event', Icon: Zap, title: 'On a panel event',+ subtitle: 'React to app, backup, health, or security events',+ node: () => ({ id: 'trigger', type: 'webhook-trigger', position: { x: 80, y: 120 }, config: { path: '/sk/events', method: 'POST' } }),+ },+ {+ id: 'webhook', Icon: Webhook, title: 'Incoming webhook',+ subtitle: 'Trigger from an external HTTP request',+ node: () => ({ id: 'trigger', type: 'webhook-trigger', position: { x: 80, y: 120 }, config: { path: '/hooks/my-hook', method: 'POST' } }),+ },+];+// Run status → Pill colour.const runPill = (status) => {const kind = status === 'succeeded' || status === 'success' ? 'green'@@ -74,6 +101,7 @@ const AutomationsPage = () => {const [wfLoading, setWfLoading] = useState(false);const [newModal, setNewModal] = useState(false);const [newName, setNewName] = useState('');+ const [newTrigger, setNewTrigger] = useState('manual');const [templateModal, setTemplateModal] = useState(false);const [templates, setTemplates] = useState([]);@@ -143,11 +171,21 @@ const AutomationsPage = () => {}, [activeTab, loadWorkflows, loadRuns, loadSettings]);// ── Workflow actions ──+ const openNewModal = () => {+ setNewName('');+ setNewTrigger('manual');+ setNewModal(true);+ };+const handleCreate = async () => {if (!newName.trim()) { toast.error('Name is required.'); return; }+ const trigger = TRIGGERS.find((t) => t.id === newTrigger) || TRIGGERS[0];+ const doc = { name: newName.trim(), nodes: [trigger.node()], edges: [] };setBusy(true);try {- const wf = await api.request('/tramo/workflows', { method: 'POST', body: { name: newName.trim() } });+ const wf = await api.request('/tramo/workflows', {+ method: 'POST', body: { name: newName.trim(), doc },+ });setNewModal(false);setNewName('');toast.success(`Workflow "${wf.name}" created`);@@ -670,7 +708,7 @@ const AutomationsPage = () => {<Button variant="secondary" size="sm" onClick={openTemplateModal}><LayoutTemplate size={14} /> New from template</Button>- <Button variant="default" size="sm" onClick={() => { setNewName(''); setNewModal(true); }}>+ <Button variant="default" size="sm" onClick={openNewModal}><Plus size={14} /> New workflow</Button></>@@ -706,22 +744,87 @@ const AutomationsPage = () => {</div></div>- {/* New workflow modal */}- <Modal open={newModal} onClose={() => setNewModal(false)} title="New workflow">- <div className="form-group">- <Label>Name</Label>- <Input- type="text"- value={newName}- placeholder="Notify on deploy"- onChange={(e) => setNewName(e.target.value)}- onKeyDown={(e) => { if (e.key === 'Enter') handleCreate(); }}- />- <p className="text-muted">You will land on the visual editor to design the flow.</p>- </div>- <div className="modal-footer">- <Button variant="outline" onClick={() => setNewModal(false)}>Cancel</Button>- <Button variant="default" onClick={handleCreate} disabled={busy || !newName.trim()}>Create</Button>+ {/* New workflow modal — two-column: explainer + name/trigger picker */}+ <Modal+ open={newModal}+ onClose={() => setNewModal(false)}+ title="Create an automation"+ size="2xl"+ className="tramo-newflow-modal"+ footer={(+ <>+ <Button variant="outline" onClick={() => setNewModal(false)}>Cancel</Button>+ <Button variant="default" onClick={handleCreate} disabled={busy || !newName.trim()}>+ <Plus size={14} /> Create+ </Button>+ </>+ )}+ >+ <div className="tramo-newflow">+ <aside className="tramo-newflow__hero">+ <span className="tramo-newflow__hero-badge"><Workflow size={26} /></span>+ <div className="tramo-newflow__hero-diagram" aria-hidden="true">+ <span className="tramo-newflow__hero-node"><Zap size={15} /></span>+ <span className="tramo-newflow__hero-line" />+ <span className="tramo-newflow__hero-node"><Workflow size={15} /></span>+ <span className="tramo-newflow__hero-line" />+ <span className="tramo-newflow__hero-node"><Send size={15} /></span>+ </div>+ <h3 className="tramo-newflow__hero-title">Automate the boring parts</h3>+ <p className="tramo-newflow__hero-text">+ Chain triggers and actions on a visual canvas that runs headless+ on the tramo engine. Pick a starting trigger below, then design+ the rest in the editor.+ </p>+ <ul className="tramo-newflow__hero-list">+ <li>Message yourself on Telegram when a backup fails</li>+ <li>Open a GitHub issue on a nightly health check</li>+ <li>Relay any panel event to a Discord channel</li>+ </ul>+ </aside>++ <div className="tramo-newflow__form">+ <div className="form-group">+ <Label>Automation name</Label>+ <Input+ type="text"+ value={newName}+ autoFocus+ placeholder="Notify me when a backup fails"+ onChange={(e) => setNewName(e.target.value)}+ onKeyDown={(e) => { if (e.key === 'Enter' && newName.trim()) handleCreate(); }}+ />+ </div>++ <div className="tramo-newflow__triggers">+ <span className="tramo-newflow__triggers-label">How should it start?</span>+ <div className="tramo-trigger-list" role="radiogroup" aria-label="Trigger">+ {TRIGGERS.map((tr) => {+ const { Icon } = tr;+ const selected = newTrigger === tr.id;+ return (+ <button+ type="button"+ key={tr.id}+ role="radio"+ aria-checked={selected}+ className={`tramo-trigger${selected ? ' is-selected' : ''}`}+ onClick={() => setNewTrigger(tr.id)}+ >+ <span className="tramo-trigger__icon"><Icon size={18} /></span>+ <span className="tramo-trigger__body">+ <span className="tramo-trigger__title">{tr.title}</span>+ <span className="tramo-trigger__sub">{tr.subtitle}</span>+ </span>+ <span className="tramo-trigger__check">+ {selected && <Check size={15} />}+ </span>+ </button>+ );+ })}+ </div>+ </div>+ </div></div></Modal>diff --git a/builtin-extensions/serverkit-tramo/frontend/styles/tramo-automations.scss b/builtin-extensions/serverkit-tramo/frontend/styles/tramo-automations.scssindex 66b06e53..f954e666 100644--- a/builtin-extensions/serverkit-tramo/frontend/styles/tramo-automations.scss+++ b/builtin-extensions/serverkit-tramo/frontend/styles/tramo-automations.scss@@ -309,6 +309,211 @@}}+/* New-automation two-column modal (portaled -> top-level scope). Kill the modal+ body padding so the hero panel can bleed to the dialog edges. */+.tramo-newflow-modal .sk-modal__body { padding: 0; }++.tramo-newflow {+ display: grid;+ grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);+ min-height: 430px;+}++.tramo-newflow__hero {+ padding: 28px 26px;+ display: flex;+ flex-direction: column;+ gap: 14px;+ background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.02));+ border-right: 1px solid var(--border, rgba(128, 128, 128, 0.18));++ &-badge {+ width: 52px;+ height: 52px;+ border-radius: 14px;+ display: grid;+ place-items: center;+ background: rgba(99, 102, 241, 0.16);+ color: var(--accent-bright, #818cf8);+ }++ &-diagram {+ display: flex;+ align-items: center;+ gap: 6px;+ margin: 2px 0 4px;+ }++ &-node {+ flex-shrink: 0;+ width: 30px;+ height: 30px;+ border-radius: 8px;+ display: grid;+ place-items: center;+ background: rgba(128, 128, 128, 0.16);+ color: var(--accent-bright, #818cf8);+ }++ &-line {+ flex: 1;+ max-width: 24px;+ height: 2px;+ border-radius: 2px;+ background: rgba(128, 128, 128, 0.35);+ }++ &-title {+ margin: 0;+ font-size: 15px;+ font-weight: 600;+ }++ &-text {+ margin: 0;+ font-size: 12.5px;+ line-height: 1.5;+ opacity: 0.72;+ }++ &-list {+ margin: 6px 0 0;+ padding: 0;+ list-style: none;+ display: flex;+ flex-direction: column;+ gap: 9px;++ li {+ position: relative;+ padding-left: 20px;+ font-size: 12px;+ line-height: 1.4;+ opacity: 0.78;++ &::before {+ content: '';+ position: absolute;+ left: 4px;+ top: 6px;+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: var(--accent-bright, #818cf8);+ }+ }+ }+}++.tramo-newflow__form {+ padding: 24px 26px;+ display: flex;+ flex-direction: column;+ gap: 18px;+}++.tramo-newflow__triggers {+ display: flex;+ flex-direction: column;+ gap: 10px;++ &-label {+ font-size: 11px;+ font-weight: 600;+ letter-spacing: 0.04em;+ text-transform: uppercase;+ opacity: 0.6;+ }+}++.tramo-trigger-list {+ display: flex;+ flex-direction: column;+ gap: 8px;+}++.tramo-trigger {+ display: flex;+ align-items: center;+ gap: 12px;+ width: 100%;+ text-align: left;+ padding: 11px 13px;+ border-radius: 10px;+ border: 1px solid var(--border, rgba(128, 128, 128, 0.25));+ background: transparent;+ color: inherit;+ cursor: pointer;+ transition: border-color 0.15s ease, background 0.15s ease;++ &:hover {+ border-color: rgba(99, 102, 241, 0.5);+ background: rgba(99, 102, 241, 0.04);+ }++ &.is-selected {+ border-color: var(--accent-bright, #6366f1);+ background: rgba(99, 102, 241, 0.09);+ }++ &__icon {+ flex-shrink: 0;+ width: 34px;+ height: 34px;+ border-radius: 9px;+ display: grid;+ place-items: center;+ background: rgba(128, 128, 128, 0.14);+ color: var(--accent-bright, #818cf8);+ }++ &__body {+ flex: 1;+ min-width: 0;+ display: flex;+ flex-direction: column;+ gap: 2px;+ }++ &__title {+ font-weight: 600;+ font-size: 13.5px;+ }++ &__sub {+ font-size: 12px;+ line-height: 1.35;+ opacity: 0.65;+ }++ &__check {+ flex-shrink: 0;+ width: 20px;+ height: 20px;+ border-radius: 50%;+ display: grid;+ place-items: center;+ border: 1.5px solid var(--border, rgba(128, 128, 128, 0.45));+ color: #fff;+ }++ &.is-selected &__check {+ background: var(--accent-bright, #6366f1);+ border-color: var(--accent-bright, #6366f1);+ }+}++@media (max-width: 640px) {+ .tramo-newflow {+ grid-template-columns: 1fr;+ min-height: 0;+ }++ .tramo-newflow__hero {+ display: none;+ }+}+/* ── Full-bleed editor page (route automations/edit/:slug, layout "full") ── */.tramo-editor-page {height: 100%;diff --git a/frontend/src/plugins/serverkit-tramo/components/AutomationsPage.jsx b/frontend/src/plugins/serverkit-tramo/components/AutomationsPage.jsxindex 49e8c1dd..84f5d3af 100644--- a/frontend/src/plugins/serverkit-tramo/components/AutomationsPage.jsx+++ b/frontend/src/plugins/serverkit-tramo/components/AutomationsPage.jsx@@ -3,7 +3,7 @@ import { useParams, useNavigate } from 'react-router-dom';import {Workflow, RefreshCw, Plus, Trash2, Rocket, Pencil, Play, LayoutTemplate,Server, Power, KeyRound, CheckCircle2, X, Send, Github, MessageSquare,- Zap, ChevronRight,+ Zap, ChevronRight, MousePointerClick, Clock, Webhook, Check,} from 'lucide-react';import api from '@/services/api';import { PageTopbar, Pill } from '@/components/ds';@@ -35,6 +35,33 @@ const TEMPLATE_META = {};const DEFAULT_TEMPLATE_META = { Icon: Zap, brand: 'default', tags: [] };+// Trigger choices for a new workflow. Each seeds a valid builtin tramo trigger+// node so the editor opens with the trigger already placed. Panel events arrive+// at a webhook-trigger on the /sk/events path (the events bridge posts there),+// so no custom node type is needed.+const TRIGGERS = [+ {+ id: 'manual', Icon: MousePointerClick, title: 'Manually trigger',+ subtitle: 'Run it on demand from the Automations page',+ node: () => ({ id: 'trigger', type: 'manual-trigger', position: { x: 80, y: 120 }, config: {} }),+ },+ {+ id: 'schedule', Icon: Clock, title: 'On a schedule',+ subtitle: 'Run on a cron schedule, e.g. every night',+ node: () => ({ id: 'trigger', type: 'cron-trigger', position: { x: 80, y: 120 }, config: { expression: '0 3 * * *' } }),+ },+ {+ id: 'event', Icon: Zap, title: 'On a panel event',+ subtitle: 'React to app, backup, health, or security events',+ node: () => ({ id: 'trigger', type: 'webhook-trigger', position: { x: 80, y: 120 }, config: { path: '/sk/events', method: 'POST' } }),+ },+ {+ id: 'webhook', Icon: Webhook, title: 'Incoming webhook',+ subtitle: 'Trigger from an external HTTP request',+ node: () => ({ id: 'trigger', type: 'webhook-trigger', position: { x: 80, y: 120 }, config: { path: '/hooks/my-hook', method: 'POST' } }),+ },+];+// Run status → Pill colour.const runPill = (status) => {const kind = status === 'succeeded' || status === 'success' ? 'green'@@ -74,6 +101,7 @@ const AutomationsPage = () => {const [wfLoading, setWfLoading] = useState(false);const [newModal, setNewModal] = useState(false);const [newName, setNewName] = useState('');+ const [newTrigger, setNewTrigger] = useState('manual');const [templateModal, setTemplateModal] = useState(false);const [templates, setTemplates] = useState([]);@@ -143,11 +171,21 @@ const AutomationsPage = () => {}, [activeTab, loadWorkflows, loadRuns, loadSettings]);// ── Workflow actions ──+ const openNewModal = () => {+ setNewName('');+ setNewTrigger('manual');+ setNewModal(true);+ };+const handleCreate = async () => {if (!newName.trim()) { toast.error('Name is required.'); return; }+ const trigger = TRIGGERS.find((t) => t.id === newTrigger) || TRIGGERS[0];+ const doc = { name: newName.trim(), nodes: [trigger.node()], edges: [] };setBusy(true);try {- const wf = await api.request('/tramo/workflows', { method: 'POST', body: { name: newName.trim() } });+ const wf = await api.request('/tramo/workflows', {+ method: 'POST', body: { name: newName.trim(), doc },+ });setNewModal(false);setNewName('');toast.success(`Workflow "${wf.name}" created`);@@ -670,7 +708,7 @@ const AutomationsPage = () => {<Button variant="secondary" size="sm" onClick={openTemplateModal}><LayoutTemplate size={14} /> New from template</Button>- <Button variant="default" size="sm" onClick={() => { setNewName(''); setNewModal(true); }}>+ <Button variant="default" size="sm" onClick={openNewModal}><Plus size={14} /> New workflow</Button></>@@ -706,22 +744,87 @@ const AutomationsPage = () => {</div></div>- {/* New workflow modal */}- <Modal open={newModal} onClose={() => setNewModal(false)} title="New workflow">- <div className="form-group">- <Label>Name</Label>- <Input- type="text"- value={newName}- placeholder="Notify on deploy"- onChange={(e) => setNewName(e.target.value)}- onKeyDown={(e) => { if (e.key === 'Enter') handleCreate(); }}- />- <p className="text-muted">You will land on the visual editor to design the flow.</p>- </div>- <div className="modal-footer">- <Button variant="outline" onClick={() => setNewModal(false)}>Cancel</Button>- <Button variant="default" onClick={handleCreate} disabled={busy || !newName.trim()}>Create</Button>+ {/* New workflow modal — two-column: explainer + name/trigger picker */}+ <Modal+ open={newModal}+ onClose={() => setNewModal(false)}+ title="Create an automation"+ size="2xl"+ className="tramo-newflow-modal"+ footer={(+ <>+ <Button variant="outline" onClick={() => setNewModal(false)}>Cancel</Button>+ <Button variant="default" onClick={handleCreate} disabled={busy || !newName.trim()}>+ <Plus size={14} /> Create+ </Button>+ </>+ )}+ >+ <div className="tramo-newflow">+ <aside className="tramo-newflow__hero">+ <span className="tramo-newflow__hero-badge"><Workflow size={26} /></span>+ <div className="tramo-newflow__hero-diagram" aria-hidden="true">+ <span className="tramo-newflow__hero-node"><Zap size={15} /></span>+ <span className="tramo-newflow__hero-line" />+ <span className="tramo-newflow__hero-node"><Workflow size={15} /></span>+ <span className="tramo-newflow__hero-line" />+ <span className="tramo-newflow__hero-node"><Send size={15} /></span>+ </div>+ <h3 className="tramo-newflow__hero-title">Automate the boring parts</h3>+ <p className="tramo-newflow__hero-text">+ Chain triggers and actions on a visual canvas that runs headless+ on the tramo engine. Pick a starting trigger below, then design+ the rest in the editor.+ </p>+ <ul className="tramo-newflow__hero-list">+ <li>Message yourself on Telegram when a backup fails</li>+ <li>Open a GitHub issue on a nightly health check</li>+ <li>Relay any panel event to a Discord channel</li>+ </ul>+ </aside>++ <div className="tramo-newflow__form">+ <div className="form-group">+ <Label>Automation name</Label>+ <Input+ type="text"+ value={newName}+ autoFocus+ placeholder="Notify me when a backup fails"+ onChange={(e) => setNewName(e.target.value)}+ onKeyDown={(e) => { if (e.key === 'Enter' && newName.trim()) handleCreate(); }}+ />+ </div>++ <div className="tramo-newflow__triggers">+ <span className="tramo-newflow__triggers-label">How should it start?</span>+ <div className="tramo-trigger-list" role="radiogroup" aria-label="Trigger">+ {TRIGGERS.map((tr) => {+ const { Icon } = tr;+ const selected = newTrigger === tr.id;+ return (+ <button+ type="button"+ key={tr.id}+ role="radio"+ aria-checked={selected}+ className={`tramo-trigger${selected ? ' is-selected' : ''}`}+ onClick={() => setNewTrigger(tr.id)}+ >+ <span className="tramo-trigger__icon"><Icon size={18} /></span>+ <span className="tramo-trigger__body">+ <span className="tramo-trigger__title">{tr.title}</span>+ <span className="tramo-trigger__sub">{tr.subtitle}</span>+ </span>+ <span className="tramo-trigger__check">+ {selected && <Check size={15} />}+ </span>+ </button>+ );+ })}+ </div>+ </div>+ </div></div></Modal>diff --git a/frontend/src/plugins/serverkit-tramo/styles/tramo-automations.scss b/frontend/src/plugins/serverkit-tramo/styles/tramo-automations.scssindex 66b06e53..f954e666 100644--- a/frontend/src/plugins/serverkit-tramo/styles/tramo-automations.scss+++ b/frontend/src/plugins/serverkit-tramo/styles/tramo-automations.scss@@ -309,6 +309,211 @@}}+/* New-automation two-column modal (portaled -> top-level scope). Kill the modal+ body padding so the hero panel can bleed to the dialog edges. */+.tramo-newflow-modal .sk-modal__body { padding: 0; }++.tramo-newflow {+ display: grid;+ grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);+ min-height: 430px;+}++.tramo-newflow__hero {+ padding: 28px 26px;+ display: flex;+ flex-direction: column;+ gap: 14px;+ background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.02));+ border-right: 1px solid var(--border, rgba(128, 128, 128, 0.18));++ &-badge {+ width: 52px;+ height: 52px;+ border-radius: 14px;+ display: grid;+ place-items: center;+ background: rgba(99, 102, 241, 0.16);+ color: var(--accent-bright, #818cf8);+ }++ &-diagram {+ display: flex;+ align-items: center;+ gap: 6px;+ margin: 2px 0 4px;+ }++ &-node {+ flex-shrink: 0;+ width: 30px;+ height: 30px;+ border-radius: 8px;+ display: grid;+ place-items: center;+ background: rgba(128, 128, 128, 0.16);+ color: var(--accent-bright, #818cf8);+ }++ &-line {+ flex: 1;+ max-width: 24px;+ height: 2px;+ border-radius: 2px;+ background: rgba(128, 128, 128, 0.35);+ }++ &-title {+ margin: 0;+ font-size: 15px;+ font-weight: 600;+ }++ &-text {+ margin: 0;+ font-size: 12.5px;+ line-height: 1.5;+ opacity: 0.72;+ }++ &-list {+ margin: 6px 0 0;+ padding: 0;+ list-style: none;+ display: flex;+ flex-direction: column;+ gap: 9px;++ li {+ position: relative;+ padding-left: 20px;+ font-size: 12px;+ line-height: 1.4;+ opacity: 0.78;++ &::before {+ content: '';+ position: absolute;+ left: 4px;+ top: 6px;+ width: 6px;+ height: 6px;+ border-radius: 50%;+ background: var(--accent-bright, #818cf8);+ }+ }+ }+}++.tramo-newflow__form {+ padding: 24px 26px;+ display: flex;+ flex-direction: column;+ gap: 18px;+}++.tramo-newflow__triggers {+ display: flex;+ flex-direction: column;+ gap: 10px;++ &-label {+ font-size: 11px;+ font-weight: 600;+ letter-spacing: 0.04em;+ text-transform: uppercase;+ opacity: 0.6;+ }+}++.tramo-trigger-list {+ display: flex;+ flex-direction: column;+ gap: 8px;+}++.tramo-trigger {+ display: flex;+ align-items: center;+ gap: 12px;+ width: 100%;+ text-align: left;+ padding: 11px 13px;+ border-radius: 10px;+ border: 1px solid var(--border, rgba(128, 128, 128, 0.25));+ background: transparent;+ color: inherit;+ cursor: pointer;+ transition: border-color 0.15s ease, background 0.15s ease;++ &:hover {+ border-color: rgba(99, 102, 241, 0.5);+ background: rgba(99, 102, 241, 0.04);+ }++ &.is-selected {+ border-color: var(--accent-bright, #6366f1);+ background: rgba(99, 102, 241, 0.09);+ }++ &__icon {+ flex-shrink: 0;+ width: 34px;+ height: 34px;+ border-radius: 9px;+ display: grid;+ place-items: center;+ background: rgba(128, 128, 128, 0.14);+ color: var(--accent-bright, #818cf8);+ }++ &__body {+ flex: 1;+ min-width: 0;+ display: flex;+ flex-direction: column;+ gap: 2px;+ }++ &__title {+ font-weight: 600;+ font-size: 13.5px;+ }++ &__sub {+ font-size: 12px;+ line-height: 1.35;+ opacity: 0.65;+ }++ &__check {+ flex-shrink: 0;+ width: 20px;+ height: 20px;+ border-radius: 50%;+ display: grid;+ place-items: center;+ border: 1.5px solid var(--border, rgba(128, 128, 128, 0.45));+ color: #fff;+ }++ &.is-selected &__check {+ background: var(--accent-bright, #6366f1);+ border-color: var(--accent-bright, #6366f1);+ }+}++@media (max-width: 640px) {+ .tramo-newflow {+ grid-template-columns: 1fr;+ min-height: 0;+ }++ .tramo-newflow__hero {+ display: none;+ }+}+/* ── Full-bleed editor page (route automations/edit/:slug, layout "full") ── */.tramo-editor-page {height: 100%;