.qr-card { padding: 28px; }
.qr-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.qr-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.qr-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }

.qr-field { margin-bottom: 18px; }
.qr-field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92em; }
.qr-field textarea { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 12px 14px; font-size: .96em; font-family: inherit; resize: vertical; min-height: 90px; box-sizing: border-box; }
.qr-field textarea:focus { outline: none; border-color: var(--site-light); }

.qr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.qr-field-row .qr-field { margin-bottom: 0; }
.qr-field-row select { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: .92em; background: #fff; box-sizing: border-box; }
.qr-field-row select:focus { outline: none; border-color: var(--site-light); }

.qr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.qr-generate-btn, .qr-download-btn { flex: 1; min-width: 150px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 30px; padding: 11px 20px; font-weight: 700; font-size: .95em; cursor: pointer; transition: background .2s ease, opacity .2s ease; }
.qr-generate-btn { background: var(--site-dark); color: #fff; }
.qr-generate-btn:hover { background: var(--site-dark-2); }
.qr-download-btn { background: var(--site-accent); color: #fff; }
.qr-download-btn:hover { opacity: .9; }
.qr-download-btn:disabled { background: #d1d5db; color: #9ca3af; cursor: not-allowed; }

.qr-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; background: var(--site-danger-bg); color: var(--site-danger); font-size: .88em; font-weight: 600; }
.qr-error.hide { display: none; }

.qr-preview-wrap { display: flex; align-items: center; justify-content: center; }
.qr-canvas-frame { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1 / 1; background: #f7f8fa; border: 1px solid #eee; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
.qr-canvas-frame canvas { max-width: 100%; max-height: 100%; border-radius: 4px; image-rendering: pixelated; }
.qr-canvas-frame canvas.hide { display: none; }

.qr-placeholder { text-align: center; color: #9aa0aa; padding: 10px; }
.qr-placeholder i { font-size: 2.4em; margin-bottom: 10px; display: block; color: #cbd0d8; }
.qr-placeholder p { margin: 0; font-size: .88em; max-width: 220px; }
.qr-placeholder.hide { display: none; }

@media (max-width: 800px) {
    .qr-layout { grid-template-columns: 1fr; }
    .qr-field-row { grid-template-columns: 1fr 1fr; }
    .qr-preview-wrap { order: -1; }
}

@media (max-width: 500px) {
    .qr-field-row { grid-template-columns: 1fr; }
    .qr-actions { flex-direction: column; }
    .qr-generate-btn, .qr-download-btn { width: 100%; }
}
