.app-download-panel {
  margin: 28px 0 0;
  padding: 24px;
  color: #ecfdf5;
  background: linear-gradient(135deg, #052e2b 0%, #064e3b 54%, #047857 100%);
  border: 1px solid rgba(110, 231, 183, 0.35);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(6, 78, 59, 0.2);
}

.app-download-panel .app-download-eyebrow {
  margin: 0 0 8px;
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-download-panel h2 {
  margin: 0 0 8px;
  color: #fff;
}

.app-download-panel p {
  margin: 0 0 18px;
}

.app-download-panel .app-download-link {
  display: inline-block;
  padding: 12px 16px;
  color: #052e2b;
  background: #fff;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.app-download-panel .app-download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.app-download-panel .app-open-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  color: #ecfdf5;
  background: rgba(5, 46, 43, 0.36);
  border: 1px solid rgba(167, 243, 208, 0.65);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.app-download-panel .app-open-link:hover {
  background: rgba(5, 46, 43, 0.6);
}

.app-download-panel .app-open-link:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

@media (max-width: 540px) {
  .app-download-panel .app-download-actions,
  .app-download-panel .app-download-actions > a,
  .app-download-panel .app-download-actions > button {
    width: 100%;
  }

  .app-download-panel .app-download-actions > a,
  .app-download-panel .app-download-actions > button {
    text-align: center;
  }
}

.app-download-panel .app-download-link:focus-visible {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

.app-handoff-backdrop {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(2, 6, 23, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.app-handoff-dialog {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 32px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.42);
  text-align: center;
}

.app-handoff-dialog[dir="rtl"] {
  text-align: right;
}

.app-handoff-close {
  appearance: none;
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: #334155;
  background: #f1f5f9;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 28px;
  line-height: 1;
}

.app-handoff-dialog[dir="rtl"] .app-handoff-close {
  right: auto;
  left: 12px;
}

.app-handoff-close:hover {
  color: #052e2b;
  background: #d1fae5;
}

.app-handoff-title {
  margin: 8px 36px 10px;
  color: #052e2b;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
}

.app-handoff-description {
  max-width: 42ch;
  margin: 0 auto 20px;
  color: #475569;
  line-height: 1.6;
}

.app-handoff-qr-frame {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 12px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  direction: ltr;
}

.app-handoff-qr-frame[hidden] {
  display: none;
}

.app-handoff-qr {
  display: block;
  width: min(280px, 100%);
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
}

.app-handoff-status {
  margin: 0 0 18px;
  color: #475569;
  font-weight: 700;
}

.app-handoff-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 18px;
  color: #fff;
  background: #047857;
  border-radius: 9px;
  font-weight: 900;
  text-decoration: none;
}

.app-handoff-store-link:hover {
  background: #065f46;
}

.app-handoff-close:focus-visible,
.app-handoff-store-link:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

@media (max-width: 540px) {
  .app-handoff-backdrop {
    align-items: end;
    padding: 12px;
  }

  .app-handoff-dialog {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 28px 20px 22px;
    border-radius: 18px 18px 12px 12px;
  }

  .app-handoff-title {
    margin-inline: 34px;
  }

  .app-handoff-store-link {
    width: 100%;
  }
}
