/* QR page: screenshot layout, independent of the older generator styles. */
body[data-page=qr-code] main{width:100%;max-width:1392px;padding:0 24px;min-height:calc(100vh - 80px)}
.qrg-root{max-width:1344px;margin:0 auto 24px;color:#0b1230;font-family:var(--font-sans);font-size:13px}
.qrg-root button,.qrg-root input,.qrg-root select,.qrg-root textarea{font-family:var(--font-sans)}
.qrg-root button{cursor:pointer}.qrg-root button:disabled{opacity:1;cursor:default}.qrg-root button:focus-visible,.qrg-root input:focus-visible,.qrg-root select:focus-visible,.qrg-root textarea:focus-visible{outline:2px solid #99b8ff;outline-offset:3px}
.qrg-root img{display:block;object-fit:contain}.qrg-root button img{flex-shrink:0}
.qrg-heading{padding:17px 0 28px}.qrg-heading h1{display:flex;align-items:center;gap:15px;font-size:31px;line-height:1.35;font-weight:700;letter-spacing:-.65px;margin:0}
.qrg-heading p{color:#53678e;font-size:15px;line-height:1.7;margin:12px 0 0}
.qrg-layout{display:grid;grid-template-columns:minmax(0,825fr) minmax(0,497fr);gap:22px;align-items:stretch}
.qrg-panel{background:#fff;border:1px solid #dfe7f3;border-radius:20px;min-width:0;box-shadow:none}
.qrg-form{padding:20px;display:flex;flex-direction:column;min-height:770px;margin:0}
.qrg-section h2{display:flex;align-items:center;gap:12px;margin:0 0 14px;font-size:18px;line-height:28px;font-weight:700;letter-spacing:-.2px;color:#0b1230}.qrg-section h2>img{width:28px;height:28px;flex-shrink:0}
.qrg-types{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px}
.qrg-types button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;height:80px;padding:8px 2px;border:1px solid #edf1f7;border-radius:12px;background:#f7f9fd;color:#53678e;font-size:12px;line-height:1.4;transition:background .15s,border-color .15s}
.qrg-types button img{width:29px;height:29px}.qrg-types button.active{border-color:#165dff;background:#eaf2ff;color:#165dff;font-weight:700;box-shadow:0 0 0 1px #165dff16}.qrg-types button:hover{background:#edf3ff;border-color:#c8d9fb}.qrg-types button.active img{filter:brightness(0) saturate(100%) invert(32%) sepia(98%) saturate(3610%) hue-rotate(221deg) brightness(100%) contrast(105%)}
.qrg-content-section{margin-top:26px}#qrg-fields{display:grid;gap:12px}.qrg-field,.qrg-custom-grid>label,.qrg-frame-field,.qrg-advanced>label{display:block;font-size:12px;line-height:1.5;font-weight:600;color:#263858}
.qrg-field>input,.qrg-field>textarea,.qrg-field>select,.qrg-frame-field>input,.qrg-advanced>label>input{display:block;margin-top:8px;width:100%;min-width:0;min-height:50px;border:1px solid #c7d8fb;border-radius:10px;padding:13px 14px;color:#263858;font-size:14px;line-height:1.6;background:#fff;font-weight:400}
.qrg-field>textarea{resize:vertical;min-height:100px}.qrg-root input::placeholder,.qrg-root textarea::placeholder{color:#91a0b8}.qrg-url-input{display:flex;align-items:center;gap:12px;min-height:50px;border:1px solid #afc7f5;border-radius:10px;padding:0 12px;margin-top:8px;box-shadow:0 0 0 1px #165dff03;background:white}
.qrg-url-input>img{width:28px;height:28px;flex-shrink:0}.qrg-url-input>input{border:0;outline:0;width:100%;min-width:0;padding:12px 0;background:transparent;color:#263858;font-size:14px;line-height:1.6;font-weight:400}.qrg-url-input:focus-within{border-color:#165dff;box-shadow:0 0 0 3px #165dff0c}.qrg-url-input>input:focus-visible{outline:none}.qrg-field-hint{display:block;font-size:11px;line-height:1.6;color:#53678e;font-weight:400;margin-top:-3px}
.qrg-root select{appearance:none;background:#fff url('/qr-icons/chevron-down.svg') no-repeat right 10px center;background-size:20px;padding-right:33px!important;cursor:pointer}.qrg-root select:disabled{background-color:#f7f9fd;color:#71809c;cursor:default}.qrg-root input:disabled{background:#f7f9fd;color:#71809c}
.qrg-custom-section{margin-top:28px}.qrg-custom-section h2{margin-bottom:4px}.qrg-section-note{font-size:12px;line-height:1.6;color:#53678e;margin:0 0 20px 40px}.qrg-custom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.1fr);gap:13px}
.qrg-custom-grid select{display:block;width:100%;min-width:0;height:44px;margin-top:9px;border:1px solid #dfe7f3;border-radius:9px;padding:10px 12px;color:#263858;font-size:13px;font-weight:400;line-height:1.5}
.qrg-color-field{display:flex;align-items:center;gap:9px;min-width:0;height:44px;margin-top:9px;padding:6px 9px;border:1px solid #dfe7f3;border-radius:9px;background:#fff}.qrg-color-field input[type=color]{appearance:none;width:25px;height:25px;border:0;border-radius:6px;padding:0;background:transparent;flex-shrink:0;cursor:pointer}.qrg-color-field input[type=color]::-webkit-color-swatch-wrapper{padding:0}.qrg-color-field input[type=color]::-webkit-color-swatch{border:1px solid #dce4f0;border-radius:6px}.qrg-color-field input[type=color]::-moz-color-swatch{border:1px solid #dce4f0;border-radius:6px}.qrg-color-field input[type=text]{width:100%;min-width:0;border:0;padding:0;color:#263858;font-size:13px;line-height:1.5;background:transparent;outline:0;font-weight:400}
.qrg-logo-row{display:flex;align-items:center;gap:20px;min-height:76px;margin-top:24px;padding:14px;border-radius:12px;background:#f7f9fd;transition:box-shadow .2s,background .2s}.qrg-logo-row.drag{background:#edf3ff;box-shadow:inset 0 0 0 2px #165dff}.qrg-logo-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #dfe7f3;border-radius:10px;background:#fff;flex-shrink:0}.qrg-logo-icon>img{width:30px;height:30px}.qrg-logo-description{flex:1;min-width:0;line-height:1.6}.qrg-logo-description b{display:block;font-size:13px;font-weight:600;color:#263858;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qrg-logo-description small{display:block;font-size:11px;color:#53678e;margin-top:3px;font-weight:400}.qrg-logo-pick{min-width:116px;min-height:40px;flex-shrink:0;border:1px solid #dfe7f3;border-radius:9px;padding:10px 15px;background:#fff;color:#165dff;font-size:12px;font-weight:600;line-height:1.5}.qrg-logo-pick:hover{background:#edf3ff;border-color:#bfd1f7}.qrg-logo-remove{border:0;background:transparent;color:#71809c;font-size:22px;padding:4px;line-height:1}.qrg-logo-note{margin:9px 0 0;color:#617da4;font-size:11px;line-height:1.6}
.qrg-options{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:26px;min-height:26px}.qrg-checkbox{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:400;color:#263858;line-height:1.5;cursor:pointer}.qrg-checkbox input{appearance:none;display:block;width:18px;height:18px;margin:0;border:1px solid #b6c4d9;border-radius:4px;background:#fff;flex-shrink:0;cursor:pointer}.qrg-checkbox input:checked{background:#165dff;border-color:#165dff}.qrg-checkbox input:checked:after{content:'';display:block;width:5px;height:9px;margin:2px 0 0 5px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}
.qrg-advanced-toggle{display:flex;align-items:center;justify-content:space-between;gap:48px;padding:4px 0;border:0;background:transparent;color:#53678e;font-size:12px;font-weight:400;line-height:1.5}.qrg-advanced-toggle>img{width:20px;height:20px}.qrg-advanced-toggle[aria-expanded=true]>img{transform:rotate(180deg)}.qrg-frame-field{margin-top:15px}.qrg-advanced{margin-top:15px;padding:15px;border:1px solid #e5ebf4;border-radius:10px;background:#f9fbff}.qrg-advanced>label>input{min-height:40px;padding:9px 12px;font-size:12px}.qrg-advanced>button{border:1px solid #dfe7f3;border-radius:7px;padding:8px 12px;background:#fff;color:#53678e;font-size:11px;margin-top:12px}.qrg-advanced>p{font-size:11px;line-height:1.6;color:#71809c;margin:12px 0 0}
.qrg-generate-area{margin-top:auto;padding-top:30px}.qrg-generate{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:56px;padding:14px 18px;border:1px solid #812bff;border-radius:12px;background:#812bff;color:#fff;font-size:17px;line-height:1.5;font-weight:700}.qrg-generate:hover{background:#7020ec;border-color:#7020ec}.qrg-generate:disabled{background:#a66bff;border-color:#a66bff;cursor:wait}.qrg-privacy{text-align:center;color:#53678e;font-size:11px;line-height:1.6;margin:13px 0 0}.qrg-status{color:#53678e;font-size:12px;line-height:1.7;margin:12px 0 0;overflow-wrap:anywhere}.qrg-status:empty{display:none}.qrg-status.error{color:#c74765}
.qrg-preview-panel{padding:24px;display:flex;flex-direction:column;align-self:start;min-height:770px}.qrg-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 17px;min-height:36px}.qrg-preview-heading h2{margin:0;font-size:19px;font-weight:700;line-height:1.5;letter-spacing:-.2px}.qrg-preview-heading>button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #dfe7f3;border-radius:9px;background:#fff;padding:3px;flex-shrink:0}.qrg-preview-heading>button>img{width:28px;height:28px}
.qrg-preview-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:360px;padding:38px 22px 26px;background:#f6f8fd;border-radius:14px;gap:21px}.qrg-preview-square{display:grid;place-items:center;width:286px;max-width:100%;aspect-ratio:1;background:#fff;border:1px solid #e0e7f1;border-radius:16px;overflow:hidden}.qrg-placeholder{width:76%;height:76%;opacity:.9}.qrg-preview-square.generated{padding:5px}.qrg-preview-square.generated>img{width:100%;height:100%;object-fit:contain}.qrg-preview-stage>p{font-size:13px;line-height:1.6;margin:0;color:#53678e;text-align:center}
.qrg-scan-note{display:flex;align-items:center;justify-content:center;gap:8px;color:#53678e;font-size:12px;line-height:1.6;margin:20px 0 24px}.qrg-scan-note>img{width:24px;height:24px;flex-shrink:0}
.qrg-download-main{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;border:1px solid #165dff;border-radius:11px;background:#165dff;color:#fff;padding:12px 15px;font-size:15px;font-weight:600;line-height:1.6}.qrg-download-main>img{width:27px;height:27px;filter:brightness(0) invert(1)}.qrg-download-main:disabled{background:#edf1f8;border-color:#edf1f8;color:#8d9db8}.qrg-download-main:disabled>img{filter:none}.qrg-download-main:not(:disabled):hover{background:#0c50e8}.qrg-download-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:12px}.qrg-download-row>button{min-height:44px;border:1px solid #dce7fb;border-radius:9px;background:#fff;color:#165dff;padding:10px 8px;font-size:13px;font-weight:400;line-height:1.5}.qrg-download-row>button:disabled{color:#9aa9c1;background:#fafbfd;border-color:#e7ecf5}.qrg-download-row>button:not(:disabled):hover{background:#edf3ff}
.qrg-dialog{width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #dfe7f3;border-radius:18px;padding:22px;color:#0b1230;background:#fff;box-shadow:0 20px 90px #0b123033}.qrg-dialog::backdrop{background:#0b123070}.qrg-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.qrg-dialog-heading h2{font-size:19px;margin:0}.qrg-dialog-heading button{border:0;background:none;color:#71809c;font-size:30px;line-height:1;padding:3px}.qrg-dialog>img{width:100%;max-height:65dvh;object-fit:contain;margin:24px auto 0}.qrg-dialog>img.placeholder{padding:50px;background:#f6f8fd;border-radius:12px}.qrg-dialog>p{font-size:12px;color:#53678e;text-align:center;line-height:1.7;margin:20px 0 0}
@media(max-width:1150px){.qrg-types{gap:8px}.qrg-types button{font-size:11px}.qrg-custom-grid{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.qrg-preview-panel{padding:20px}.qrg-preview-stage{padding:28px 18px 24px;min-height:350px}.qrg-logo-row{gap:12px}.qrg-logo-pick{min-width:95px;padding:10px}.qrg-advanced-toggle{gap:18px}.qrg-preview-heading h2{font-size:18px}.qrg-scan-note{font-size:11px}.qrg-preview-panel{min-height:770px}}
@media(max-width:900px){body[data-page=qr-code] main{padding:0 20px}.qrg-layout{grid-template-columns:minmax(0,1fr);gap:20px;max-width:720px;margin:auto}.qrg-heading{max-width:720px;margin:auto}.qrg-custom-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.qrg-form{min-height:750px}.qrg-preview-panel{min-height:0;width:100%;align-self:stretch}.qrg-preview-stage{min-height:360px}.qrg-scan-note{font-size:12px}}
@media(max-width:600px){body[data-page=qr-code] main{padding:0 14px}.qrg-heading{padding:20px 0 23px}.qrg-heading h1{gap:10px;font-size:25px;letter-spacing:-.65px}.qrg-heading p{font-size:12px;line-height:1.8;margin-top:10px}.qrg-panel{border-radius:17px}.qrg-form{padding:17px 15px;min-height:0}.qrg-section h2{font-size:15px;gap:10px;margin-bottom:12px}.qrg-section h2>img{width:26px;height:26px}.qrg-types{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.qrg-types button{height:70px;gap:6px;font-size:11px;border-radius:10px}.qrg-types button img{width:27px;height:27px}.qrg-content-section{margin-top:24px}.qrg-field,.qrg-custom-grid>label{font-size:11px}.qrg-field>input,.qrg-field>textarea,.qrg-field>select,.qrg-url-input>input{font-size:13px}.qrg-field-hint{font-size:10px}.qrg-custom-section{margin-top:25px}.qrg-section-note{font-size:11px;margin-left:36px}.qrg-custom-grid{grid-template-columns:1fr 1fr;gap:15px 12px}.qrg-custom-grid select,.qrg-color-field input[type=text]{font-size:12px}.qrg-logo-row{margin-top:22px;padding:12px;gap:10px;flex-wrap:wrap}.qrg-logo-icon{width:36px;height:36px;border-radius:8px}.qrg-logo-description{min-width:90px}.qrg-logo-description b{font-size:12px}.qrg-logo-description small{font-size:10px}.qrg-logo-pick{min-width:90px;font-size:11px;padding:9px}.qrg-options{gap:9px;margin-top:22px}.qrg-checkbox{font-size:11px;gap:8px}.qrg-advanced-toggle{font-size:10px;gap:8px}.qrg-advanced-toggle>img{width:18px;height:18px}.qrg-generate-area{padding-top:26px}.qrg-generate{min-height:52px;font-size:15px;gap:10px}.qrg-privacy{font-size:10px;margin-top:12px}.qrg-preview-panel{padding:18px}.qrg-preview-heading h2{font-size:17px}.qrg-preview-stage{min-height:335px;padding:24px 20px;gap:18px}.qrg-preview-square{width:260px}.qrg-preview-stage>p{font-size:12px}.qrg-scan-note{font-size:11px}.qrg-download-main{min-height:49px;font-size:14px}.qrg-download-row>button{font-size:12px}}
@keyframes qrg-pulse{50%{opacity:.4;transform:scale(.92)}}@media(prefers-reduced-motion:reduce){.qrg-root *{transition:none!important;animation:none!important}}

.qrg-root input:focus::placeholder,.qrg-root textarea:focus::placeholder{color:transparent}.qrg-preview-caption{color:#53678e;font-size:12px;line-height:1.7;text-align:center;margin:20px 0 0}.qrg-preview-caption:empty{display:none}@media(max-width:600px){.qrg-download-row{gap:8px}.qrg-download-row>button{font-size:11px;padding:10px 4px}.qrg-preview-caption{font-size:11px}}

.qrg-frame-options{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:14px;margin-top:15px;align-items:start}.qrg-frame-options .qrg-frame-field{margin-top:0}@media(max-width:600px){.qrg-frame-options{grid-template-columns:minmax(0,1fr)}.qrg-frame-options .qrg-field>select{min-height:44px}}


/* A framed QR code is taller than it is wide. Fitting only its width pushed the label past the
   bottom of this box, which hides its overflow, so the frame a visitor had just asked for was
   invisible in the preview. Bounding both sides lets the whole code show, letterboxed. */
#qrg-preview-square.generated>#qrg-preview-image{
  width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;
  /* a grid item will not shrink below its own content unless told it may, and without this
     the max-height above is ignored entirely */
  min-width:0;min-height:0}
