* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #f5f7fb;
  color: #182230;
  font-family: Arial, Helvetica, sans-serif;
}

.app {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #d9e0ea;
  background: #ffffff;
}

.brand {
  margin-right: 10px;
  font-weight: 700;
}

button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #b7c3d4;
  border-radius: 6px;
  background: #ffffff;
  color: #182230;
  cursor: pointer;
}

button:hover,
button.active {
  border-color: #1f6feb;
  background: #edf4ff;
}

.color {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 14px;
}

.color input {
  width: 42px;
  height: 32px;
  padding: 0;
  border: 1px solid #b7c3d4;
  border-radius: 6px;
  background: #ffffff;
}

.stage {
  min-height: 0;
  padding: 14px;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(24, 34, 48, 0.08);
}

@media (max-width: 720px) {
  .toolbar {
    flex-wrap: wrap;
  }

  .color {
    margin-left: 0;
  }
}

