.qr-app, .qr-app *, .qr-app *::before, .qr-app *::after { box-sizing: border-box; }
.qr-app [hidden] { display: none !important; }
.qr-app { width: min(1240px, 100%); padding: 26px 38px 16px; margin: 0 auto; color: var(--qr-ink); font: 15px/1.5 var(--qr-font); }
.qr-app p, .qr-app h1, .qr-app h2, .qr-app h3 { margin: 0; }
.qr-app button, .qr-app input, .qr-app select { font: inherit; min-width: 0; }
.qr-app button { cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
.qr-app button:disabled { cursor: not-allowed; }
.qr-app input, .qr-app select { color: var(--qr-ink); }
.qr-app :is(a,button,input,select):focus-visible { outline: 3px solid var(--qr-ink); outline-offset: 4px; }
.qr-app svg { display: block; flex-shrink: 0; }
.qr-app button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.qr-direct-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; }
.qr-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 21px; font-weight: 850; letter-spacing: -.7px; color: var(--qr-ink); }
.qr-brand svg { width: 42px; height: 42px; }
#qr-maker { font-size: 11px; }
.qr-workbench { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); border: 1.5px solid var(--qr-ink); border-radius: 23px; overflow: hidden; box-shadow: 7px 7px 0 rgba(21,44,52,.12); background: var(--qr-paper); }
.qr-editor { padding: 34px 36px 19px; min-width: 0; }
.qr-editor-heading { margin-bottom: 25px; }
.qr-eyebrow { font-size: 8px; font-weight: 800; letter-spacing: 1.55px; line-height: 1.6; }
.qr-editor-heading h1 { font-size: clamp(40px,4.6vw,59px); letter-spacing: -2.5px; line-height: .96; font-weight: 850; margin-top: 14px; margin-bottom: 17px; }
.qr-editor-heading h1 span { position: relative; display: inline-block; z-index: 0; }
.qr-editor-heading h1 span::after { content: ''; position: absolute; z-index: -1; background: var(--qr-cyan); height: 12px; width: 100%; left: 0; bottom: 2px; transform: rotate(-1deg); }
.qr-editor-heading > p:last-child { font-size: 13px; line-height: 1.65; color: var(--qr-muted); }
.qr-mode-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: #edf4f2; border: 1px solid var(--qr-line); border-radius: 10px; margin-bottom: 23px; }
.qr-mode-switch button { min-height: 45px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; font-weight: 750; border: 0; border-radius: 7px; background: transparent; }
.qr-mode-switch button[aria-selected=true] { background: var(--qr-ink); color: white; box-shadow: 0 2px 3px #152c3415; }
.qr-mode-switch button:hover:not([aria-selected=true]) { background: #dfedea; }
.qr-field { margin-bottom: 17px; }
.qr-field > label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; font-weight: 750; margin-bottom: 8px; }
.qr-field > label span { font-size: 10px; font-weight: 400; color: var(--qr-muted); }
.qr-field input, .qr-field select { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #adc3c2; border-radius: 7px; background: white; font-size: 14px; line-height: 1.45; }
.qr-field input::placeholder { color: #72858a; opacity: 1; }
.qr-field input[aria-invalid=true], .qr-field select[aria-invalid=true] { border: 2px solid #ab225d; }
.qr-field select { padding-right: 28px; }
.qr-hint { color: var(--qr-muted); font-size: 10px; line-height: 1.65; margin-top: 8px !important; }
.qr-password-row { display: flex; gap: 7px; }
.qr-password-row input { flex: 1; min-width: 0; }
.qr-password-row button { min-width: 57px; min-height: 48px; border: 1px solid #adc3c2; border-radius: 7px; font-size: 11px; font-weight: 700; background: #edf4f2; }
.qr-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 11px; cursor: pointer; }
.qr-check input { width: 18px; height: 18px; accent-color: var(--qr-ink); margin: 0; }
.qr-error { font-size: 11px; line-height: 1.6; color: #91194d; background: #ffeaf3; border-left: 3px solid #bd3271; border-radius: 4px; padding: 10px 12px; margin: 12px 0 18px !important; overflow-wrap: anywhere; }
.qr-export-settings { border-top: 1px solid var(--qr-line); padding-top: 20px; margin-top: 22px; }
.qr-export-settings .qr-field { margin-bottom: 14px; }
.qr-color-note { display: flex; align-items: center; gap: 9px; font-size: 10px; color: var(--qr-muted); }
.qr-color-note strong { color: var(--qr-ink); }
.qr-ink-dot { width: 17px; height: 17px; border: 3px solid white; box-shadow: 0 0 0 1px var(--qr-line); border-radius: 50%; background: #111827; flex-shrink: 0; }
.qr-editor-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 25px; }
.qr-text-button { min-height: 44px; padding: 4px 0; font-size: 10px !important; font-weight: 700 !important; border: 0; background: transparent; display: flex; align-items: center; gap: 7px; text-underline-offset: 3px; }
.qr-text-button:hover { text-decoration: underline; }
.qr-question { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
.qr-preview { min-width: 0; padding: 24px 30px 26px; background-color: var(--qr-cyan); border-left: 1.5px solid var(--qr-ink); display: flex; flex-direction: column; }
.qr-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.qr-preview-top .qr-eyebrow { font-size: 8px; letter-spacing: 1.1px; }
.qr-local-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 650; white-space: nowrap; border: 1px solid #152c3450; border-radius: 20px; padding: 5px 8px; }
.qr-local-pill > span { width: 4px; height: 4px; background: var(--qr-ink); border-radius: 50%; }
.qr-preview-main { display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 25px 0 22px; flex: 1; }
.qr-paper { width: min(348px,100%); aspect-ratio: 1; background: white; border: 1px solid var(--qr-ink); border-radius: 13px; padding: 21px; box-shadow: 6px 6px 0 rgba(21,44,52,.12); display: flex; align-items: center; justify-content: center; }
.qr-paper.is-ready { padding: 13px; }
.qr-paper img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; border-radius: 0; }
.qr-empty { text-align: center; display: flex; flex-direction: column; align-items: center; }
.qr-empty svg { width: 90px; height: 90px; color: #8cd7d1; margin-bottom: 18px; }
.qr-empty h2 { font-size: 25px; letter-spacing: -.9px; line-height: 1.08; font-weight: 800; max-width: 200px; }
.qr-empty > p { font-size: 11px; color: var(--qr-muted); line-height: 1.65; margin-top: 11px; max-width: 190px; }
.qr-paper-caption { margin-top: 17px; font-size: 9px; font-weight: 500; text-align: center; }
.qr-receipt { padding: 12px 14px; border: 1px solid #152c342e; border-radius: 7px; background: #c7fbf4; margin-bottom: 17px; min-width: 0; }
.qr-receipt-label { display: block; font-size: 7px; letter-spacing: 1.3px; font-weight: 800; }
#qr-destination { margin-top: 5px; margin-bottom: 5px; font: 11px/1.6 var(--qr-mono); overflow-wrap: anywhere; white-space: pre-wrap; max-height: 90px; overflow: auto; }
#qr-details { font-size: 9px; color: var(--qr-muted); }
.qr-downloads { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 10px; }
.qr-button { min-height: 50px; padding: 13px 17px; display: inline-flex; justify-content: center; align-items: center; gap: 11px; font-size: 12px !important; font-weight: 750 !important; border: 1px solid var(--qr-ink); border-radius: 8px; line-height: 1.4; transition: background-color 120ms, transform 120ms; }
.qr-button-primary { background: var(--qr-ink); color: white !important; }
.qr-button-primary:hover:not(:disabled) { background: #294650; }
.qr-button-secondary { background: var(--qr-pink); color: var(--qr-ink); justify-content: space-between; }
.qr-button-secondary:hover:not(:disabled) { background: var(--qr-pink-bright); }
.qr-button:active:not(:disabled) { transform: translateY(1px); }
.qr-button:disabled { background: #bbe3dd; color: #506f6c !important; border-color: #91bdb7; }
.qr-download-note { text-align: center; font-size: 9px; line-height: 1.6; margin-top: 12px !important; min-height: 15px; }
.qr-scan-note { text-align: center; color: var(--qr-muted); font-size: 9px; margin-top: 7px !important; }
.qr-under-tool { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 2px 0; }
.qr-under-tool > p { font-size: 8px; font-weight: 750; letter-spacing: 1.2px; }
.qr-under-tool > div { display: flex; gap: 20px; }
.qr-under-tool button { border: 0; background: transparent; min-height: 44px; padding: 0; font-size: 10px; text-underline-offset: 3px; }
.qr-under-tool button:hover { text-decoration: underline; }
.qr-app .qr-dialog { width: min(535px, calc(100% - 28px)); max-height: calc(100dvh - 40px); border: 1.5px solid var(--qr-ink); border-radius: 17px; padding: 25px; background: var(--qr-paper); color: var(--qr-ink); box-shadow: 6px 6px 0 var(--qr-cyan-bright); }
.qr-dialog::backdrop { background: #122d37ad; }
.qr-dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.qr-dialog-heading h2 { font-size: 26px; letter-spacing: -1px; line-height: 1.12; padding-top: 7px; }
.qr-icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--qr-line); border-radius: 50%; background: transparent; flex-shrink: 0; }
.qr-icon-button:hover { background: var(--qr-cyan); }
#qr-dialog-content { font-size: 13px; line-height: 1.7; }
#qr-dialog-content p { margin-bottom: 15px; }
#qr-dialog-content ol, #qr-dialog-content ul { padding-left: 20px; margin: 0 0 15px; }
#qr-dialog-content li { margin-bottom: 12px; padding-left: 3px; }
.qr-dialog > .qr-button { width: 100%; margin-top: 8px; }
.qr-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.qr-embedded { padding: 0; width: 100%; }
.qr-embedded .qr-direct-header { display: none; }
.qr-embedded .qr-workbench { border-radius: 0; box-shadow: none; }
.qr-embedded .qr-under-tool { padding: 10px 18px; }
@media(max-width:980px) {
  .qr-app { padding-inline: 24px; }
  .qr-workbench { grid-template-columns: minmax(290px,.95fr) minmax(0,1.05fr); }
  .qr-editor { padding: 29px 26px 18px; }
  .qr-preview { padding: 22px 23px; }
  .qr-preview-top { flex-wrap: wrap; gap: 7px; }
  .qr-paper { padding: 15px; }
  .qr-empty svg { width: 75px; height: 75px; margin-bottom: 13px; }
  .qr-empty h2 { font-size: 23px; }
  .qr-under-tool > p { max-width: 240px; }
  .qr-embedded { padding: 0; }
}
@media(max-width:700px) {
  .qr-app { padding: 18px 15px 12px; }
  .qr-direct-header { padding-bottom: 20px; }
  .qr-brand { font-size: 19px; }
  .qr-brand svg { width: 35px; height: 35px; }
  #qr-maker { display: none; }
  .qr-workbench { grid-template-columns: minmax(0,1fr); border-radius: 18px; }
  .qr-editor { padding: 27px 25px 18px; }
  .qr-editor-heading { margin-bottom: 24px; }
  .qr-editor-heading h1 { font-size: 48px; letter-spacing: -2.2px; }
  .qr-editor-heading h1 br { display: none; }
  .qr-editor-heading > p:last-child { font-size: 12px; }
  .qr-editor-heading > p:last-child br { display: none; }
  .qr-editor-heading .qr-eyebrow { font-size: 7px; letter-spacing: 1.1px; }
  .qr-field input, .qr-field select { font-size: 16px; }
  .qr-hint { font-size: 11px; }
  .qr-field > label { font-size: 12px; }
  .qr-field > label span { font-size: 10px; }
  .qr-color-note { font-size: 10px; }
  .qr-export-settings { margin-top: 20px; padding-top: 19px; }
  .qr-editor-bottom { margin-top: 17px; }
  .qr-preview { border-left: 0; border-top: 1.5px solid var(--qr-ink); padding: 21px 25px 26px; }
  .qr-preview-top { flex-wrap: nowrap; gap: 12px; }
  .qr-preview-main { padding: 25px 0 22px; }
  .qr-paper { max-width: 320px; }
  .qr-empty svg { width: 85px; height: 85px; }
  .qr-empty h2 { font-size: 25px; }
  .qr-empty > p { font-size: 11px; }
  .qr-downloads { grid-template-columns: minmax(0,1fr) 90px; }
  .qr-button { font-size: 12px !important; }
  .qr-under-tool { flex-direction: column; gap: 3px; padding-top: 22px; text-align: center; }
  .qr-under-tool > p { max-width: none; font-size: 7px; letter-spacing: 1px; }
  .qr-under-tool button { font-size: 11px; }
  .qr-embedded { padding: 0; }
}
@media(max-width:370px) {
  .qr-app { padding-inline: 11px; }
  .qr-editor { padding-inline: 18px; }
  .qr-editor-heading h1 { font-size: 43px; }
  .qr-preview { padding-inline: 18px; }
  .qr-preview-top .qr-eyebrow { font-size: 7px; letter-spacing: .7px; }
  .qr-local-pill { font-size: 7px; padding-inline: 6px; }
  .qr-empty h2 { font-size: 23px; }
  .qr-empty svg { width: 65px; height: 65px; }
  .qr-empty > p { font-size: 10px; }
  .qr-button { padding-inline: 11px; font-size: 11px !important; }
  .qr-downloads { gap: 8px; grid-template-columns: minmax(0,1fr) 80px; }
  .qr-dialog-heading h2 { font-size: 24px; }
  .qr-app .qr-dialog { padding: 21px; }
  .qr-embedded { padding: 0; }
}
@media(prefers-reduced-motion:reduce) { .qr-app *, .qr-app *::before, .qr-app *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
