:root {
  --ink: #182033;
  --paper: #fff7df;
  --panel: #ffffff;
  --accent: #e54b4b;
  --line: rgba(24, 32, 51, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background: #e8f4ff;
}

button,
input,
textarea {
  font: inherit;
}

.designer-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: var(--paper);
  border-right: 3px solid var(--ink);
  overflow: auto;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 15px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 8px;
  background: white;
}

textarea {
  min-height: 170px;
  resize: vertical;
  font-family: Consolas, monospace;
  font-size: 12px;
}

button,
a {
  border: 0;
  border-radius: 6px;
  padding: 9px 11px;
  color: white;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button.active {
  background: #182033;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hint {
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.canvas-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--panel);
  border-bottom: 2px solid var(--line);
}

#viewportInfo {
  min-width: 120px;
  font-weight: 700;
}

#designerCanvas {
  width: 100%;
  height: calc(100vh - 58px);
  display: block;
  background: #79d1ff;
}
