/* reset */
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, Arial, sans-serif; background:#0b1220; color:#e2e8f0; }
.wrap { width:min(100% - 2rem, 900px); margin:2rem auto; }

/* top panel */
.panel { display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; background:#1119288c; border:1px solid #94a3b826; padding:.7rem; border-radius:12px; }
input[type=color]{ width:40px; height:32px; border:0; background:transparent; padding:0; }
select,button{ background:#1b2540; color:#e2e8f0; border:1px solid #94a3b840; padding:.45rem .7rem; border-radius:10px; cursor:pointer; }

/* palette */
.palette{ display:flex; gap:.35rem; align-items:center; }
.swatch{ width:24px; height:24px; border-radius:6px; border:1px solid #00000033; cursor:pointer; display:inline-block; }

/* drawing grid */
.grid{ margin-top:1rem; display:grid; gap:2px; background:#94a3b826; padding:2px; border-radius:10px; user-select:none; }
.cell{ background:#0e1729; border:1px solid #94a3b814; aspect-ratio:1 / 1; width:100%; }
