/* QR-only refinements reuse FileMelon's existing colours and form styles. */
body:has(#qr-form) .fm-arrive{animation:none;opacity:1}
.qr-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 24px}
.new-tool-workspace .qr-type-button{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:48px;padding:11px 12px;margin:0;border:1px solid #d4dfcf;border-radius:9px;background:#f8faf5;color:#203f30;font:inherit;font-size:14px;font-weight:600;line-height:1.35;cursor:pointer;min-width:0}
.qr-type-icon{display:block;width:20px;height:20px;flex:0 0 20px}
.new-tool-workspace .qr-type-button[aria-pressed=true]{background:#3f7056;color:white;border-color:#3f7056}
.qr-type-button[aria-pressed=true]::after{content:'✓';margin-left:auto;font-size:14px}
.new-tool-workspace details.qr-type-disclosure{display:contents;margin:0}
.qr-type-disclosure>summary{list-style:none}.qr-type-disclosure>summary::-webkit-details-marker{display:none}
.qr-chevron{display:block;width:16px;height:16px;flex:0 0 16px;margin-left:auto;transition:transform .15s}.qr-type-disclosure[open] .qr-chevron{transform:rotate(180deg)}
.qr-disclosure-label{font-size:13px}
.qr-type-grid .qr-extra-types{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:10px 0 0;border-top:1px solid #e1e7dc}
.qr-type-disclosure:not([open])>.qr-extra-types{display:none!important}
.new-tool-workspace .qr-extra-types .qr-type-button{justify-content:center;padding:10px 7px;gap:6px;font-size:13px}
.qr-extra-types .qr-type-icon{width:18px;height:18px;flex-basis:18px}
.qr-field-help{margin:0 0 18px;color:#637365;font-size:13px;line-height:1.5}
.new-tool-workspace #qr-contact h2{margin:0 0 8px}
.new-tool-workspace #qr-contact label:first-of-type{margin-top:0}
.new-tool-workspace #qr-form>details:not(.qr-type-disclosure),#qr-contact>details{padding:12px 0;border-bottom:1px solid #e1e7dc}
.qr-summary{padding:14px;background:#f7faf5;border:1px solid #e1e7dc;border-radius:9px;margin-top:16px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
.new-tool-workspace .download-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.new-tool-workspace .download-actions .button{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;font-size:14px;line-height:1.3;padding:12px 6px;box-sizing:border-box;white-space:nowrap}
.new-tool-workspace .qr-outline{background:white;color:#3f7056;border:1px solid #3f7056}
.qr-text-button,#qr-reset{display:block;margin:12px auto 0;border:0!important;background:none!important;color:#3f7056;padding:8px;cursor:pointer;text-decoration:underline;font:inherit;font-size:14px}
.new-tool-workspace #qr-status:empty{display:none}.new-tool-workspace #qr-output[hidden]{display:none}.new-tool-workspace #qr-result-heading{scroll-margin-top:24px}.new-tool-workspace .preview-surface{background:white}
.new-tool-workspace #qr-create{margin-top:22px}
@media(max-width:850px){.new-tool-workspace{gap:24px}.new-tool-workspace #qr-output{padding-top:22px;border-top:1px solid #e1e7dc}}
@media(max-width:360px){.new-tool-workspace .download-actions{grid-template-columns:1fr}.new-tool-workspace .qr-type-button{font-size:13px;padding:10px 8px;gap:6px}.qr-type-icon{width:18px;height:18px;flex-basis:18px}.qr-disclosure-label{font-size:12px}}
@media(prefers-reduced-motion:reduce){.qr-chevron{transition:none}}
.qr-type-disclosure::details-content{display:contents}
/* Make the preview column an intentional empty state before generation. */
.new-tool-workspace:has(#qr-form){align-items:start}
.new-tool-workspace #qr-output .preview-surface{min-height:280px;background:#f7f9f5;box-sizing:border-box}
.new-tool-workspace #qr-empty{max-width:260px;line-height:1.65}
.new-tool-workspace #qr-preview{max-height:320px;width:auto;max-width:100%}
@media(max-width:850px){.new-tool-workspace #qr-output .preview-surface{min-height:180px;padding:16px}.new-tool-workspace #qr-preview{max-height:260px}.new-tool-workspace #qr-output{padding-top:16px}.new-tool-workspace #qr-empty{padding:16px;margin:0}}
@supports not selector(details::details-content){.new-tool-workspace details.qr-type-disclosure[open]{display:block;grid-column:1/-1}.qr-type-disclosure[open] .qr-extra-types{margin-top:10px}}
@media(max-width:850px){.new-tool-workspace #qr-preview{max-height:min(32svh,220px)}.new-tool-workspace #qr-summary{max-height:90px;overflow:auto}.new-tool-workspace .download-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.new-tool-workspace .download-actions .button{font-size:13px;padding:12px 8px;min-height:44px}}
