/* The QR code generator (/qr-code-generator), on the foundation and tool.css: the editor is the text and four choices
   between hairlines; the well shows the code on its own ground, then what the page says of it, its numbers, the two
   downloads and the pennant. */
.qrmaker .lab { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.qrmaker textarea {
  display: block; width: 100%; min-height: 104px; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--muted);
  font: inherit; font-size: 16px; line-height: 1.45; color: var(--foreground); resize: vertical; overflow-wrap: anywhere;
}
.qrmaker textarea:focus-visible { outline: 2px solid var(--foreground); outline-offset: 0; }
.qrmaker .hint { min-height: 20px; margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.qrmaker .set { margin-top: 16px; border-top: 1px solid var(--border); }
.qrmaker .field { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--muted-foreground); }
.qrmaker .field > :first-child { flex: none; }
.swatch { width: 52px; height: 36px; padding: 3px; border: 0; border-radius: 10px; background: var(--muted); cursor: pointer; }
.swatch::-webkit-color-swatch-wrapper { padding: 0; }
.swatch::-webkit-color-swatch { border: 0; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--border); }
.swatch::-moz-color-swatch { border: 0; border-radius: 7px; }

/* The well: the code at a fixed size on the muted ground, hidden until there's text. */
.qrmaker .view { display: block; }
.qrmaker .stage { min-height: 400px; }
.qrmaker canvas { display: none; width: 320px; height: 320px; border-radius: 4px; box-shadow: 0 1px 3px rgba(36, 17, 12, .12); }
.has-code .stage canvas { display: block; }
.has-code .stage .empty { display: none; }
.qrmaker .stage .empty { margin: 0; font-size: 16px; color: var(--muted-foreground); }

.fits { margin: 20px 0 0; padding: 0; list-style: none; }
.fits:empty { display: none; }
.fits li { position: relative; padding: 6px 0 6px 22px; font-size: 15.5px; line-height: 1.45; color: var(--foreground); }
.fits li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 10px; border-radius: 999px; background: var(--success); }
.fits li.no::before { background: var(--destructive); }

.qrmaker .result { flex-direction: column; align-items: stretch; gap: 16px; }
.qrmaker .acts { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; justify-content: flex-end; }
.qrmaker .acts [hidden] { display: none; }

@media (max-width: 1119px) {
  .qrmaker .editor { position: static; }
}
@media (max-width: 759px) {
  .qrmaker .stage { min-height: 280px; padding: 24px; }
  .qrmaker canvas { width: 240px; height: 240px; }
  .qrmaker .acts { flex-direction: column; align-items: stretch; }
}
