:root {
  color-scheme: light;
  font-family: ui-rounded, "Segoe UI", system-ui, sans-serif;
  background: #f6f2ff;
  color: #241d31;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
main { width: min(920px, calc(100% - 2rem)); margin: 4rem auto; }
.hero { margin-bottom: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; }
h1 { font-size: clamp(2.2rem, 7vw, 4.8rem); line-height: .95; margin: .3rem 0 1rem; }
.card { background: #fff; border: 2px solid #241d31; border-radius: 18px; padding: clamp(1rem, 4vw, 2rem); box-shadow: 8px 8px 0 #d4c3ff; }
label, legend { font-weight: 700; }
.hint { font-weight: 400; color: #6d6479; }
textarea { width: 100%; resize: vertical; margin: .5rem 0 1.4rem; padding: .8rem; border: 2px solid #aaa0b7; border-radius: 10px; font: inherit; }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0; }
.toolbar label { display: flex; gap: .4rem; align-items: center; }
button { border: 2px solid #241d31; background: #fff; color: inherit; border-radius: 8px; padding: .5rem .8rem; font: inherit; cursor: pointer; }
button:hover, button:focus-visible { background: #eee8ff; }
button[aria-pressed="true"] { background: #241d31; color: #fff; }
.primary { margin-top: 1rem; background: #7651d6; color: #fff; font-weight: 800; padding: .8rem 1.2rem; }
.primary:disabled { opacity: .55; cursor: wait; }
canvas { display: block; width: 100%; aspect-ratio: 9 / 5; border: 2px solid #aaa0b7; border-radius: 10px; background: #fff; touch-action: none; }
.bot-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
#status { min-height: 1.5em; font-weight: 700; }
#status.error { color: #a21d35; }
#status.success { color: #146c43; }
code { background: #ece7f4; border-radius: 4px; padding: .1em .25em; }
@media (max-width: 550px) { main { margin: 2rem auto; } .toolbar { align-items: stretch; } }
