:root {
  font-family: system-ui, sans-serif;
  color: #331f21;
  background: #fff3e8;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 920px; margin: 0 auto; padding: 7vh clamp(18px, 5vw, 64px); }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -.07em; margin: 0; }
header p { color: #674947; margin: 16px 0 36px; }
.studio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: #fffaf6;
  border: 1px solid #e8cfc4;
  padding: clamp(16px, 4vw, 34px);
  border-radius: 24px;
}
form, .result { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
label { font-weight: 700; }
button, input, textarea, select {
  color: inherit;
  font: inherit;
  background: white;
  border: 1px solid #dbbdb1;
  padding: 10px 12px;
  border-radius: 10px;
}
textarea { resize: vertical; }
button { font-weight: 650; cursor: pointer; }
button:disabled { opacity: .52; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b84d27; outline-offset: 2px; }
.examples, .seed { display: flex; gap: 8px; flex-wrap: wrap; }
.examples button { padding: 5px 10px; }
.seed input { width: 120px; }
.primary { background: #a53c23; border-color: #a53c23; color: white; }
#status { color: #674947; margin: 0; min-height: 2.7em; font-size: .9rem; }
.preview {
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  background: conic-gradient(#fffdfb 25%, #f3e6df 0 50%, #fffdfb 0 75%, #f3e6df 0) 0 0 / 28px 28px;
}
canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 660px) { .studio { grid-template-columns: 1fr; } }
.export { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.hint { color: #8a6a66; font-size: .8rem; margin: 0; max-height: 4.5em; overflow: auto; }
