* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f4f1ea;
  color: #2f2923;
}

.app-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.panel {
  background: #fffdf9;
  border: 1px solid #dbd3c7;
  border-radius: 0.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.app-shell > header,
.controls {
  padding: 0.9rem 1rem;
}

h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.lede,
.instructions,
.status {
  margin: 0.3rem 0 0;
  line-height: 1.5;
}

.controls-row {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

label {
  font-weight: 600;
}

input,
button {
  font: inherit;
}

input {
  min-width: 260px;
  flex: 1 1 380px;
  border: 1px solid #b5ac9f;
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  margin-right: 0.25rem;
}

button {
  border: 1px solid #7d5f3f;
  border-radius: 0.45rem;
  padding: 0.52rem 0.85rem;
  min-width: 5.9rem;
  background: #8f6d48;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #7f603e;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid #1f6feb;
  outline-offset: 2px;
}

.canvas-wrap {
  padding: 0.5rem;
}

#loom-canvas {
  width: 100%;
  min-height: 320px;
}

canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 0.45rem;
}
