/* --- v1: подсветка PowerShell по ролям токенов (тёмная тема) --- */
#highlight .tok-kw    { color: #c4b5fd; font-weight: 600; }   /* if/foreach/function/param */
#highlight .tok-cmd   { color: #f0abfc; }                      /* командлеты и функции: Get-Item, Write-Host */
#highlight .tok-fn    { color: #7dd3fc; }                      /* свои функции и вызовы методов .Where() */
#highlight .tok-param { color: #a5b4fc; }                      /* параметры: -Path, -Recurse */
#highlight .tok-op    { color: #f472b6; }                      /* операторы: -eq, -like, -and, -f */
#highlight .tok-type  { color: #5eead4; }                      /* типы и приведения: [string], [int] */
#highlight .tok-var   { color: #93c5fd; }                      /* переменные: $x */
#highlight .tok-scope { color: #fdba74; }                      /* области: $script:, $global:, $using: */
#highlight .tok-env   { color: #fcd34d; }                      /* переменные среды: $env:PATH */
#highlight .tok-auto  { color: #bfdbfe; font-style: italic; }   /* автоматические: $_, $true, $null */
#highlight .tok-num   { color: #fbbf24; }                      /* числа: 42, 0x1F, 10kb */
#highlight .tok-str   { color: #86efac; }                      /* строки, включая here-string */
#highlight .tok-com   { color: #6b7280; font-style: italic; }   /* комментарии # и <# #> */

/* светлая тема — цвета как в привычных IDE */
html[data-theme="light"] #highlight .tok-kw    { color: #0033b3 !important; font-weight: 600; }
html[data-theme="light"] #highlight .tok-cmd   { color: #7c3aed !important; }
html[data-theme="light"] #highlight .tok-fn    { color: #0b6e99 !important; }
html[data-theme="light"] #highlight .tok-param { color: #1a4fa0 !important; }
html[data-theme="light"] #highlight .tok-op    { color: #b3194b !important; }
html[data-theme="light"] #highlight .tok-type  { color: #0d7a6b !important; }
html[data-theme="light"] #highlight .tok-var   { color: #0f6f9c !important; }
html[data-theme="light"] #highlight .tok-scope { color: #a34d00 !important; }
html[data-theme="light"] #highlight .tok-env   { color: #8a5a00 !important; }
html[data-theme="light"] #highlight .tok-auto  { color: #1c5fa8 !important; font-style: italic; }
html[data-theme="light"] #highlight .tok-num   { color: #1750eb !important; }
html[data-theme="light"] #highlight .tok-str   { color: #067d17 !important; }
html[data-theme="light"] #highlight .tok-com   { color: #8c8c8c !important; font-style: italic; }
