* { box-sizing: border-box; }
:root{
  --bg:#f3f4f6;
  --card:#ffffff;
  --accent:#2563eb;
  --muted:#6b7280;
}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color:#111827;
  display:flex;
  height:100vh;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.container{
  width:900px;
  max-width:100%;
  background:var(--card);
  border-radius:12px;
  padding:18px;
  box-shadow:0 10px 30px rgba(2,6,23,0.08);
}
h1{ margin:0 0 12px 0; font-size:20px; }
.toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.toolbar label{ font-size:14px; color:var(--muted); display:flex; align-items:center; gap:8px; }
.toolbar input[type="color"]{ width:40px; height:32px; padding:0; border:0; }
.toolbar input[type="range"]{ width:140px; }
.toolbar button{
  padding:8px 12px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.06);
  background:#fff;
  cursor:pointer;
  font-size:14px;
}
.canvas-wrap{
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-radius:8px;
  border:1px solid #e6edf3;
  height:600px;
  display:flex;
  align-items:stretch;
  justify-content:stretch;
  overflow:hidden;
}
canvas{ width:100%; height:100%; display:block; touch-action:none; }
.hint{ margin-top:10px; color:var(--muted); font-size:13px; }