import { escapeHtml } from "../../html.ts"; export const PAGE_CSS = `body{font-family:system-ui,sans-serif;max-width:640px;margin:2rem auto;padding:0 1rem;color:#1b2430} button{background:#183e78;color:#fff;border:0;border-radius:6px;padding:.6rem 1.2rem;font-size:1rem;cursor:pointer} fieldset{margin:1rem 0;border:1px solid #ccd3de;border-radius:6px}h1{font-size:1.4rem}.err{color:#b00020}`; /** Страница кандидата: вся логика во внешнем скрипте (CSP без inline). Токен — из пути. */ export function renderTestPage(token: string): string { return ` Тест кандидата

Тест кандидата

Загрузка…
`; } export const PAGE_JS = `(function(){ var app=document.getElementById("app");var token=app.dataset.token;var base="/api/hr/test/"+encodeURIComponent(token); function el(t,x,c){var e=document.createElement(t);if(x)e.textContent=x;if(c)e.className=c;return e} function show(){app.textContent="";for(var i=0;i