$ErrorActionPreference = 'Stop' $root = Split-Path $PSScriptRoot -Parent $page = [System.IO.File]::ReadAllText((Join-Path $root 'pages/tree/t01-tree-overview.vue'), [System.Text.Encoding]::UTF8) foreach ($selector in @('.tree-state-card','.member-action-profile','.member-action-profile__copy')) { $escaped = [regex]::Escape($selector) if ($page -match "(?s)$escaped\s*\{[^}]*position\s*:\s*(absolute|fixed|sticky)\s*;") { throw "T01 normal sheet/state content uses positioning: $selector" } } Write-Output 'T01-SHEET-STATE-DOCUMENT-FLOW-CONTRACT PASS'