/* Reuse the shared DOM tokens; QR ink/paper deliberately do not follow the theme. */
.blakulla-profile-qr-dialog {
  box-sizing:border-box; width:min(calc(100vw - 24px),420px);
  max-width:none; max-height:calc(100dvh - 24px); overflow:auto;
  margin:auto; padding:20px; border:1px solid var(--bk-accent);
  border-radius:20px; background:var(--bk-floating,var(--bk-shell-background));
  color:var(--bk-shell-text); font-family:Inter,system-ui,sans-serif; line-height:1.5;
  overscroll-behavior:contain;
}
.blakulla-profile-qr-dialog::backdrop {background:var(--bk-dialog-scrim,rgba(7,8,20,.68));}
.blakulla-profile-qr-title {margin:0 0 8px;font-size:1.3125em;font-weight:600;}
.blakulla-profile-qr-description {margin:0 0 18px;font-size:.875em;}
.blakulla-profile-qr-image {
  box-sizing:border-box; width:256px; max-width:100%; padding:32px;
  margin:0 auto 16px; background:white; color:black;
  forced-color-adjust:none;
}
.blakulla-profile-qr-image canvas,.blakulla-profile-qr-image img {
  max-width:100%; height:auto; image-rendering:pixelated;
}
.blakulla-profile-qr-url {overflow-wrap:anywhere;text-align:center;font-size:.875em;margin:0 0 16px;user-select:text;}
.blakulla-profile-qr-actions {display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;}
.blakulla-profile-qr-actions button {
  border:1px solid var(--bk-accent);border-radius:12px;min-height:48px;padding:10px 14px;
  background:transparent;color:inherit;font:inherit;font-weight:500;cursor:pointer;
  overflow-wrap:anywhere;max-width:100%;
}
.blakulla-profile-qr-actions button:first-child {background:var(--bk-shell-text);color:var(--bk-shell-background);border-color:var(--bk-shell-text);}
.blakulla-profile-qr-actions button:focus-visible {outline:2px solid var(--bk-accent);outline-offset:3px;}
.blakulla-profile-qr-result {margin:10px 0 0;font-size:.8125em;}
.blakulla-profile-qr-dialog [hidden] {display:none!important;}
@media(max-width:360px) {.blakulla-profile-qr-dialog {padding:16px;}}
@media(prefers-reduced-motion:no-preference) {
  :root:not([data-blakulla-reduced-motion="true"]) .blakulla-profile-qr-dialog[open] {
    animation:blakulla-qr-appear var(--bk-motion-panel,200ms) var(--bk-motion-ease,ease-out) both;
  }
  @keyframes blakulla-qr-appear {from {opacity:0;transform:translateY(16px);}to {opacity:1;transform:translateY(0);}}
}
@media(forced-colors:active) {
  .blakulla-profile-qr-dialog,.blakulla-profile-qr-actions button {border-color:ButtonText;}
  .blakulla-profile-qr-actions button:focus-visible {outline-color:Highlight;}
}
