import { chromium } from 'playwright';
const b = await chromium.launch({ executablePath:'/usr/bin/chromium-browser', args:['--no-sandbox'] });
const ctx = await b.newContext({ viewport:{ width:390, height:1100 }, deviceScaleFactor:1.5, serviceWorkers:'block' });
await ctx.addInitScript(()=>{localStorage.setItem('sz_theme','dark');localStorage.setItem('sz_accent','green');});
const p = await ctx.newPage();
await p.goto('https://poly-dev.szhub.space/wallet', { waitUntil:'domcontentloaded', timeout:35000 });
await p.waitForTimeout(5000);
const has = await p.evaluate(()=>!!document.querySelector('.pk-wallet'));
const titleFont = await p.evaluate(()=>{const e=document.querySelector('.pk-wallet .more-title');return e?getComputedStyle(e).fontFamily:'none';});
await p.screenshot({ path:'_wallet.png' });
console.log('pk-wallet:', has, '| title:', titleFont);
await b.close();