/* QR controls migrated from ThiepQR; LEMY.love composition and tokens below. */
.qr-tool-layout {display:grid;grid-template-columns:minmax(280px,320px) minmax(0,1fr);align-items:start;gap:16px;max-width:1360px}
.qr-tool-editor {grid-column:2;grid-row:1;display:grid;gap:14px;min-width:0}
.qr-tool-source,.qr-tool-customize,.qr-tool-preview-panel {min-width:0;padding:16px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-panel)}
.qr-tool-preview-panel {grid-column:1;grid-row:1;position:sticky;top:88px;text-align:center;background:var(--ui-field)}
.qr-tool-section-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.qr-tool-section-heading h3,.qr-tool-preview-panel h3 {margin:0;color:var(--ui-text);font:800 20px/1.4 var(--sans);letter-spacing:-.2px}
.qr-tool-section-heading p {margin:4px 0 0;color:var(--ui-muted);font-size:14px;line-height:1.6}
.qr-tool-section-heading>.button {flex:none;min-height:44px!important;padding:8px 12px!important;font-size:14px!important}
.qr-tool-source-tabs {display:flex;gap:4px;padding:3px;margin-bottom:12px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-field)}
.qr-tool-source-tab {flex:1;min-height:44px;padding:8px 12px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ui-muted);font:800 14px/1.5 var(--sans);cursor:pointer}
.qr-tool-source-tab:hover {color:var(--ui-text);background:var(--ui-soft)}
.qr-tool-source-tab[aria-pressed="true"] {border-color:var(--ui-accent-border);background:var(--ui-accent-soft);color:var(--ui-accent)}
.qr-tool-source label,.qr-tool-field {display:flex;flex-direction:column;gap:6px;color:var(--ui-text);font-size:15px;line-height:1.5;font-weight:800}
.qr-tool-source :is(input[type=url],input[type=text],select) {display:block;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-field);color:var(--ui-text);font:600 16px/1.5 var(--sans)}
.qr-tool-source select {padding-right:30px;text-overflow:ellipsis}
.qr-tool-source :is(input,select):focus {border-color:var(--ui-focus)}
.qr-tool-source input::placeholder {color:var(--ui-faint);font-weight:500}
.qr-tool-field-hint,.qr-tool-hint,.qr-tool-pages-state {margin:7px 0 0;color:var(--ui-muted);font-size:13px;line-height:1.6;font-weight:500}
.qr-tool-pages-state:empty {display:none}
.qr-tool-link-summary {margin-top:12px;padding:9px 12px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-field);color:var(--ui-muted);font-size:14px;line-height:1.7}
.qr-tool-link-summary code {display:block;margin:3px 0 0;color:var(--ui-text);font:600 14px/1.7 var(--sans);overflow-wrap:anywhere;word-break:break-word}
.qr-tool-warning {margin:9px 0 0;padding-top:9px;border-top:1px solid var(--ui-warning-border);color:var(--ui-warning-text);font-size:14px;line-height:1.8}
.qr-tool-empty {padding:14px 12px;margin-top:12px;border:1px dashed var(--ui-accent-border);border-radius:9px;background:var(--ui-accent-soft);text-align:center}
.qr-tool-empty p {margin:0 0 12px;color:var(--ui-muted);font-size:14px;line-height:1.8}
.qr-tool-empty .button {min-height:35px!important;font-size:14px!important}
.qr-tool-customize {container-type:inline-size}
.qr-tool-customize>.qr-tool-section-heading {margin-bottom:14px}
.qr-tool-option-group {min-width:0;margin:0 0 16px;padding:0;border:0}
.qr-tool-option-group:last-child {margin-bottom:0}
.qr-tool-option-group legend {padding:0;margin-bottom:8px;color:var(--ui-text);font-size:15px;font-weight:800}
.qr-tool-frame-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.qr-tool-frame {display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:7px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-field);color:var(--ui-muted);font:700 14px/1.4 var(--sans);cursor:pointer}
.qr-tool-frame-thumb,.qr-tool-frame-placeholder {display:block;width:100%;aspect-ratio:1;max-height:90px;border-radius:6px;object-fit:cover;background:var(--ui-panel)}
.qr-tool-frame-placeholder {display:grid;place-items:center;color:var(--ui-faint);font-size:17px;font-weight:800;letter-spacing:1px;border:1px dashed var(--ui-border)}
.qr-tool-frame>span:last-child {min-height:24px;display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere}
.qr-tool-frame:hover,.qr-tool-choice:hover {background:var(--ui-soft);border-color:var(--ui-accent-border);color:var(--ui-text)}
.qr-tool-frame:is(.is-selected,.is-active,[aria-pressed="true"]),.qr-tool-choice:is(.is-selected,.is-active,[aria-pressed="true"]) {border-color:var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-accent);box-shadow:inset 0 0 0 1px var(--ui-accent)}
.qr-tool-choice-row {display:flex;flex-wrap:wrap;gap:9px}
.qr-tool-choice {display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:84px;min-height:76px;padding:10px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-field);color:var(--ui-muted);font:700 14px/1.4 var(--sans);cursor:pointer}
.qr-tool-choice-label {display:block}
.qr-tool-shape-square,.qr-tool-shape-rounded,.qr-tool-shape-circle {display:block;width:23px;height:23px;border:2px solid currentColor}
.qr-tool-shape-square {border-radius:2px}
.qr-tool-shape-rounded {border-radius:7px}
.qr-tool-shape-circle {border-radius:50%}
.qr-tool-shape-heart {display:block;width:25px;height:23px;font-size:0;line-height:1}
.qr-tool-shape-heart::before {content:"♥";font-size:29px;line-height:23px}
.qr-tool-dot-square,.qr-tool-dot-rounded,.qr-tool-dot-dots {display:block;width:5px;height:5px;margin:9px;background:currentColor;box-shadow:-8px -8px 0 currentColor,0 -8px 0 currentColor,8px -8px 0 currentColor,-8px 0 0 currentColor,8px 0 0 currentColor,-8px 8px 0 currentColor,0 8px 0 currentColor,8px 8px 0 currentColor}
.qr-tool-dot-rounded {border-radius:2px}
.qr-tool-dot-dots {border-radius:50%}
.qr-tool-color-presets {display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:8px}
.qr-tool-color-preset {display:flex;flex-direction:column;align-items:center;gap:7px;min-width:62px;min-height:68px;padding:6px 5px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ui-muted);font:600 16px/1.5 var(--sans);cursor:pointer}
.qr-tool-color-preset:hover {background:var(--ui-soft);color:var(--ui-text)}
.qr-tool-color-preset:is(.is-selected,.is-active,[aria-pressed="true"]) {border-color:var(--ui-accent-border);background:var(--ui-accent-soft);color:var(--ui-accent)}
.qr-tool-swatch {display:block;width:31px;height:31px;border:3px solid var(--ui-panel);border-radius:50%;background:var(--qr-swatch,var(--swatch));box-shadow:0 0 0 1px var(--ui-border)}
.qr-tool-color-preset:is(.is-selected,.is-active,[aria-pressed="true"]) .qr-tool-swatch {box-shadow:0 0 0 2px var(--ui-accent)}
.qr-tool-custom-colors {display:flex;flex-wrap:wrap;gap:20px;margin-top:15px;padding-top:15px;border-top:1px solid var(--ui-border)}
.qr-tool-custom-colors label {display:flex;align-items:center;gap:9px;color:var(--ui-muted);font-size:14px;font-weight:700;cursor:pointer}
.qr-tool-custom-colors input[type=color] {width:39px;height:31px;padding:3px;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-field);cursor:pointer;color-scheme:light}
.qr-tool-custom-colors input[type=color]::-webkit-color-swatch-wrapper {padding:0}
.qr-tool-custom-colors input[type=color]::-webkit-color-swatch {border:0;border-radius:3px}
.qr-tool-custom-colors input[type=color]::-moz-color-swatch {border:0;border-radius:3px}
.qr-tool-preview-panel h3 {font-size:20px}
.qr-tool-canvas-wrap {display:grid;place-items:center;position:relative;min-height:220px;margin:12px 0 0;padding:10px;border:1px dashed var(--ui-accent-border);border-radius:10px;background:var(--ui-panel);overflow:hidden}
.qr-tool-canvas-wrap canvas {display:block;width:100%;max-width:300px;height:auto;border-radius:5px;background:#fff}
.qr-tool-canvas-wrap.is-loading canvas {opacity:.5}
.qr-tool-canvas-wrap.is-loading::after {content:"";position:absolute;width:22px;height:22px;border:2px solid var(--ui-accent-border);border-top-color:var(--ui-accent);border-radius:50%;animation:qr-tool-spin .8s linear infinite}
.qr-tool-status {min-height:0;margin:10px 0;color:var(--ui-muted);font-size:14px;line-height:1.7;overflow-wrap:anywhere}
.qr-tool-status.is-error {color:var(--ui-danger-text)}
.qr-tool-status.is-success {color:var(--ui-success-text)}
.qr-tool-preview-panel>.button {width:100%;justify-content:center;min-height:42px!important}
.qr-tool-preview-panel>.button:disabled {opacity:.45;cursor:not-allowed}
.qr-tool-preview-note {margin:10px 0 0;color:var(--ui-muted);font-size:13px;line-height:1.6}
.qr-tool-layout [hidden] {display:none!important}
.qr-tool-layout :is(button,input,select):focus-visible {outline:2px solid var(--ui-focus);outline-offset:3px}
.qr-tool-quick-presets {display:grid;grid-template-columns:repeat(6,minmax(max-content,1fr));gap:8px;overflow-x:auto;padding:4px;margin:-4px;scrollbar-width:thin}
.qr-tool-design-preset {display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:46px;padding:8px 10px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field);color:var(--ui-text);font:700 14px/1.5 var(--sans);cursor:pointer;text-align:left;white-space:nowrap}
.qr-tool-design-preset .qr-tool-swatch {flex:none;width:24px;height:24px;border-width:2px}
.qr-tool-design-preset:hover {border-color:var(--ui-accent);background:var(--ui-soft)}
.qr-tool-design-preset[aria-pressed=true] {border-color:var(--ui-accent);background:var(--ui-accent-soft);box-shadow:inset 0 0 0 1px var(--ui-accent)}
.qr-tool-field :is(input[type=text],select) {width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-field);color:var(--ui-text);font:500 16px/1.5 var(--sans)}
.qr-tool-field input::placeholder {color:var(--ui-faint)}
.qr-tool-control-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;align-items:start}
.qr-tool-control-grid>div {min-width:0}
.qr-tool-control-grid .qr-tool-custom-colors {margin-top:0;padding-top:0;border:0}
.qr-tool-control-grid .qr-tool-range-field {margin-top:12px}
.qr-tool-range-field>span {display:flex;align-items:center;justify-content:space-between;gap:8px;line-height:1.7}
.qr-tool-range-field output {flex:none;color:var(--ui-accent);font-variant-numeric:tabular-nums}
.qr-tool-range-field input[type=range] {width:100%;min-width:0;height:30px;margin:0;accent-color:var(--ui-accent);cursor:pointer}
.qr-tool-custom-colors {gap:12px}
.qr-tool-custom-colors label {display:grid;grid-template-columns:minmax(0,1fr) 39px 96px;gap:7px;min-width:0;flex:1 1 230px;font-size:14px}
.qr-tool-custom-colors input.qr-tool-hex {min-width:0;width:96px;min-height:44px;padding:6px;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-field);color:var(--ui-text);font:500 16px/1.5 var(--sans);text-transform:uppercase}
.qr-tool-custom-colors input[aria-invalid=true] {border-color:var(--ui-danger-text)}
.qr-tool-check {display:flex;align-items:center;gap:9px;min-height:44px;margin-top:12px;color:var(--ui-muted);font-size:14px;line-height:1.7;cursor:pointer}
.qr-tool-check input {width:17px;height:17px;accent-color:var(--ui-accent)}
.qr-tool-eye-square,.qr-tool-eye-rounded,.qr-tool-eye-circle {display:grid;place-items:center;width:25px;height:25px;border:4px solid currentColor;box-sizing:border-box}
.qr-tool-eye-square::after,.qr-tool-eye-rounded::after,.qr-tool-eye-circle::after {content:"";width:7px;height:7px;background:currentColor}
.qr-tool-eye-rounded,.qr-tool-eye-rounded::after {border-radius:5px}
.qr-tool-eye-circle {border-radius:1px}
.qr-tool-eye-circle::after {border-radius:50%}
.qr-tool-dot-diamond {display:block;width:6px;height:6px;margin:9px;background:currentColor;transform:rotate(45deg);box-shadow:0 -11px currentColor,11px 0 currentColor,0 11px currentColor,-11px 0 currentColor}
.qr-tool-advanced {padding:16px 0;border-top:1px solid var(--ui-border)}
.qr-tool-advanced:last-child {padding-bottom:0}
.qr-tool-advanced>summary {min-height:28px;color:var(--ui-text);font:800 14px/1.7 var(--sans);cursor:pointer;list-style-position:inside}
.qr-tool-advanced>summary::marker {color:var(--ui-accent)}
.qr-tool-advanced>summary:focus-visible {outline:2px solid var(--ui-focus);outline-offset:4px;border-radius:4px}
.qr-tool-advanced>label {margin-top:16px}
.qr-tool-compact-group {margin-top:10px;padding:0;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field)}
.qr-tool-compact-group:last-child {padding-bottom:0}
.qr-tool-compact-group>summary {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 12px;list-style:none;font-weight:700;border-radius:10px}
.qr-tool-compact-group>summary::-webkit-details-marker {display:none}
.qr-tool-compact-group>summary::after {content:"";flex:none;width:7px;height:7px;margin-right:3px;border-right:1.5px solid var(--ui-muted);border-bottom:1.5px solid var(--ui-muted);transform:rotate(45deg)}
.qr-tool-compact-group[open]>summary::after {transform:rotate(225deg)}
.qr-tool-compact-group>summary:hover {background:var(--ui-soft)}
.qr-tool-settings-body {display:grid;gap:12px;padding:0 12px 12px}
.qr-tool-settings-body .qr-tool-control-grid {margin:0;gap:12px}
.qr-tool-settings-body .qr-tool-field {min-width:0;gap:5px;font-size:14px;font-weight:700}
.qr-tool-settings-body .qr-tool-field :is(input[type=text],select) {min-height:44px;padding:8px 10px;font-size:16px;border-radius:7px}
.qr-tool-settings-body .qr-tool-hint {margin:0;font-size:13px;line-height:1.6}
.qr-tool-settings-card {min-width:0;display:grid;gap:10px;padding:10px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-panel);align-content:start}
.qr-tool-copy-fields {gap:8px}
.qr-tool-text-layout,.qr-tool-presets-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.qr-tool-type-controls {grid-template-columns:minmax(0,1fr)}
.qr-tool-font-detail {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:12px;align-items:start}
.qr-tool-type-controls .qr-tool-range-field {margin:0}
.qr-tool-type-controls .qr-tool-range-field input[type=range] {height:44px}
.qr-tool-type-controls .qr-tool-text-color {display:block;margin:0;padding:0;border:0}
.qr-tool-text-color label {display:grid;grid-template-columns:34px minmax(0,1fr);gap:5px 7px;font-size:14px;font-weight:700;color:var(--ui-text)}
.qr-tool-text-color label>span {grid-column:1/-1;line-height:1.7}
.qr-tool-text-color input[type=color] {width:34px;height:44px}
.qr-tool-text-color input.qr-tool-hex {width:100%;min-height:44px;height:44px;padding:8px;font-size:14px}
.qr-tool-frame-controls {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.qr-tool-frame-controls .qr-tool-range-field {margin:0}
.qr-tool-frame-controls .qr-tool-range-field input[type=range] {height:44px}
.qr-tool-scan-controls {grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);align-items:center;gap:16px}
.qr-tool-scan-controls .qr-tool-margin-field {max-width:320px}
.qr-tool-presets-grid .button {width:100%;min-height:44px!important;padding:8px 12px!important;justify-content:center;font-size:14px!important}
.qr-tool-preset-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
#qrToolPresetStatus:empty {display:none}
.qr-tool-upload {margin-top:14px;padding:14px;border:1px dashed var(--ui-accent-border);border-radius:9px;background:var(--ui-accent-soft)}
.qr-tool-upload input[type=file] {width:100%;min-width:0;min-height:44px;color:var(--ui-muted);font:500 14px/1.7 var(--sans)}
.qr-tool-upload input::file-selector-button {margin-right:8px;padding:8px 10px;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-panel);color:var(--ui-text);font:700 14px/1.5 var(--sans);cursor:pointer}
.qr-tool-upload-preview {width:62px;height:62px;border:1px solid var(--ui-border);border-radius:8px;object-fit:cover}
.qr-tool-inline-actions {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}
.qr-tool-inline-actions .button {min-height:44px!important;font-size:14px!important}
.qr-tool-readability {margin:0 0 12px;padding:8px 10px;border:1px solid var(--ui-success-border,var(--ui-border));border-radius:8px;background:var(--ui-success-bg,var(--ui-panel));color:var(--ui-success-text);font-size:14px;line-height:1.7;text-align:left}
.qr-tool-readability.is-warning {border-color:var(--ui-warning-border);background:var(--ui-warning-bg,var(--ui-panel));color:var(--ui-warning-text)}
.qr-tool-export-fields {display:grid;gap:10px;margin:0 0 12px;text-align:left}
.qr-tool-preview-panel .qr-tool-status {min-height:0}
.qr-tool-status:empty,.qr-tool-readability:empty,.qr-tool-hint:empty {display:none}
.qr-tool-layout :is(button,input,select):disabled {opacity:.55;cursor:not-allowed}
/* Group appearance controls into compact, responsive cards. */
.qr-tool-style-grid,.qr-tool-color-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px;min-width:0}
.qr-tool-color-grid {grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.qr-tool-setting-card {min-width:0;margin:0;padding:12px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-field)}
.qr-tool-setting-card.qr-tool-option-group {margin:0}
.qr-tool-setting-card>legend {float:left;width:100%;margin:0 0 10px;padding:0;font-size:14px;line-height:1.5}
.qr-tool-setting-card>.qr-tool-choice-row,.qr-tool-setting-card>.qr-tool-color-presets {clear:both}
.qr-tool-style-grid .qr-tool-choice-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.qr-tool-style-grid .qr-tool-choice {min-width:0;min-height:64px;padding:8px 5px;gap:6px;font-size:14px;text-align:center}
.qr-tool-color-grid .qr-tool-color-presets {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.qr-tool-color-grid .qr-tool-color-preset {flex-direction:row;justify-content:flex-start;min-width:0;min-height:48px;padding:7px;gap:7px;border-color:var(--ui-border);font-size:14px;line-height:1.4;text-align:left}
.qr-tool-color-grid .qr-tool-color-preset[aria-pressed="true"] {border-color:var(--ui-accent)}
.qr-tool-color-grid .qr-tool-swatch {flex:none;width:24px;height:24px;border-width:2px}
.qr-tool-color-settings .qr-tool-custom-colors {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;border:0}
.qr-tool-color-settings .qr-tool-custom-colors label {grid-template-columns:34px minmax(0,1fr);gap:5px 7px;color:var(--ui-text);font-size:14px}
.qr-tool-color-settings .qr-tool-custom-colors label>span {grid-column:1/-1;line-height:1.5}
.qr-tool-color-settings .qr-tool-custom-colors input[type=color] {width:34px;height:44px}
.qr-tool-color-settings .qr-tool-custom-colors input.qr-tool-hex {width:100%;min-height:44px;font-size:16px}
.qr-tool-color-settings .qr-tool-control-grid {grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}
.qr-tool-color-settings .qr-tool-field {font-size:14px;gap:5px}
.qr-tool-color-settings .qr-tool-field select {padding:8px 10px}
.qr-tool-color-settings #qrToolGradientFields>.qr-tool-custom-colors,.qr-tool-color-settings #qrToolEyeColorFields {grid-template-columns:minmax(0,1fr)}
.qr-tool-color-settings .qr-tool-check {margin:8px 0 0;gap:7px}
.qr-tool-section-heading>.button {min-height:44px!important}
.qr-tool-mobile-preview {display:none}
.qr-tool-preview-dialog {box-sizing:border-box;width:min(430px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:14px;border:1px solid var(--ui-border);border-radius:18px;background:var(--ui-panel);color:var(--ui-text);overflow:auto}
.qr-tool-preview-dialog::backdrop {background:rgba(0,0,0,.55);backdrop-filter:blur(4px)}
.qr-tool-dialog-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.qr-tool-dialog-heading h3 {margin:0;font:800 20px/1.4 var(--sans)}
.qr-tool-dialog-heading button {width:44px;height:44px;border:1px solid var(--ui-border);border-radius:50%;background:var(--ui-field);color:var(--ui-text);font-size:24px;cursor:pointer}
.qr-tool-preview-dialog canvas {display:block;width:100%;height:auto;border-radius:10px}
.qr-tool-preview-dialog [hidden] {display:none!important}
.qr-tool-preview-dialog>.button {width:100%;justify-content:center;min-height:44px;margin-top:16px}
@keyframes qr-tool-spin {to{transform:rotate(360deg)}}
@media(max-width:1200px) {
  .qr-tool-layout {grid-template-columns:280px minmax(0,1fr);gap:14px}
  .qr-tool-source,.qr-tool-customize,.qr-tool-preview-panel {padding:16px}
  .qr-tool-frame-grid {gap:7px}
  .qr-tool-frame {padding:7px 5px 8px;font-size:14px}
}
@media(max-width:980px) {
  .qr-tool-layout {grid-template-columns:minmax(0,1fr);max-width:none}
  .qr-tool-editor {grid-column:1;grid-row:1}
  .qr-tool-preview-panel {grid-column:1;grid-row:2;position:static}
  .qr-tool-canvas-wrap {width:min(100%,340px);margin:12px auto 0}
  .qr-tool-preview-panel>.button {max-width:340px}
  .qr-tool-frame-thumb,.qr-tool-frame-placeholder {max-height:100px}
  .qr-tool-mobile-preview {display:block;position:fixed;z-index:40;right:20px;bottom:calc(20px + env(safe-area-inset-bottom));min-height:48px;padding:10px 20px;border:1px solid var(--ui-accent-border);border-radius:28px;background:var(--ui-accent);color:var(--ui-panel);box-shadow:0 6px 24px rgba(0,0,0,.2);font:800 14px/1.5 var(--sans);cursor:pointer}
}
@media(max-width:600px) {
  .qr-tool-layout,.qr-tool-editor {gap:12px}
  .qr-tool-source,.qr-tool-customize,.qr-tool-preview-panel {padding:12px;border-radius:10px}
  .qr-tool-section-heading {flex-wrap:wrap;gap:8px}
  .qr-tool-section-heading>div {flex:1 1 170px;min-width:0}
  .qr-tool-section-heading h3 {font-size:20px}
  .qr-tool-section-heading p {font-size:14px}
  .qr-tool-source-tab {padding:8px 7px;font-size:14px}
  .qr-tool-source :is(input[type=url],input[type=text],select) {font-size:16px}
  .qr-tool-frame-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .qr-tool-frame-thumb,.qr-tool-frame-placeholder {max-height:110px}
  .qr-tool-frame>span:last-child {min-height:32px}
  .qr-tool-choice-row {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  .qr-tool-choice {min-width:0;min-height:76px;padding:8px 4px;font-size:14px}
  .qr-tool-color-presets {gap:5px}
  .qr-tool-color-preset {min-width:58px;font-size:14px}
  .qr-tool-option-group {margin-bottom:16px}
  .qr-tool-custom-colors {gap:16px}
  .qr-tool-design-preset {font-size:14px}
  .qr-tool-control-grid {grid-template-columns:minmax(0,1fr);gap:14px}
  .qr-tool-field :is(input[type=text],select),.qr-tool-custom-colors input.qr-tool-hex {font-size:16px}
  .qr-tool-custom-colors label {flex-basis:100%}
  .qr-tool-custom-colors input.qr-tool-hex {width:96px}
  .qr-tool-custom-colors label {grid-template-columns:minmax(0,1fr) 39px 96px}
  .qr-tool-source-tab {min-height:44px}
  .qr-tool-settings-body {padding:0 12px 12px;gap:12px}
  .qr-tool-compact-group>summary {min-height:44px;padding:10px 12px;font-size:14px}
  .qr-tool-settings-body .qr-tool-field :is(input[type=text],select) {min-height:44px;font-size:16px}
  .qr-tool-type-controls .qr-tool-range-field input[type=range] {height:44px}
  .qr-tool-type-controls .qr-tool-text-color label {grid-template-columns:30px minmax(0,1fr)}
  .qr-tool-text-color input[type=color] {width:30px;height:44px}
  .qr-tool-text-color input.qr-tool-hex {width:100%;min-height:44px;height:44px;padding:6px 4px;font-size:16px}
}
@media(prefers-reduced-motion:reduce) {.qr-tool-canvas-wrap.is-loading::after{animation:none}}

/* Use the QR page's available space without changing other dashboard views. */
#qrView .qr-tool-layout .button,#qrToolPreviewDialog>.button {font-size:14px!important;line-height:1.5;min-height:44px!important}
.qr-tool-section-heading>.button {white-space:normal}
.qr-tool-settings-body .qr-tool-field,.qr-tool-text-color label {font-size:14px}
.qr-tool-check {font-size:14px}
.qr-tool-readability,.qr-tool-status {font-size:13px;line-height:1.6}
@container (max-width:520px) {
  .qr-tool-control-grid {grid-template-columns:minmax(0,1fr)}
  .qr-tool-frame-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (max-width:680px) {
  .qr-tool-text-layout,.qr-tool-presets-grid,.qr-tool-scan-controls {grid-template-columns:minmax(0,1fr)}
  .qr-tool-frame-controls {grid-template-columns:minmax(0,1fr);gap:10px}
  .qr-tool-scan-controls {gap:8px}
  .qr-tool-scan-controls .qr-tool-margin-field {max-width:none}
  .qr-tool-style-grid,.qr-tool-color-grid {grid-template-columns:minmax(0,1fr);gap:10px}
  .qr-tool-style-grid .qr-tool-choice-row {grid-template-columns:repeat(4,minmax(0,1fr))}
  .qr-tool-style-grid .qr-tool-eye-options .qr-tool-choice-row {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container (max-width:340px) {
  .qr-tool-settings-card {padding:10px}
  .qr-tool-font-detail {grid-template-columns:minmax(0,1fr)}
  .qr-tool-setting-card {padding:10px}
  .qr-tool-style-grid .qr-tool-choice-row {grid-template-columns:repeat(2,minmax(0,1fr))}
  .qr-tool-color-grid .qr-tool-color-presets {grid-template-columns:repeat(2,minmax(0,1fr))}
  .qr-tool-color-settings .qr-tool-color-fields {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px) {
      .qr-tool-source-tabs {margin-bottom:10px}
  .qr-tool-link-summary {padding:8px 10px}
}
@media(max-width:360px) {
  .qr-tool-choice-row {grid-template-columns:repeat(2,minmax(0,1fr))}
}

@font-face {font-family:'Lemy QR Hand';src:url('/assets/little-deck/fonts/Mali-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face {font-family:'Lemy QR Hand';src:url('/assets/little-deck/fonts/Mali-Bold.woff2') format('woff2');font-weight:600 800;font-style:normal;font-display:swap}
@font-face {font-family:'Lemy QR Korean';src:url('/assets/i18n-fonts/ko.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face {font-family:'Lemy QR Japanese';src:url('/assets/i18n-fonts/ja.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face {font-family:'Lemy QR Chinese';src:url('/assets/i18n-fonts/zh-CN.woff2') format('woff2');font-weight:100 900;font-display:swap}
.qr-page {
  --sans:Manrope,system-ui,sans-serif;
  --ui-text:#f5eaf0;--ui-muted:#c3afbd;--ui-faint:#ac91a2;
  --ui-panel:#17131c;--ui-field:#100e16;--ui-soft:#2c1d2b;
  --ui-border:rgba(255,182,210,.16);--ui-accent:#ffabd0;
  --ui-accent-border:rgba(255,171,208,.4);--ui-accent-soft:rgba(225,29,116,.13);
  --ui-focus:#ffb0d0;--ui-danger-text:#ffb0b7;
  --ui-success-text:#b3d3bc;--ui-success-border:rgba(179,211,188,.23);--ui-success-bg:rgba(93,143,111,.07);
  --ui-warning-text:#ead0a3;--ui-warning-border:rgba(234,208,163,.25);--ui-warning-bg:rgba(174,129,68,.1);
}
.qr-page #qrView {scroll-margin-top:24px}
.qr-page .qr-tool-layout {grid-template-columns:minmax(270px,315px) minmax(0,1fr);gap:24px;max-width:none}
.qr-page .qr-tool-editor {gap:20px}
.qr-page :is(.qr-tool-source,.qr-tool-customize,.qr-tool-preview-panel) {padding:24px;border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.025),transparent 60%),var(--ui-panel)}
.qr-page .qr-tool-preview-panel {top:24px;box-shadow:0 18px 44px rgba(0,0,0,.2)}
.qr-page :is(.qr-tool-section-heading h3,.qr-tool-preview-panel h3,.qr-tool-dialog-heading h3) {font-family:'Cormorant Garamond',Georgia,serif;font-size:28px;line-height:1.15;font-weight:600;letter-spacing:0}
.qr-page .qr-tool-section-heading {align-items:center;margin-bottom:20px}
.qr-page :is(.qr-tool-field,.qr-tool-source label,.qr-tool-option-group legend) {font-size:13px;font-weight:650}
.qr-page .qr-tool-source-tabs[hidden],.qr-page [hidden] {display:none!important}
.qr-page .qr-tool-field :is(input[type=text],select),.qr-page .qr-tool-source :is(input[type=text],select) {border-radius:10px;font-weight:500;font-size:14px;min-height:46px}
.qr-page .qr-tool-link-summary {background:transparent;border:0;border-top:1px solid var(--ui-border);border-radius:0;padding:16px 0 0;margin-top:16px;font-size:12px}
.qr-page .qr-tool-link-summary code {color:#ecc7d9;font-size:13px;font-weight:500}
.qr-page .qr-tool-design-preset {font-size:12px;padding:9px 10px;font-weight:650;border-radius:10px;gap:6px}
.qr-page .qr-tool-quick-presets {grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;padding:0;margin:0}
.qr-page .qr-tool-design-preset .qr-tool-swatch {width:18px;height:18px}
.qr-page .qr-tool-option-group {margin-bottom:22px}
.qr-page .qr-tool-frame-grid {gap:10px}
.qr-page .qr-tool-frame {padding:8px;border-radius:12px;font-weight:600;font-size:12px;gap:8px}
.qr-page .qr-tool-frame-thumb,.qr-page .qr-tool-frame-placeholder {border-radius:7px;max-height:105px}
.qr-page .qr-tool-frame>span:last-child {min-height:20px}
.qr-page .qr-tool-frame:hover {transform:translateY(-1px)}
.qr-page :is(.qr-tool-frame[aria-pressed=true],.qr-tool-choice[aria-pressed=true]) {box-shadow:inset 0 0 0 1px rgba(255,171,208,.25)}
.qr-page .qr-tool-canvas-wrap {min-height:246px;padding:12px;margin-top:18px;background:repeating-conic-gradient(#f2edf1 0 25%,#fff 0 50%) 50%/20px 20px;border:0;border-radius:14px}
.qr-page .qr-tool-preview-placeholder {font:500 72px/1 'Cormorant Garamond',Georgia,serif;color:#74536b}
.qr-page .qr-tool-canvas-wrap canvas {max-width:100%;border-radius:4px}
.qr-page :is(.qr-tool-choice,.qr-tool-color-preset,.qr-tool-setting-card>legend,.qr-tool-check,.qr-tool-settings-body .qr-tool-field,.qr-tool-text-color label) {font-size:12px}
.qr-page :is(.qr-tool-setting-card,.qr-tool-settings-card,.qr-tool-compact-group) {border-radius:12px}
.qr-page .qr-tool-compact-group {margin-top:12px;background:rgba(10,9,15,.45)}
.qr-page .qr-tool-compact-group>summary {font-size:13px;padding:12px;min-height:48px;font-weight:650}
.qr-page .qr-tool-settings-body {padding:4px 12px 12px}
.qr-page .qr-tool-hint {font-size:12px;line-height:1.8}
.qr-page .qr-tool-color-presets .qr-tool-preset-label {overflow-wrap:anywhere}
.qr-page .qr-tool-color-settings .qr-tool-custom-colors input.qr-tool-hex {font-size:13px}
.qr-page .qr-tool-export-fields {margin-top:18px}
.qr-page .qr-tool-preview-note {margin-top:14px;font-size:11px;line-height:1.8}
.qr-page .qr-tool-readability {font-size:11px;padding:9px 12px;margin-top:12px;text-align:left;line-height:1.8}
.qr-page .qr-tool-status {font-size:12px;line-height:1.8;margin-top:12px}
.qr-page :is(#qrView .button,#qrToolPreviewDialog .button) {display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px;padding:10px 16px;border:1px solid rgba(255,182,210,.22);border-radius:999px;background:transparent;color:#f6deeb;font:650 12px/1.5 Manrope,system-ui,sans-serif;text-decoration:none;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.qr-page :is(#qrView .button-rose,#qrToolPreviewDialog .button-rose) {background:linear-gradient(135deg,#e11d74,#b51c64);border-color:rgba(255,171,208,.35);color:white;box-shadow:0 7px 22px rgba(225,29,116,.16)}
.qr-page :is(#qrView .button:hover,#qrToolPreviewDialog .button:hover) {background:rgba(225,29,116,.2);border-color:rgba(255,171,208,.6)}
.qr-page :is(#qrView .button-rose:hover,#qrToolPreviewDialog .button-rose:hover) {background:#c92170}
.qr-page :is(#qrView .button:disabled,#qrToolPreviewDialog .button:disabled) {opacity:.45;cursor:not-allowed}
.qr-page .workflow-file-picker {display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.qr-page .workflow-native-file {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.qr-page .workflow-file-name {font-size:12px;overflow-wrap:anywhere;color:var(--ui-muted);font-weight:500;max-width:100%}
.qr-page .qr-tool-mobile-preview {background:linear-gradient(135deg,#e11d74,#b51c64);border-color:rgba(255,171,208,.35);color:#fff;font-weight:650;box-shadow:0 10px 32px rgba(0,0,0,.4)}
.qr-page-error {padding:20px;border:1px solid rgba(255,176,183,.35);border-radius:16px;color:#ffb0b7;background:#2b1720;line-height:1.8}
.qr-page-help h3 {margin:0 0 8px;color:#f2dce7;font-size:14px;font-weight:650}
.qr-page-help h3:not(:first-child) {margin-top:24px}
.qr-page .qr-tool-preview-dialog {border-color:rgba(255,182,210,.25);background:#17131c;color:#f5eaf0}
@media(max-width:1120px) {.qr-page .qr-tool-layout {grid-template-columns:270px minmax(0,1fr);gap:18px}.qr-page :is(.qr-tool-source,.qr-tool-customize,.qr-tool-preview-panel){padding:20px}}
@media(max-width:980px) {.qr-page .qr-tool-layout {grid-template-columns:minmax(0,1fr)}.qr-page .qr-tool-preview-panel{position:static}.qr-page .qr-tool-canvas-wrap{width:min(100%,360px);margin:16px auto 0}.qr-page .qr-tool-preview-panel .qr-tool-export-fields{max-width:360px;margin:18px auto 12px}.qr-page .qr-tool-preview-panel>.qr-tool-readability {max-width:360px;margin:12px auto}.qr-page .qr-tool-canvas-wrap{min-height:280px}}
@media(max-width:600px) {.qr-page .qr-tool-layout,.qr-page .qr-tool-editor{gap:16px}.qr-page :is(.qr-tool-source,.qr-tool-customize,.qr-tool-preview-panel){padding:18px 14px;border-radius:18px}.qr-page :is(.qr-tool-section-heading h3,.qr-tool-preview-panel h3){font-size:26px}.qr-page .qr-tool-field :is(input[type=text],select),.qr-page .qr-tool-source :is(input[type=text],select),.qr-page .qr-tool-color-settings .qr-tool-custom-colors input.qr-tool-hex {font-size:16px}.qr-page .qr-tool-quick-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.qr-page .qr-tool-frame-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qr-page .qr-tool-frame-thumb,.qr-page .qr-tool-frame-placeholder{max-height:130px}.qr-page .qr-tool-mobile-preview{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));min-height:48px;padding:11px 18px}}
@media(prefers-reduced-motion:reduce) {.qr-page .qr-tool-frame:hover{transform:none}.qr-page :is(#qrView .button,#qrToolPreviewDialog .button){transition:none}}
