/* Download choices stay in a modal; the original page badges use style.css. */
.download-dialog { margin: auto; width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px; border: 0; border-radius: var(--radius-lg); background: var(--white); color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.download-dialog::backdrop { background: rgba(19,19,19,.55); }
.download-dialog-open { overflow: hidden; }
.download-dialog [hidden] { display: none !important; }
.download-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.download-dialog-header h2 { font-size: 24px; line-height: 1.3; }
.download-close { flex-shrink: 0; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--gray-100); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.download-close:hover { background: var(--gray-200); }
.download-dialog-desc, .download-dialog-options p, .apk-pending { color: var(--text-light); font-size: 14px; }
.store-unavailable { margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--blue-light); color: var(--blue-hover); font-size: 14px; }
.download-dialog-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.download-dialog-options h3 { font-size: 18px; margin-bottom: 12px; }
.download-apk-option { display: flex; flex-direction: column; align-items: stretch; padding: 20px; border-radius: var(--radius); background: var(--gray-50); }
.download-action { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid var(--blue); border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; text-align: center; cursor: pointer; margin-top: 24px; background: var(--blue); color: white; min-height: 48px; }
.download-action:hover { background: var(--blue-hover); color: white; }
.download-action:disabled { background: var(--gray-200); color: var(--gray-600); border-color: var(--gray-200); cursor: not-allowed; }
.download-qr-option { text-align: center; }
.qr-image { width: 192px; max-width: 100%; margin: 0 auto 12px; background: white; border: 1px solid var(--gray-200); border-radius: 12px; padding: 8px; }
.qr-image svg { display: block; width: 100%; height: auto; }
.download-qr-option a { display: inline-block; font-size: 14px; padding-top: 8px; }
.apk-pending { margin-top: 20px; text-align: center; }
.download-dialog :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 540px) {
  .download-dialog { padding: 20px; }
  .download-dialog-header h2 { font-size: 21px; }
  .download-dialog-options { grid-template-columns: 1fr; gap: 20px; }
  .download-apk-option { padding: 16px; }
  .download-action { margin-top: 16px; }
}
