.hm-shell .hm-hadith-card p:not(.hm-arabic),
.hm-shell .hm-recall p,
.hm-shell .hm-reveal > p:not(.hm-arabic) {
  font-family: var(--hm-english-font, inherit);
  font-size: var(--hm-english-size, 17px);
}
.lang-ur .hm-shell .hm-hadith-card p:not(.hm-arabic),
.lang-ur .hm-shell .hm-recall p,
.lang-ur .hm-shell .hm-reveal > p:not(.hm-arabic) {
  font-family: var(--hm-urdu-font, var(--urdu-font, serif));
  font-size: var(--hm-urdu-size, 19px);
}
.hm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
}
.hm-pagination button,
.hm-reset-settings {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #9fc2b4;
  border-radius: 10px;
  background: #fff;
  color: #086748;
  font: inherit;
  font-weight: 700;
}
.hm-pagination button:disabled { opacity: .45; }
.hm-actions > button:disabled { opacity: .72; cursor: default; box-shadow: none; }
.hm-reset-settings { justify-self: start; }

.hm-transfer {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--hm-line);
  border-radius: 16px;
  background: linear-gradient(135deg, #f6fbf8, #fffaf0);
}
.hm-transfer-actions {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}
.hm-transfer h2 { margin: 0 0 4px; font-size: 19px; }
.hm-transfer p { margin: 0; color: #58716b; }
.hm-transfer-actions > button,
.hm-file-button,
.hm-import-buttons button {
  min-height: 44px;
  border: 1px solid #9fc2b3;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  color: #075d42;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hm-file-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.hm-import-box {
  margin-top: 15px;
  padding: 16px;
  border: 1px solid #c7dcd3;
  border-radius: 13px;
  background: #fff;
}
.hm-import-box > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hm-import-box > header button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef5f1; font-size: 22px; }
.hm-import-options { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(280px, 1fr); gap: 13px; margin-top: 13px; }
.hm-import-options > label { display: grid; gap: 6px; }
.hm-import-options select { min-height: 44px; border: 1px solid #b9cec5; border-radius: 9px; padding: 8px; font: inherit; }
.hm-import-options .hm-check { display: flex; align-items: center; gap: 9px; }
.hm-import-options .hm-check input { position: static; opacity: 1; width: 20px; height: 20px; accent-color: #087a50; }
.hm-import-options .hm-check span { display: inline; width: auto; height: auto; border: 0; border-radius: 0; color: inherit; background: transparent; }
.hm-import-note { margin-top: 11px !important; padding: 10px 12px; border-radius: 9px; background: #fff8dc; color: #6d5612 !important; }
.hm-import-buttons { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.hm-import-buttons .btn { background: #087a50; color: #fff; border-color: #087a50; }
.hm-import-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.hm-import-summary > div { padding: 10px; text-align: center; border-radius: 10px; background: #f3f7f5; }
.hm-import-summary b, .hm-import-summary span { display: block; }
.hm-import-summary b { font-size: 21px; color: #075d42; }
.hm-import-summary span { font-size: 12px; color: #647871; }
.hm-import-summary.invalid { border: 1px solid #df9e95; border-radius: 12px; padding: 7px; }
.hm-import-errors { max-height: 220px; overflow: auto; margin: 12px 0 0; padding: 10px 30px; border-radius: 10px; background: #fff2ef; color: #902c23; }
.hm-import-errors li + li { margin-top: 7px; }

@media (max-width: 760px) {
  .hm-transfer-actions { grid-template-columns: 1fr; }
  .hm-transfer-actions > button, .hm-file-button { width: 100%; }
  .hm-import-options { grid-template-columns: 1fr; }
  .hm-import-summary { grid-template-columns: repeat(3, 1fr); }
}
