*{box-sizing:border-box}body{margin:0;background:#f3f1fb;color:#201a36;font:16px/1.6 system-ui,sans-serif}header,footer{padding:18px max(5%,calc((100% - 1080px)/2));display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;background:white}a{color:#46309e}header a:first-child{font-weight:800;color:#201a36;text-decoration:none}main{width:min(90%,1080px);margin:40px auto}h1{font-size:clamp(2.4rem,7vw,4.8rem);line-height:1.02;letter-spacing:-.055em;margin:0}h2,h3{line-height:1.2}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:26px 0}.card{padding:clamp(16px,3vw,28px);border:1px solid #e3dff0;border-radius:22px;background:#fff;min-width:0}#preview{min-height:230px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#7357f5}#preview-code{font-size:clamp(1.1rem,3vw,2.2rem);overflow-wrap:anywhere;text-align:center}.picker{display:flex;align-items:center;gap:8px;background:white;color:#201a36;padding:5px 12px;border-radius:30px}#palette{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.swatch{width:34px;height:34px;border:1px solid #777;border-radius:50%}.row{display:flex;gap:8px;margin:3px 0 12px}.row input{flex:1;min-width:0}input,button,select{font:inherit}input:not([type=color]),select,button:not(.swatch){border:1px solid #c9c2df;border-radius:9px;padding:7px 10px;background:#faf9ff;color:#201a36}button,select,input[type=color]{cursor:pointer}:focus-visible{outline:3px solid #5230ce;outline-offset:3px}[aria-invalid=true]{outline:2px solid #b11b42}#message{min-height:1.6em;margin-bottom:0;color:#603080}@media(max-width:700px){.workspace{grid-template-columns:1fr}}
