.qr-app__intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.xonto-header__inner {
  overflow: visible;
}

.qr-header-type-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.qr-header-type-menu__button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  border: 1px solid rgba(47, 128, 255, .24);
  border-radius: 8px;
  background: #f4f8ff;
  color: #0f172a;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.qr-header-type-menu__button:hover,
.qr-header-type-menu__button:focus-visible,
.qr-header-type-menu.is-open .qr-header-type-menu__button {
  border-color: rgba(47, 128, 255, .48);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 128, 255, .16), 0 10px 22px rgba(15, 23, 42, .10);
}

.qr-header-type-menu__label {
  color: #0f5ed7;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.qr-header-type-menu__current {
  max-width: 150px;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-header-type-menu__chevron {
  color: #0f5ed7;
  font-size: 16px;
  line-height: 1;
  transition: transform .16s ease;
}

.qr-header-type-menu.is-open .qr-header-type-menu__chevron {
  transform: rotate(180deg);
}

.qr-header-type-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1010;
  width: min(420px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 50px rgba(15, 23, 42, .18);
}

.qr-header-type-menu__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.qr-header-type-menu__item,
.qr-header-type-menu__all {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.qr-header-type-menu__item:hover,
.qr-header-type-menu__item:focus-visible,
.qr-header-type-menu__all:hover,
.qr-header-type-menu__all:focus-visible {
  background: #f4f8ff;
  color: #0f5ed7;
  outline: none;
}

.qr-header-type-menu__item.is-active {
  background: #eaf2ff;
  color: #0f5ed7;
}

.qr-header-type-menu__all {
  justify-content: center;
  margin-top: 8px;
  border-top: 1px solid rgba(229, 231, 235, .95);
  color: #0f5ed7;
}

.xonto-legal-page {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
}

.xonto-legal-page h1 {
  max-width: 780px;
  margin: 0 0 18px;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.xonto-legal-page h2 {
  margin: 32px 0 10px;
  color: #111827;
  font-size: 1.18rem;
  line-height: 1.25;
}

.xonto-legal-page p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 1rem;
  line-height: 1.68;
}

.xonto-legal-page a {
  color: #0f5ed7;
  font-weight: 750;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.xonto-legal-page code {
  padding: 2px 5px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #111827;
  font-size: .92em;
}

.xonto-legal-page__meta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(47, 128, 255, .22);
  border-radius: 8px;
  background: #f4f8ff;
  color: #173b6d;
  font-weight: 750;
  line-height: 1.35;
}

.qr-app__intro > div {
  min-width: 0;
  flex: 1 1 auto;
}

.qr-app__eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr-app__intro h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.qr-app__intro p:not(.qr-app__eyebrow) {
  max-width: 850px;
  margin: 12px 0 0;
  color: #526071;
  line-height: 1.55;
}

.qr-app__privacy-note {
  flex: 0 1 300px;
  max-width: 300px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 128, 255, .22);
  border-radius: 8px;
  background: #f4f8ff;
  color: #173b6d;
  font-weight: 700;
  line-height: 1.35;
}

.qr-type-hero {
  align-items: stretch;
}

.qr-type-hero__media {
  flex: 0 1 420px;
  min-width: 320px;
  margin: 0;
  border: 1px solid rgba(47, 128, 255, .16);
  border-radius: 8px;
  background: #eef5ff;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.qr-type-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  display: block;
  object-fit: cover;
}

.qr-app .card,
.qr-app input,
.qr-app select,
.qr-app textarea,
.qr-app .file-upload-button,
.qr-app .qr-wrap,
.qr-app .quality-box,
.qr-app .info-box,
.qr-app .map-box,
.qr-app .vcard-section,
.qr-app .payload-copy-btn {
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .qr-app__intro {
    display: block;
  }

  .qr-app__privacy-note {
    max-width: none;
    margin-top: 14px;
  }

  .qr-type-hero__media {
    min-width: 0;
    margin-top: 16px;
  }

  .qr-type-hero__media img {
    min-height: 180px;
    max-height: 300px;
  }
}
.qr-app {
      --bg: #f6f7fb;
      --card: #ffffff;
      --text: #1f2937;
      --muted: #6b7280;
      --border: #e5e7eb;
      --primary: var(--xonto-blue, #2f80ff);
      --primary-dark: #0f5ed7;
      --primary-soft: rgba(47, 128, 255, .12);
      --primary-border: rgba(47, 128, 255, .42);
      --primary-shadow: rgba(47, 128, 255, .18);
      --success: #047857;
      --success-soft: #d1fae5;
      --warning: #92400e;
      --warning-soft: #fef3c7;
      --danger: #b42318;
      --danger-soft: #fee2e2;
      --shadow: 0 20px 50px rgba(15, 23, 42, .10);
      --radius: 22px;
      color: var(--text);
    }

    .qr-app * { box-sizing: border-box; }

    .qr-app .visually-hidden {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    .qr-home {
      width: 100%;
    }

    .qr-home__intro {
      margin-bottom: 18px;
    }

    .qr-home-types {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      align-items: stretch;
      margin: 0;
    }

    .qr-home-type {
      min-height: 112px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      padding: 16px;
      border: 1px solid rgba(47, 128, 255, .18);
      border-radius: 8px;
      background: #fff;
      color: var(--text);
      text-decoration: none;
      box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
      transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }

    .qr-home-type--featured {
      min-height: 188px;
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
      padding: 0;
      align-items: stretch;
      overflow: hidden;
      border-color: rgba(47, 128, 255, .26);
      background: #f8fbff;
    }

    .qr-home-type__media {
      display: block;
      aspect-ratio: 16 / 6.8;
      overflow: hidden;
      background: #eef5ff;
      border-bottom: 1px solid rgba(47, 128, 255, .14);
    }

    .qr-home-type__media img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      filter: grayscale(1) saturate(.08) contrast(.94) brightness(1.06);
      opacity: .86;
      transform: scale(1.01);
      transition: filter .22s ease, opacity .22s ease, transform .22s ease;
    }

    .qr-home-type:hover .qr-home-type__media img,
    .qr-home-type:focus-visible .qr-home-type__media img {
      filter: grayscale(0) saturate(1) contrast(1) brightness(1);
      opacity: 1;
      transform: scale(1.025);
    }

    .qr-home-type__body {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      padding: 14px 16px 16px;
    }

    .qr-home-type:hover,
    .qr-home-type:focus-visible {
      transform: translateY(-1px);
      border-color: var(--primary-border);
      background: #f8fbff;
      box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
      outline: none;
    }

    .qr-home-type:focus-visible {
      box-shadow: 0 0 0 3px rgba(47, 128, 255, .24), 0 14px 34px rgba(15, 23, 42, .10);
    }

    .qr-home-type__mark {
      width: 44px;
      min-width: 44px;
      height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(47, 128, 255, .26);
      border-radius: 8px;
      background: var(--primary-soft);
      color: var(--primary-dark);
      font-size: 12px;
      font-weight: 850;
      line-height: 1;
    }

    .qr-home-type__text {
      min-width: 0;
      display: grid;
      gap: 6px;
    }

    .qr-home-type__text strong {
      color: var(--text);
      font-size: 16px;
      line-height: 1.2;
    }

    .qr-home-type__text span {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.35;
    }

    .qr-home-copy {
      max-width: 840px;
      margin-top: 28px;
      padding-top: 22px;
      border-top: 1px solid rgba(229, 231, 235, .95);
    }

    .qr-home-copy h2 {
      margin: 0 0 8px;
      font-size: 1.28rem;
      line-height: 1.25;
    }

    .qr-home-copy p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
    }

    .qr-type-page {
      max-width: 100%;
    }

    .qr-type-switcher {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      margin: 0 0 16px;
      padding: 10px 12px;
      border: 1px solid rgba(47, 128, 255, .18);
      border-radius: 16px;
      background: #f4f8ff;
    }

    .qr-type-switcher__label {
      margin: 0;
      color: var(--primary-dark);
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .qr-type-switcher__select {
      width: auto;
      min-width: 180px;
      height: 40px;
      border-color: rgba(47, 128, 255, .28);
      background: #fff;
    }

    .qr-type-switcher__link {
      color: var(--primary-dark);
      font-size: 13px;
      font-weight: 750;
      text-decoration: none;
    }

    .qr-type-switcher__link:hover {
      text-decoration: underline;
    }

    .qr-type-switcher__hint {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.3;
    }

    .qr-app .qr-type-workspace {
      width: 100%;
      display: grid;
      grid-template-columns: minmax(320px, 1.05fr) minmax(280px, .82fr) minmax(320px, .92fr);
      gap: 18px;
      align-items: start;
    }

    .qr-app .card {
      background: rgba(255, 255, 255, .92);
      border: 1px solid rgba(229, 231, 235, .9);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      backdrop-filter: blur(12px);
      overflow: hidden;
    }

    .qr-app .panel { padding: 26px; }

    .qr-app .form-intro {
      margin: 0 0 18px;
      color: var(--muted);
      line-height: 1.5;
      font-size: 15px;
    }

    .qr-app .section-title {
      margin: 26px 0 14px;
      font-size: 18px;
      letter-spacing: -0.02em;
    }

    .qr-app label {
      display: block;
      margin: 0 0 8px;
      font-weight: 750;
      font-size: 14px;
    }

    .qr-app textarea, .qr-app input, .qr-app select {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: #fff;
      color: var(--text);
      font: inherit;
      outline: none;
      transition: border-color .18s ease, box-shadow .18s ease;
    }

    .qr-app input::placeholder, .qr-app textarea::placeholder {
      color: #c4c9d4;
      opacity: 1;
    }

    .qr-app textarea {
      min-height: 116px;
      resize: vertical;
      padding: 14px 16px;
      line-height: 1.45;
    }

    .qr-app input, .qr-app select {
      height: 46px;
      padding: 0 14px;
    }

    .qr-app textarea:focus, .qr-app input:focus, .qr-app select:focus {
      border-color: rgba(47, 128, 255, .72);
      box-shadow: 0 0 0 4px rgba(47, 128, 255, .14);
    }

    .qr-app .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .qr-app .field.full { grid-column: 1 / -1; }

    .qr-app .hint {
      color: var(--muted);
      font-size: 13px;
      margin-top: 7px;
      line-height: 1.4;
    }

    .qr-app .info-box {
      grid-column: 1 / -1;
      background: #f9fafb;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 12px 14px;
      color: #374151;
      font-size: 13px;
      line-height: 1.45;
    }

    .qr-app .map-tools {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      align-items: center;
    }

    .qr-app .map-tools .hint {
      grid-column: 1 / -1;
      margin-top: 0;
    }

    .qr-app .map-tools .small-btn {
      width: 100%;
      min-height: 44px;
      border-radius: 12px;
      border: 1px solid rgba(47, 128, 255, .24);
      background: #f4f8ff;
      color: var(--primary-dark);
      box-shadow: none;
      font-size: 13px;
      line-height: 1.2;
    }

    .qr-app .map-tools .small-btn:hover {
      background: var(--primary-soft);
      border-color: var(--primary-border);
      box-shadow: 0 8px 18px rgba(47, 128, 255, .12);
    }

    .qr-app .geo-search-row {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .qr-app .map-layer-row {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 180px 1fr;
      gap: 12px;
      align-items: end;
    }

    .qr-app .field.geo-address {
      position: relative;
      z-index: 20;
    }

    .qr-app .address-suggestions {
      position: absolute;
      z-index: 1000;
      left: 0;
      right: 0;
      top: calc(100% - 2px);
      display: none;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
      overflow: hidden;
      max-height: 280px;
      overflow-y: auto;
    }

    .qr-app .address-suggestions.open {
      display: block;
    }

    .qr-app .suggestion-btn {
      width: 100%;
      text-align: left;
      border: 0;
      border-bottom: 1px solid var(--border);
      background: #fff;
      padding: 11px 13px;
      cursor: pointer;
      color: var(--text);
      font: inherit;
      line-height: 1.35;
    }

    .qr-app .suggestion-btn:last-child {
      border-bottom: 0;
    }

    .qr-app .suggestion-btn:hover, .qr-app .suggestion-btn:focus {
      background: #f4f8ff;
      outline: none;
    }

    .qr-app .suggestion-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .qr-app .suggestion-main {
      display: block;
      min-width: 0;
      font-weight: 750;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .qr-app .suggestion-kind {
      flex: 0 0 auto;
      border-radius: 999px;
      padding: 3px 8px;
      background: #f3f4f6;
      color: #4b5563;
      font-size: 11px;
      font-weight: 650;
    }

    .qr-app .suggestion-source {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 12px;
      overflow-wrap: anywhere;
    }

    .qr-app .map-box {
      position: relative;
      grid-column: 1 / -1;
      height: 320px;
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      background: #f9fafb;
    }

    .qr-app .map-box .leaflet-container,
    .qr-app .map-box .leaflet-pane {
      border-radius: inherit;
    }

    .qr-app .map-fallback {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      text-align: center;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.45;
    }

    .qr-app .map-tile-warning {
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: 12px;
      z-index: 900;
      padding: 9px 11px;
      border: 1px solid rgba(202, 138, 4, .28);
      border-radius: 8px;
      background: rgba(255, 251, 235, .96);
      color: #713f12;
      box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
      font-size: 13px;
      font-weight: 650;
      line-height: 1.35;
    }

    .qr-app .settings-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin-top: 18px;
    }

    .qr-app .checkbox-field {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 46px;
      padding: 0 4px;
    }

    .qr-app .checkbox-field input[type="checkbox"] {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
    }

    .qr-app .checkbox-field label {
      margin: 0;
      cursor: pointer;
    }

    .qr-app .preview-actions {
      width: 100%;
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }

    .qr-app .download-intro {
      display: grid;
      gap: 3px;
      text-align: left;
    }

    .qr-app .download-intro strong {
      color: var(--text);
      font-size: 14px;
      line-height: 1.3;
    }

    .qr-app .download-intro span {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .qr-app .download-actions {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }

    .qr-app .download-actions .action {
      width: 100%;
      padding-left: 10px;
      padding-right: 10px;
    }

    .qr-app .download-action {
      position: relative;
      min-height: 54px;
      display: inline-grid;
      grid-template-columns: 22px minmax(0, auto);
      align-items: center;
      justify-content: center;
      gap: 7px;
      line-height: 1;
    }

    .qr-app .download-action--primary {
      grid-column: 1 / -1;
      min-height: 58px;
      font-weight: 800;
    }

    .qr-app .download-icon {
      width: 22px;
      height: 22px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
    }

    .qr-app .download-action--primary .download-icon {
      color: currentColor;
    }

    .qr-app .download-icon svg {
      width: 22px;
      height: 22px;
      display: block;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .qr-app .download-format {
      min-width: 3ch;
      text-align: left;
      font-variant-numeric: tabular-nums;
    }

    .qr-app .download-action::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 9px);
      transform: translateX(-50%) translateY(4px);
      padding: 6px 10px;
      border-radius: 999px;
      background: #111827;
      color: #fff;
      font-size: 12px;
      font-weight: 650;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity .15s ease, transform .15s ease;
      z-index: 30;
      box-shadow: 0 10px 20px rgba(15, 23, 42, .18);
    }

    .qr-app .download-action::before {
      content: "";
      position: absolute;
      left: 50%;
      bottom: calc(100% + 4px);
      transform: translateX(-50%) translateY(4px);
      border: 5px solid transparent;
      border-top-color: #111827;
      opacity: 0;
      pointer-events: none;
      transition: opacity .15s ease, transform .15s ease;
      z-index: 30;
    }

    .qr-app .download-action:hover::after, .qr-app .download-action:focus-visible::after, .qr-app .download-action:hover::before, .qr-app .download-action:focus-visible::before {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .qr-app .download-action:disabled::after, .qr-app .download-action:disabled::before {
      display: none;
    }

    .qr-app .file-upload-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .qr-app .file-upload-row input[type="file"] {
      display: none;
    }

    .qr-app .file-upload-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 13px 18px;
      cursor: pointer;
      font-weight: 650;
      font-size: 14px;
      color: var(--text);
      background: #f3f4f6;
      border: 1px solid var(--border);
      transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    }

    .qr-app .file-upload-button:hover {
      transform: translateY(-1px);
      background: #e5e7eb;
    }

    .qr-app .file-name {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
      overflow-wrap: anywhere;
    }

    .qr-app .quality-box {
      width: 100%;
      margin-top: 14px;
      padding: 12px 14px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: #f9fafb;
      text-align: left;
      font-size: 13px;
      line-height: 1.45;
    }

    .qr-app .quality-head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      margin-bottom: 8px;
      font-weight: 650;
    }

    .qr-app .quality-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 5px 10px;
      font-size: 12px;
      font-weight: 650;
      background: #e5e7eb;
      color: #374151;
      white-space: nowrap;
    }

    .qr-app .quality-pill.good { background: var(--success-soft); color: var(--success); }
    .qr-app .quality-pill.medium { background: var(--warning-soft); color: var(--warning); }
    .qr-app .quality-pill.critical { background: var(--danger-soft); color: var(--danger); }

    .qr-app .quality-list {
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
    }

    .qr-app .logo-preview {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      border: 1px solid var(--border);
      object-fit: contain;
      background: #fff;
      display: none;
    }

    .qr-app .vcard-section {
      grid-column: 1 / -1;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: #fff;
      overflow: hidden;
    }

    .qr-app .vcard-section > summary {
      cursor: pointer;
      padding: 14px 16px;
      font-weight: 700;
      background: #f9fafb;
    }

    .qr-app .vcard-section-grid {
      padding: 16px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .qr-app button.action, .qr-app .small-btn {
      border: 0;
      border-radius: 999px;
      padding: 13px 18px;
      cursor: pointer;
      font-weight: 650;
      font-size: 14px;
      transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    }

    .qr-app .small-btn {
      padding: 10px 14px;
      background: #f3f4f6;
      border: 1px solid var(--border);
      color: var(--text);
    }

    .qr-app button.action:hover, .qr-app .small-btn:hover { transform: translateY(-1px); }

    .qr-app button.action:disabled {
      cursor: not-allowed;
      opacity: .55;
      transform: none;
    }

    .qr-app .primary {
      color: #fff;
      background: var(--primary);
      box-shadow: 0 12px 28px rgba(47, 128, 255, .24);
    }

    .qr-app .primary:hover { background: var(--primary-dark); }

    .qr-app .secondary {
      color: var(--text);
      background: #f3f4f6;
      border: 1px solid var(--border);
    }

    .qr-app .secondary:hover { background: #e5e7eb; }

    .qr-app .settings-card, .qr-app .preview-card {
      position: sticky;
      top: 24px;
      padding: 26px;
    }

    .qr-app .preview-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      text-align: center;
    }

    .qr-app .preview-title {
      margin: 0 0 16px;
      font-size: 22px;
      letter-spacing: -0.03em;
    }

    .qr-app .side-section {
      width: 100%;
      margin-top: 24px;
      text-align: left;
    }

    .qr-app .side-section .section-title {
      margin-top: 0;
    }

    .qr-app .qr-wrap {
      width: 100%;
      min-height: 360px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 22px;
      overflow: hidden;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
    }

    .qr-app #qrcode {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      max-width: 100%;
      max-height: 100%;
    }

    .qr-app #qrcode.empty {
      min-height: 180px;
    }

    .qr-app .qr-empty {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
      padding: 10px 14px;
      border-radius: 999px;
      background: #f9fafb;
      border: 1px solid var(--border);
    }

    .qr-app #qrcode canvas, .qr-app #qrcode svg {
      max-width: min(400px, 100%);
      max-height: 400px;
      width: auto !important;
      height: auto !important;
      border-radius: 10px;
      flex: 0 0 auto;
    }

    .qr-app .status {
      margin: 18px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }

    .qr-app .error { color: var(--danger); font-weight: 750; }
    .qr-app .ok { color: var(--success); font-weight: 750; }
    .qr-app .warning { color: var(--warning); font-weight: 750; }

    .qr-app .payload-box {
      width: 100%;
      margin-top: 20px;
      text-align: left;
    }

    .qr-app .payload-box summary {
      cursor: pointer;
      color: var(--muted);
      font-size: 14px;
      font-weight: 650;
      margin-bottom: 8px;
    }

    .qr-app .payload-hint {
      margin: 0 0 10px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .qr-app .payload-actions {
      display: flex;
      justify-content: flex-end;
      margin-top: 10px;
    }

    .qr-app .payload-copy-btn {
      border-radius: 12px;
      padding: 10px 14px;
      border: 1px solid rgba(47, 128, 255, .24);
      background: #f4f8ff;
      color: var(--primary-dark);
      font-size: 13px;
      box-shadow: none;
    }

    .qr-app .payload-copy-btn:hover {
      background: var(--primary-soft);
      border-color: var(--primary-border);
      box-shadow: 0 8px 18px rgba(47, 128, 255, .12);
    }

    .qr-app #payloadPreview {
      width: 100%;
      min-height: 120px;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 12px;
      background: #f9fafb;
      color: #374151;
    }

    .qr-app .payload-empty {
      display: none;
      margin-top: 8px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
    }

    .qr-app .payload-box.empty #payloadPreview {
      min-height: 72px;
      color: #9ca3af;
    }

    .qr-app .payload-box.empty .payload-empty {
      display: block;
    }

    .qr-app .footer-note {
      margin-top: 18px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    @media (max-width: 1500px) {
      .qr-home-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .qr-app .qr-type-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
      }

      .qr-app .qr-type-workspace .settings-card {
        grid-column: 1 / -1;
      }

      .qr-app .preview-card {
        grid-column: 1 / -1;
        position: static;
      }

      .qr-app .settings-card {
        position: static;
      }
    }

    @media (max-width: 720px) {
      .xonto-legal-page {
        padding: 22px;
      }

      .xonto-legal-page h2 {
        margin-top: 26px;
      }

      .qr-header-type-menu__button {
        max-width: 42vw;
        min-height: 42px;
      }

      .qr-header-type-menu__label {
        display: none;
      }

      .qr-header-type-menu__current {
        max-width: 30vw;
        font-size: 13px;
      }

      .qr-header-type-menu__panel {
        position: fixed;
        top: calc(var(--xonto-header-height) + 8px);
        right: var(--xonto-page-gutter);
        left: var(--xonto-page-gutter);
        width: auto;
        max-height: calc(100dvh - var(--xonto-header-height) - 24px);
        overflow: auto;
      }

      .qr-header-type-menu__list {
        grid-template-columns: 1fr;
      }

      .qr-header-type-menu__item,
      .qr-header-type-menu__all {
        min-height: 44px;
      }

      .qr-app .qr-type-workspace {
        grid-template-columns: 1fr;
      }

      .qr-app .settings-card {
        position: static;
      }

      .qr-type-switcher {
        align-items: stretch;
      }

      .qr-type-switcher__select,
      .qr-type-switcher__link {
        width: 100%;
      }

      .qr-home-types {
        grid-template-columns: 1fr;
      }

      .qr-home-type {
        min-height: 96px;
      }

      .qr-home-type__media {
        aspect-ratio: 16 / 7.4;
      }

      .qr-app .panel, .qr-app .preview-card { padding: 22px; }
      .qr-app .form-grid, .qr-app .settings-grid { grid-template-columns: 1fr; }
      .qr-app button.action { width: 100%; }
      .qr-app .download-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .qr-app .map-tools { grid-template-columns: 1fr; }
      .qr-app .qr-wrap {
        min-height: 300px;
        max-height: 520px;
      }

      .qr-app .map-box { height: 280px; }
    }
