/* QR code tool: used by qr-generator.html and the generated pages in site/qr/. Self-contained. */
.qr-generator { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(60, 50, 120, 0.1); margin-bottom: 2.5rem; }
.qr-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; text-align: left; }
@media (max-width: 760px) { .qr-grid { grid-template-columns: minmax(0, 1fr); } }
.qr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1rem; }
@media (max-width: 480px) { .qr-fields { grid-template-columns: minmax(0, 1fr); } }
.qr-field { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; color: #444; min-width: 0; }
.qr-field[hidden] { display: none; }
.qr-field.qr-full, .qr-check, .qr-options { grid-column: 1 / -1; }
.qr-field input, .qr-field select, .qr-field textarea { font: inherit; font-weight: 400; padding: 0.55rem 0.7rem; border: 2px solid #d9dcef; border-radius: 8px; background: #fff; color: #222; width: 100%; min-width: 0; box-sizing: border-box; }
.qr-field input:focus, .qr-field select:focus, .qr-field textarea:focus { outline: none; border-color: #667eea; }
.qr-field textarea { resize: vertical; min-height: 5.5rem; }
.qr-field small { font-weight: 400; color: #666; }
.qr-check { display: flex; align-items: center; gap: 0.5rem; color: #444; }
.qr-options { border: 1px solid #e1e4f5; border-radius: 8px; padding: 0.6rem 0.9rem; }
.qr-options summary { cursor: pointer; font-weight: 600; color: #4c56c0; }
.qr-options .qr-fields { margin-top: 0.8rem; }
.qr-options input[type="color"] { height: 40px; padding: 2px; }
.qr-preview { text-align: center; }
.qr-frame { background: #f4f5fc; border-radius: 12px; padding: 1rem; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.qr-frame canvas { width: 100%; max-width: 280px; height: auto; image-rendering: pixelated; border-radius: 4px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15); }
.qr-frame p { color: #777; margin: 0; }
.qr-msg { min-height: 1.4em; margin: 0.7rem 0 0; color: #2f7a4d; font-size: 0.95rem; }
.qr-msg.qr-error { color: #b3261e; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.8rem; }
.qr-btn { font: inherit; font-weight: 600; padding: 0.55rem 1rem; border-radius: 8px; border: 2px solid #667eea; background: #fff; color: #4c56c0; cursor: pointer; }
.qr-btn:hover { background: #eef0fd; }
.qr-btn.qr-primary { background: #667eea; color: #fff; }
.qr-btn.qr-primary:hover { background: #5568d8; }
.qr-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.qr-payload { text-align: left; margin-top: 1rem; }
.qr-payload summary { cursor: pointer; color: #4c56c0; font-weight: 600; }
.qr-payload pre, .qr-sample { margin: 0.6rem 0 0; padding: 0.8rem 1rem; background: #2d2f45; color: #f3f4ff; border-radius: 8px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font: 0.9rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.qr-private { margin: 1rem 0 0; color: #555; font-size: 0.95rem; text-align: left; }
.qr-steps { padding-left: 1.3rem; line-height: 1.7; }
.qr-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 0.6rem 1rem; list-style: none; padding: 0; margin: 0.8rem 0 0; text-align: left; }
.qr-types a { font-weight: 600; }
