.mobile-app-panel {
  padding: clamp(18px, 2.2vw, 32px);
}

.mobile-app-install-grid {
  display: grid;
  grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

.mobile-app-install-methods {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.mobile-app-qr-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.mobile-app-qr-frame {
  width: min(100%, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.mobile-app-qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.mobile-app-qr-card strong {
  color: var(--text);
  font-size: 16px;
}

.mobile-app-qr-card small {
  max-width: 280px;
  color: var(--muted);
  line-height: 1.5;
}

.mobile-app-barcode-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.mobile-app-barcode-frame {
  width: 100%;
  min-height: 116px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.mobile-app-barcode-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-app-barcode-card strong {
  color: var(--text);
  font-size: 16px;
}

.mobile-app-barcode-card small {
  max-width: 340px;
  color: var(--muted);
  line-height: 1.5;
}

.mobile-app-details {
  min-width: 0;
}

.mobile-app-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.mobile-app-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.mobile-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-app-heading span,
.mobile-app-heading h2,
.mobile-app-heading small {
  display: block;
}

.mobile-app-heading > div > span,
.mobile-app-heading small {
  color: var(--muted);
}

.mobile-app-heading h2 {
  margin: 2px 0 3px;
  font-size: clamp(20px, 2vw, 26px);
}

.mobile-app-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.mobile-app-meta > div {
  min-width: 0;
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-app-meta .wide {
  grid-column: 1 / -1;
}

.mobile-app-meta dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.mobile-app-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 750;
}

#mobile-app-checksum {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.mobile-app-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.mobile-app-actions .primary-action,
.mobile-app-actions .secondary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 20px;
  text-decoration: none;
}

.mobile-app-install-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--soft, rgba(127, 137, 154, .08));
  line-height: 1.5;
}

.mobile-app-short-link {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mobile-app-short-link span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-app-short-link strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.mobile-app-install-note strong {
  color: var(--text);
}

@media (max-width: 760px) {
  .mobile-app-panel {
    padding: 18px 16px;
  }

  .mobile-app-install-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .mobile-app-qr-frame {
    width: min(76vw, 260px);
  }

  .mobile-app-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mobile-app-heading > .network-setting-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .mobile-app-meta {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-app-meta > div:nth-child(3),
  .mobile-app-meta .wide {
    grid-column: 1 / -1;
  }

  .mobile-app-actions {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .mobile-app-meta {
    grid-template-columns: 1fr;
  }

  .mobile-app-meta > div,
  .mobile-app-meta > div:nth-child(3),
  .mobile-app-meta .wide {
    grid-column: 1;
  }
}
