.go-wild { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 18px; background: linear-gradient(115deg, #125d99, #167e97); color: white; font-size: .86rem; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px #186ca328; }
.go-wild:hover { background: linear-gradient(115deg, #134d7c, #126779); box-shadow: 0 5px 16px #186ca345; }
.qr-details .go-wild { margin-top: 2px; }
.published-qr-dialog .go-wild { margin: 18px auto 0; }
.qr-style-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; }
.qr-style-dialog[open] { display: flex; flex-direction: column; }
.qr-style-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: 10px 28px 0; }
.qr-style-header form, .qr-style-save-row form { margin: 0; }
.qr-style-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 28px 28px; }
.qr-style-dialog .dialog-close { position: static; float: none; width: auto; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.qr-style-dialog .eyebrow { color: var(--deep); margin: 0; font-size: .7rem; }
.qr-style-dialog h2 { margin-bottom: 7px; padding-right: 25px; font-size: 1.85rem; letter-spacing: -.04em; }
.qr-style-intro { margin: 0 0 24px; color: var(--muted); font-size: .9rem; }
.qr-style-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.qr-style-art { border: 1px solid var(--line); border-radius: 20px; padding: 14px; background: #f0f7fc; text-align: center; }
[data-style-preview] { background: #fff; border-radius: 12px; overflow: hidden; }
[data-style-preview] svg { display: block; width: 100%; height: auto; }
.qr-style-art p { margin: 10px 0 0; color: var(--muted); font-size: .68rem; overflow-wrap: anywhere; line-height: 1.45; }
.qr-style-controls fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.qr-style-controls legend, .qr-style-controls > label { font-size: .8rem; font-weight: 750; margin-bottom: 10px; }
.qr-style-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.qr-style-choice { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 9px 5px; color: var(--ink); cursor: pointer; font-size: .78rem; font-weight: 700; }
.qr-style-choice[aria-pressed=true] { border: 2px solid var(--deep); background: #edf7fd; padding: 8px 4px; }
[data-style-sample] { display: block; width: 62px; height: 62px; margin: 0 auto 5px; }
[data-style-sample] svg { width: 100%; height: 100%; display: block; }
.qr-color-fields { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.qr-color-fields input[type=color] { width: 48px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: white; flex-shrink: 0; }
.qr-color-fields input[type=text] { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 9px 12px; font-size: 1rem; font-family: ui-monospace, monospace; text-transform: uppercase; }
.qr-color-fields input[aria-invalid=true] { border-color: #a22b24; }
.qr-color-swatches { display: flex; justify-content: space-between; gap: 3px; }
.qr-color-swatches button { display: grid; place-items: center; width: 40px; height: 40px; padding: 7px; border: 2px solid transparent; border-radius: 50%; background: transparent; cursor: pointer; }
.qr-color-swatches button::before { content: ''; background: var(--swatch); width: 24px; height: 24px; border-radius: 50%; }
.qr-color-swatches button[aria-pressed=true] { border-color: var(--swatch); }
.qr-style-softness label { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; margin-bottom: 6px; }
.qr-style-softness output { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.qr-style-softness input { width: 100%; height: 30px; margin: 0; padding: 0; accent-color: var(--deep); cursor: pointer; }
.qr-style-warning, .qr-style-status.is-error { color: #a22b24; }
.qr-style-warning { font-size: .8rem; margin: 14px 0 0; }
.qr-style-status { min-height: 1.5em; font-size: .8rem; margin: 12px 0 8px; }
.qr-style-save-row { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.qr-style-save-row .button { padding: 12px 20px; }
.qr-style-save-row > span { flex: 1 1 100%; font-size: .75rem; color: var(--muted); }
.qr-style-exports { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; }
.qr-style-exports .text-button { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; }
.qr-style-exports [aria-disabled=true] { opacity: .45; cursor: default; }
@media (max-width: 600px) {
  .qr-style-header { padding-inline: 22px; }
  .qr-style-body { padding: 12px 22px 22px; }
  .qr-style-dialog h2 { font-size: 1.65rem; }
  .qr-style-intro { margin-bottom: 12px; }
  .qr-style-layout { grid-template-columns: 1fr; gap: 18px; }
  .qr-style-art { width: min(100%, 208px); padding: 9px; margin: auto; }
  .qr-style-art p { font-size: .65rem; }
  .qr-style-controls fieldset { margin-bottom: 12px; }
  .qr-style-choice { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; }
  [data-style-sample] { width: 36px; height: 36px; margin: 0; }
  .qr-style-status { margin-top: 8px; }
  .qr-style-save-row { padding-top: 14px; }
}

@media (max-width: 600px) and (max-height: 860px) {
  .qr-style-art { width: min(100%, 184px); }
  .qr-style-art p { margin-top: 6px; }
  .qr-style-exports { margin-top: 6px; }
}
.qr-style-dialog { width: min(850px, calc(100% - 24px)); }
.qr-style-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.qr-style-art { position: sticky; top: 0; }
.qr-design-tabs { display: grid; grid-template-columns: 1fr 1fr .8fr 1.4fr; gap: 3px; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: #eef4f8; }
.qr-design-tabs button { min-height: 40px; border: 0; border-radius: 9px; padding: 7px 4px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 750; cursor: pointer; }
.qr-design-tabs button[aria-selected=true] { color: var(--deep); background: white; box-shadow: 0 2px 6px #17304712; }
[data-style-tools] { min-height: 290px; }
.qr-style-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qr-eye-shapes { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
.qr-eye-shapes label { font-size: .8rem; }
.qr-eye-shapes select { width: 100%; min-width: 0; margin-top: 9px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 7px; background: white; color: var(--ink); font-size: 1rem; }
.qr-eye-match { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.qr-eye-match input { width: 20px; height: 20px; margin: 0; accent-color: var(--deep); }
.qr-logo-upload { width: 100%; min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; border: 1.5px dashed #90b5cd; border-radius: 15px; background: #f5faff; color: var(--deep); font-weight: 750; cursor: pointer; }
.qr-logo-upload:hover { background: #eaf5fd; }
.qr-logo-upload > .fa-icon { width: 26px; height: 26px; }
.qr-logo-upload small { color: var(--muted); font-size: .7rem; font-weight: 400; }
.qr-logo-settings { margin-top: 20px; }
.qr-logo-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: .8rem; }
.qr-logo-heading .text-button { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; }
.qr-logo-note { margin: 14px 0 0; font-size: .75rem; color: var(--muted); }
.qr-logo-options { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qr-logo-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; margin: 0; padding: 12px; cursor: pointer; }
.qr-logo-option ~ .qr-logo-option { border-top: 1px solid var(--line); }
.qr-logo-option strong { display: block; font-size: .8rem; }
.qr-logo-option small { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 400; line-height: 1.4; }
.qr-logo-option input { appearance: none; flex: 0 0 38px; width: 38px; height: 22px; padding: 2px; margin: 0; border: 1px solid #8195a5; border-radius: 999px; background: #8195a5; cursor: pointer; }
.qr-logo-option input::before { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: white; }
.qr-logo-option input:checked { background: var(--deep); border-color: var(--deep); }
.qr-logo-option input:checked::before { transform: translateX(16px); }
.qr-logo-option input:focus-visible { outline: 3px solid #48bada; outline-offset: 3px; }
.qr-logo-option:has(input:disabled) { opacity: .5; cursor: default; }
.qr-style-warning { margin-top: 10px; }
@media(max-width:600px) {
  .qr-style-layout { grid-template-columns: 1fr; gap: 14px; }
  .qr-style-art { position: static; width: min(100%,184px); }
  .qr-style-art p { font-size: .62rem; }
  .qr-design-tabs { margin-bottom: 14px; }
  [data-style-tools] { min-height: 240px; }
  .qr-style-choice { flex-direction: column; gap: 4px; font-size: .72rem; }
  .qr-style-choice [data-style-sample] { width: 30px; height: 30px; }
  .qr-style-controls fieldset { margin-bottom: 10px; }
  .qr-style-controls legend { margin-bottom: 7px; }
  .qr-color-fields { margin-bottom: 5px; }
  .qr-style-status { margin: 2px 0 6px; }
  .qr-style-save-row { padding-top: 12px; }
  .qr-logo-upload { min-height: 100px; gap: 7px; padding: 12px; }
  .qr-logo-settings { margin-top: 14px; }
}

.qr-logo-range label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 3px; font-size: .8rem; }
.qr-logo-range output { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qr-logo-range input[type=range] { display: block; width: 100%; min-height: 36px; margin: 0; padding: 0; border: 0; accent-color: var(--deep); cursor: pointer; }
.qr-logo-range .qr-logo-note { margin-top: 3px; }
.qr-logo-outline-tools { padding: 0 12px 8px; }

.qr-shape-choices { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.qr-shape-choices button { min-height: 104px; padding: 12px 5px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-size: .78rem; cursor: pointer; }
.qr-shape-choices button[aria-pressed=true] { border: 2px solid var(--deep); background: #edf7fd; color: var(--deep); font-weight: 750; }
.qr-shape-choices svg { display: block; margin: 0 auto 6px; width: 44px; height: 44px; fill: currentColor; }
.qr-style-warning.is-caution { color: #856016; }
@media(max-width:600px) { .qr-design-tabs button { font-size: .7rem; } }

.qr-shared-shapes { margin-top:8px; max-height:280px; overflow:auto; padding:2px; }
.qr-shared-shapes:empty { display:none; }
.qr-shared-shapes button { overflow-wrap:anywhere; min-width:0; }

.go-wild-copy{display:flex;flex-direction:column;align-items:center;gap:3px;line-height:1.15}.go-wild-copy small{font-size:.64rem;font-weight:500;letter-spacing:.01em}
.qr-saved-photos{margin:16px 0}.qr-saved-photos summary{cursor:pointer;color:#147dc0;font-weight:600}.qr-saved-photos [data-logo-photo-list]{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:12px;margin-top:12px}.qr-saved-photos button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px;border:1px solid #bdcfdd;border-radius:10px;background:#f3f8fb;color:#173047;font:inherit;cursor:pointer;overflow-wrap:anywhere}.qr-saved-photos img{width:72px;height:72px;object-fit:contain;background:repeating-conic-gradient(#e8eef2 0% 25%,#fff 0% 50%) 0 0/16px 16px}.qr-saved-photos button:focus-visible{outline:3px solid #1681ba;outline-offset:2px}
