.mobile-download-entry,
.mobile-download-close,
.mobile-download-retry {
  font: inherit;
  cursor: pointer;
}
.mobile-download-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.mobile-download-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--border, #dce2e9);
  border-radius: 7px;
  background: var(--card, #fff);
  color: var(--text-secondary, #526173);
  font-size: 13px;
  white-space: nowrap;
}
.mobile-download-entry:hover { background: #edf1f6; color: #344f70; border-color: #aab9cb; }
.mobile-download-entry:focus-visible,
.mobile-download-dialog :focus-visible { outline: 2px solid #536e8d; outline-offset: 3px; }
.mobile-download-dialog {
  box-sizing: border-box;
  width: min(384px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  border: 1px solid #dce2e9;
  border-radius: 14px;
  background: #fff;
  color: #283747;
  box-shadow: 0 18px 70px #182a4240;
  overflow: auto;
  text-align: center;
  font-family: inherit;
}
.mobile-download-dialog::backdrop { background: #1c2c4666; }
.mobile-download-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.mobile-download-heading h2 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.5; }
.mobile-download-close { width: 38px; height: 38px; border: 0; border-radius: 6px; background: transparent; color: #687787; font-size: 25px; line-height: 1; }
.mobile-download-close:hover { background: #f0f3f7; }
.mobile-download-version { margin: 8px 0 18px; color: #687787; font-size: 13px; }
.mobile-download-dialog .mobile-download-qr { display: block; width: fit-content; margin: 0 auto 22px; color: #526173; text-decoration: none; font-size: 13px; }
.mobile-download-qr img { display: block; box-sizing: border-box; width: min(208px, 100%); height: auto; margin: 0 auto 8px; border: 1px solid #e5e9ef; border-radius: 8px; background: #fff; }
.mobile-download-dialog .mobile-download-direct { display: block; padding: 12px 18px; border-radius: 8px; background: #536e8d; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.mobile-download-dialog .mobile-download-direct:hover { background: #425b77; color: #fff; text-decoration: none; }
.mobile-download-status { margin: 24px 0 12px; color: #687787; font-size: 14px; line-height: 1.7; }
.mobile-download-retry { margin-top: 8px; padding: 9px 22px; background: #f1f4f8; border: 1px solid #dce2e9; border-radius: 7px; color: #425b77; }
.mobile-download-dialog [hidden] { display: none !important; }
@media (max-width: 600px) {
  .mobile-download-entry { min-height: 40px; padding: 8px; }
  .profile-page .page-header { flex-wrap: wrap; gap: 10px; }
  .mobile-download-dialog { padding: 20px; }
}
