.qr-panel { padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--border-color, #ddd); border-radius: 1rem; background: var(--bg-card, transparent); }
.qr-panel p { line-height: 1.6; }
.qr-form, .qr-fields { display: grid; gap: 1rem; }
.qr-form { max-width: 42rem; margin: 1.5rem auto; }
.qr-form label { display: grid; gap: .45rem; font-weight: 600; }
.qr-form input:not([type="checkbox"]), .qr-form textarea, .qr-form select { width: 100%; padding: .8rem; border: 1px solid var(--border-color, #aaa); border-radius: .5rem; color: var(--text-primary, #111); background: var(--bg-primary, #fff); font: inherit; box-sizing: border-box; }
.qr-form .qr-check { display: flex; align-items: center; }
.qr-form textarea { resize: vertical; min-height: 8rem; }
.qr-panel [hidden] { display: none !important; }
.qr-result { display: grid; justify-items: center; gap: 1rem; }
.qr-result canvas { display: block; width: min(100%, 320px); height: auto; background: #fff; }
.qr-downloads { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.qr-error { color: var(--dark-error, #b42318); }
.qr-panel [role="status"], .qr-error { text-align: center; overflow-wrap: anywhere; }

/* Space the page holds for this view until it mounts (see .tool-view-placeholder in _workspace.css).
   Each height is a little under the space the view takes at that width, measured as how far the
   content below moves when the view replaces the placeholder, so nothing below it moves. Re-measure
   after changing the view's layout: node scripts/measure-tool-views.js --apply qr-code-generator. */
.tool-view-placeholder[data-tool="qr-code-generator"] { min-height: 441px; }
@media (max-width: 771px) { .tool-view-placeholder[data-tool="qr-code-generator"] { min-height: 440px; } }
@media (max-width: 752px) { .tool-view-placeholder[data-tool="qr-code-generator"] { min-height: 451px; } }
