:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #1a1a18;
  background: #ffffff;
  --ink: #1a1a18;
  --edge: #ddd9cf;
  --blue: #1b365d;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #ffffff; }
body { overflow: hidden; }

main {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #ffffff;
}

.toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--edge);
}

.toolbar strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controls { display: flex; gap: 6px; }

.controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--edge);
  background: #ffffff;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.controls button:hover { border-color: var(--blue); color: var(--blue); }
.controls button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

canvas {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  align-self: center;
  background: #ffffff;
}

@media (max-width: 480px) {
  .toolbar { min-height: 48px; padding: 8px 10px; }
  .toolbar strong { font-size: 12px; }
}
