/* styles.css */
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
       margin: 0; padding: 16px; background: #f7f7fb; color: #222; }
header { margin-bottom: 12px; }
h1 { margin: 0 0 6px 0; font-size: 20px; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.controls label { display: flex; align-items: center; gap: 6px; }
.controls select, .controls button { padding: 8px 10px; border-radius: 10px; border: 1px solid #ddd; background: #fafafa; }
.controls button { background: #0ea5e9; color: white; border: none; cursor: pointer; }
.controls button#btnReset { background: #ef4444; }
main { display: grid; grid-template-columns: auto 280px; gap: 16px; margin-top: 16px; }
canvas { background: white; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.info { background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); padding: 12px; display: grid; gap: 8px; font-family: Consolas, "Courier New", monospace; }
footer { margin-top: 16px; color: #666; }
@media (max-width: 900px){
  main { grid-template-columns: 1fr; }
}