:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#111827;color:#eef2ff}*{box-sizing:border-box}body{margin:0}main{max-width:1500px;margin:auto;padding:48px 24px}header{margin-bottom:28px}header p{color:#60a5fa;font-weight:700;margin:0 0 8px}h1{font-size:2.4rem;margin:0 0 8px}h2,h3{margin:0;font-size:1.25rem}.workspace{display:grid;grid-template-columns:250px minmax(0,1fr) 310px;gap:16px}.panel{background:#1f2937cc;border:1px solid #ffffff16;border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:14px}.editor-panel{max-height:calc(100vh - 72px);overflow:auto;position:sticky;top:24px}label{display:flex;flex-direction:column;gap:7px;font-weight:650}input,select,textarea,button{font:inherit}input:not([type=file]),select,textarea{border:1px solid #ffffff25;border-radius:7px;background:#111827;color:#fff;padding:9px}textarea{resize:vertical}button{border:0;border-radius:7px;background:#2563eb;color:#fff;padding:10px;cursor:pointer;font-weight:700}button:hover{background:#3b82f6}button[aria-pressed=true]{background:#7c3aed}.danger{background:#991b1b}.danger:hover{background:#b91c1c}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}.toolbar small{display:block;color:#9ca3af;margin-top:4px}.canvas-wrap{min-height:500px;max-height:75vh;overflow:auto;display:flex;align-items:center;justify-content:center;padding:16px;background:#0005;border-radius:8px;background-image:linear-gradient(45deg,#fff1 25%,transparent 25%,transparent 75%,#fff1 75%),linear-gradient(45deg,#fff1 25%,transparent 25%,transparent 75%,#fff1 75%);background-position:0 0,8px 8px;background-size:16px 16px}canvas{image-rendering:pixelated;cursor:crosshair}.code{border:1px solid #ffffff25;background:#0003;border-radius:8px;padding:12px}.code small,.hint,#file-name,#position{color:#9ca3af;margin:0;font-size:.85rem}.code strong{display:block;margin-top:5px}.code b{font-size:2rem;margin-top:8px;display:block}.two,.format-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.format-buttons{grid-template-columns:repeat(4,1fr)}.format-buttons button{padding:8px}.error{color:#fca5a5;margin:0;font-size:.85rem}@media(max-width:1050px){.workspace{grid-template-columns:1fr}.editor-panel{max-height:none;position:static}.canvas-wrap{min-height:360px}}
