*{box-sizing:border-box}body{color:#171714;background:#f4f2ed;margin:0;font:15px Inter,system-ui,sans-serif}main{max-width:1440px;margin:auto;padding:34px}header{text-align:center}.brand{font-weight:800}.brand b{border:1px solid;border-radius:6px;padding:2px 5px;font-size:9px}h1{margin:22px 0 8px;font:700 clamp(34px,5vw,68px) Georgia}.controls,.card,.facts{background:#fff;border:1px solid #dcd8cf;border-radius:18px;padding:20px;box-shadow:0 10px 30px #332b1d0a}.controls{flex-wrap:wrap;align-items:center;gap:12px;margin:28px 0;display:flex}.upload,#run,#download,.modes button,.swatches button{cursor:pointer;background:#fff;border:1px solid #ccc8be;border-radius:10px;padding:12px 16px;font-weight:700}.upload input{display:none}#run{color:#fff;background:#171714}button.active{background:#e4dfd3}.modes{display:flex}.modes button{border-radius:0}.modes button:first-child{border-radius:10px 0 0 10px}.modes button:last-child{border-radius:0 10px 10px 0}#status{flex-basis:100%;font-weight:700}#decision{color:#666}.work{grid-template-columns:1fr 1fr;gap:18px;display:grid}.card h2{justify-content:space-between;margin-top:0;display:flex}.stage{border-radius:12px;place-items:center;height:560px;display:grid;overflow:hidden}.stage img,.stage canvas{object-fit:contain;max-width:100%;max-height:100%}.original{background:#eee}.checker{background-color:#fff;background-image:linear-gradient(45deg,#ddd 25%,#0000 25%),linear-gradient(-45deg,#ddd 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ddd 75%),linear-gradient(-45deg,#0000 75%,#ddd 75%);background-position:0 0,0 12px,12px -12px,-12px 0;background-size:24px 24px}.swatches{flex-wrap:wrap;gap:8px;margin:14px 0;display:flex}.facts{margin-top:18px}.facts article{border-top:1px solid #eee;justify-content:space-between;padding:12px;display:flex}@media (width<=800px){main{padding:16px}.work{grid-template-columns:1fr}.stage{height:420px}.controls>*,.modes{width:100%}.modes button{flex:1}.facts article{display:block}.facts article span{color:#666;margin-top:5px;display:block}}.card h2{flex-wrap:wrap;align-items:flex-start;gap:12px}.card h2 small{text-align:right;max-width:62%;margin-left:auto;line-height:1.15}@media (width<=480px){.card h2{display:block}.card h2 small{text-align:left;max-width:none;margin:5px 0 0;display:block}}
