.qr-app { padding: 28px 0 72px; }
.qr-app h1 { margin: 0 0 8px; }
.qr-app .lead { max-width: 40rem; color: #44403c; margin: 0; }
.qr-stage {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}
.qr-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(60, 40, 20, 0.06);
}
.qr-modes, .qr-ecc { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-modes { margin-bottom: 14px; }
.qr-modes button, .qr-ecc button {
  border: 1px solid #eadfce;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  color: #1c1917;
}
.qr-modes button.is-on, .qr-ecc button.is-on {
  background: #e56b1f;
  border-color: #e56b1f;
  color: #fff;
}
.qr-field { display: grid; gap: 4px; margin-bottom: 12px; font-size: 0.9rem; font-weight: 700; }
.qr-field input, .qr-field textarea, .qr-field select {
  font: inherit;
  font-weight: 500;
  width: 100%;
  border: 1px solid #eadfce;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
}
.qr-field textarea { min-height: 96px; resize: vertical; }
.qr-slider { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin-bottom: 12px; font-size: 0.9rem; font-weight: 700; }
.qr-slider input[type="range"] { grid-column: 1 / -1; accent-color: #e56b1f; width: 100%; }
.qr-slider output { color: #c45f1a; font-variant-numeric: tabular-nums; }
.qr-pass { display: flex; gap: 8px; }
.qr-pass button { flex: 0 0 auto; }
.qr-base-choice { display: flex; gap: 6px; }
.qr-base-choice button {
  border: 1px solid #eadfce;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.qr-base-choice button.is-on { background: #1c1917; color: #fff; border-color: #1c1917; }
.qr-base-choice button[data-plate="white"].is-on { background: #fff; color: #1c1917; box-shadow: inset 0 0 0 2px #e56b1f; }
.qr-inks { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-inks button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(28, 25, 23, 0.15);
  padding: 0;
  cursor: pointer;
}
.qr-inks button.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e56b1f; }
.qr-custom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eadfce;
}
.qr-custom h2 { margin: 0 0 6px; font-size: 1.05rem; }
.qr-custom p { margin: 0 0 10px; color: #57534e; font-size: 0.9rem; font-weight: 500; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.qr-note, .qr-status { color: #57534e; font-size: 0.9rem; }
.qr-note { margin: 12px 0 0; }
.qr-view-col { display: grid; gap: 14px; }
.qr-flat {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 16px 16px;
}
.qr-flat canvas {
  width: min(100%, 320px);
  height: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(60, 40, 20, 0.08);
  image-rendering: pixelated;
}
.qr-flat p { margin: 0; color: #57534e; font-size: 0.88rem; text-align: center; }
.qr-3d canvas {
  width: 100%;
  height: 340px;
  display: block;
  background: #8f8f8f;
  border-radius: 16px;
}
.qr-meta { margin: 0; color: #44403c; font-size: 0.92rem; }
html.is-embed .qr-app { padding: 8px 0 16px; }
html.is-embed .qr-app .eyebrow,
html.is-embed .qr-app h1,
html.is-embed .qr-app .lead { display: none; }
html.is-embed .qr-stage { margin-top: 0; align-items: start; }
html.is-embed .qr-view-col { position: sticky; top: 8px; align-self: start; }
html.is-embed .qr-flat { padding: 12px; }
html.is-embed .qr-flat canvas { width: min(100%, 220px); }
html.is-embed .qr-3d canvas { height: 240px; }
@media (max-width: 900px) {
  .qr-stage { grid-template-columns: 1fr; }
  .qr-3d canvas { height: 260px; }
  html.is-embed .qr-stage { display: flex; flex-direction: column; }
  html.is-embed .qr-view-col { order: -1; position: static; }
  html.is-embed .qr-flat canvas { width: min(100%, 200px); }
  html.is-embed .qr-3d canvas { height: 200px; }
}
