--- a/includes/transports/teamsadaptiveflow.inc.php
+++ b/includes/transports/teamsadaptiveflow.inc.php
@@ -11,6 +11,7 @@
  */
 
 // Single-file transport: teamsadaptiveflow
+// Card layout: colored header by alert state (red alert / green recovery / blue info).
 global $definitions;
 
 $definitions['transports']['teamsadaptiveflow'] = [
@@ -23,6 +24,34 @@
         ],
     ],
 
+    // Map alert state to Adaptive Card container style / text color
+    'preprocessing' => [
+        'field_transforms' => [
+            'CARD_STYLE' => [
+                'source' => 'ALERT_STATE',
+                'action' => 'map',
+                'map'    => [
+                    'ALERT'          => 'attention', // Red
+                    'ALERT REMINDER' => 'attention', // Red
+                    'RECOVER'        => 'good',      // Green
+                    'OK'             => 'good',      // Green
+                    'default'        => 'accent',    // Blue (SYSLOG, info, etc)
+                ]
+            ],
+            'CARD_COLOR' => [
+                'source' => 'ALERT_STATE',
+                'action' => 'map',
+                'map'    => [
+                    'ALERT'          => 'Attention',
+                    'ALERT REMINDER' => 'Attention',
+                    'RECOVER'        => 'Good',
+                    'OK'             => 'Good',
+                    'default'        => 'Accent',
+                ]
+            ],
+        ]
+    ],
+
     'notification' => [
         'method' => 'POST',
         'request_format' => 'json',
@@ -37,52 +66,117 @@
                         'type' => 'AdaptiveCard',
                         '$schema' => 'http://adaptivecards.io/schemas/adaptive-card.json',
                         'version' => '1.5',
+                        'msteams' => ['width' => 'Full'],
                         'body' => [
+                            // Colored header
                             [
-                                'type' => 'TextBlock',
-                                'size' => 'Large',
-                                'weight' => 'Bolder',
-                                'text' => '**🔔 %ALERT_STATE_NAME%: [%DEVICE_HOSTNAME%] %ALERT_MESSAGE%**',
-                                'wrap' => true
-                            ],
-                            [
-                                'type' => 'TextBlock',
-                                'text' => "Entity: %ENTITY_NAME%\n%MEASURED_INFO%",
-                                'wrap' => true
-                            ],
-                            [
-                                'type' => 'FactSet',
-                                'facts' => [
-                                    ['title' => 'Status', 'value' => '%ALERT_STATE_NAME%'],
-                                    ['title' => 'Description', 'value' => '%ENTITY_DESCRIPTION%'],
-                                    ['title' => 'Metrics', 'value' => '%METRICS%'],
+                                'type'  => 'Container',
+                                'style' => '%CARD_STYLE%',
+                                'bleed' => true,
+                                'items' => [
+                                    [
+                                        'type' => 'ColumnSet',
+                                        'columns' => [
+                                            [
+                                                'type'  => 'Column',
+                                                'width' => 'stretch',
+                                                'verticalContentAlignment' => 'Center',
+                                                'items' => [
+                                                    [
+                                                        'type'   => 'TextBlock',
+                                                        'text'   => '%ALERT_EMOJI% %ALERT_STATE_NAME%',
+                                                        'size'   => 'Small',
+                                                        'weight' => 'Bolder',
+                                                        'color'  => '%CARD_COLOR%',
+                                                        'wrap'   => true,
+                                                    ],
+                                                ],
+                                            ],
+                                            [
+                                                'type'  => 'Column',
+                                                'width' => 'auto',
+                                                'verticalContentAlignment' => 'Center',
+                                                'items' => [
+                                                    [
+                                                        'type'     => 'TextBlock',
+                                                        'text'     => '%ALERT_SEVERITY%',
+                                                        'size'     => 'Small',
+                                                        'isSubtle' => true,
+                                                        'horizontalAlignment' => 'Right',
+                                                    ],
+                                                ],
+                                            ],
+                                        ],
+                                    ],
+                                    [
+                                        'type'    => 'TextBlock',
+                                        'text'    => '%ALERT_MESSAGE%',
+                                        'size'    => 'Large',
+                                        'weight'  => 'Bolder',
+                                        'spacing' => 'Small',
+                                        'wrap'    => true,
+                                    ],
+                                    [
+                                        'type'     => 'TextBlock',
+                                        'text'     => '%DEVICE_HOSTNAME% · %ENTITY_NAME%',
+                                        'isSubtle' => true,
+                                        'spacing'  => 'None',
+                                        'wrap'     => true,
+                                    ],
+                                ],
+                            ],
+                            // Alert details
+                            [
+                                'type'    => 'FactSet',
+                                'spacing' => 'Medium',
+                                'facts'   => [
+                                    ['title' => 'Entity',     'value' => '%ENTITY_DESCRIPTION%'],
+                                    ['title' => 'Metrics',    'value' => '%METRICS%'],
                                     ['title' => 'Conditions', 'value' => '%CONDITIONS%'],
-                                    ['title' => 'Device', 'value' => '%DEVICE_HOSTNAME%'],
+                                    ['title' => 'Duration',   'value' => '%DURATION%'],
+                                ],
+                            ],
+                            // Device details
+                            [
+                                'type'      => 'FactSet',
+                                'separator' => true,
+                                'spacing'   => 'Medium',
+                                'facts'     => [
+                                    ['title' => 'Device',   'value' => '%DEVICE_HOSTNAME%'],
+                                    ['title' => 'Hardware', 'value' => '%DEVICE_HARDWARE%'],
                                     ['title' => 'Location', 'value' => '%DEVICE_LOCATION%'],
-                                    ['title' => 'Uptime', 'value' => '%DEVICE_UPTIME%']
-                                ]
+                                    ['title' => 'Uptime',   'value' => '%DEVICE_UPTIME%'],
+                                ],
                             ],
                             [
-                                'type' => 'TextBlock',
-                                'text' => '%message%',
-                                'wrap' => true
-                            ]
+                                'type'     => 'TextBlock',
+                                'text'     => 'Observium · %ALERT_NAME% · %ALERT_TIMESTAMP%',
+                                'size'     => 'Small',
+                                'isSubtle' => true,
+                                'spacing'  => 'Medium',
+                                'wrap'     => true,
+                            ],
                         ],
                         'actions' => [
                             [
-                                'type' => 'Action.OpenUrl',
+                                'type'  => 'Action.OpenUrl',
                                 'title' => 'Open Device',
-                                'url' => '%DEVICE_URL%'
+                                'url'   => '%DEVICE_URL%',
                             ],
                             [
-                                'type' => 'Action.OpenUrl',
-                                'title' => 'Edit Alert',
-                                'url' => '%ALERT_URL%'
-                            ]
-                        ]
-                    ]
-                ]
-            ]
+                                'type'  => 'Action.OpenUrl',
+                                'title' => 'Open Entity',
+                                'url'   => '%ENTITY_URL%',
+                            ],
+                            [
+                                'type'  => 'Action.OpenUrl',
+                                'title' => 'Alert Details',
+                                'url'   => '%ALERT_URL%',
+                            ],
+                        ],
+                    ],
+                ],
+            ],
         ],
 
         'response_format' => 'raw',
