.ios-install-callout {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  width: min(calc(100% - 2rem), 42rem); margin: .55rem auto;
  padding: .5rem .85rem; flex: none; font: inherit; font-weight: bold;
  color: #fff5d4; background: linear-gradient(145deg, #176536, #00391e);
  border: 2px solid #e6bf56; border-radius: 14px; cursor: pointer;
}
.ios-install-callout img { display: block; width: 48px; height: 48px; flex: none; border-radius: 10px; }
.ios-install-callout:focus-visible { outline: 3px solid #fff; outline-offset: -4px; }
@media (prefers-reduced-motion: no-preference) {
  .ios-install-callout { animation: ios-install-pulse 2.8s ease-in-out infinite; }
  @keyframes ios-install-pulse {
    0%, 100% { box-shadow: 0 0 0 1px #e6bf5640; }
    50% { box-shadow: 0 0 7px 2px #ffdc83b0; }
  }
}
.offline-status {
  margin: .65rem auto;
  padding: .65rem 1rem;
  border: 1px solid #e6bf56;
  border-radius: .85rem;
  background: #104b34;
  color: #fff9e6;
  text-align: center;
}
.offline-status h2 { font-size: 1.08rem; margin: .25rem 0; }
.offline-status p { margin: .4rem 0; }
.offline-status progress { width: 100%; height: 1rem; accent-color: #e6bf56; }
.offline-status button { margin: .2rem; padding: .55rem .8rem; border: 0; border-radius: 8px; background: #efd18b; color: #103a26; font: inherit; }
.ios-transfer-choice { width: min(calc(100% - 2rem), 44rem); flex: none; }
.ios-transfer-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.ios-file-picker {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: .55rem .8rem; border-radius: 8px; background: #efd18b; color: #103a26; cursor: pointer;
}
.ios-file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ios-file-picker:focus-within { outline: 3px solid #fff; outline-offset: 2px; }
.ios-transfer-choice #iosOnline { color: #ffdc83; background: transparent; border: 1px solid #b99b50; min-height: 44px; }
.ios-transfer-export { margin-block: .7rem; border-top: 1px solid #b99b50; padding-top: .5rem; }
.ios-transfer-export button { min-height: 44px; font-weight: bold; }
.ios-transfer-export p:empty, .ios-transfer-choice p:empty { display: none; }
.public-footer { padding-bottom: max(.6rem, env(safe-area-inset-bottom)); }
main > .offline-status, main > .public-footer { margin-inline: 1rem; }
#socialMenu { margin: .65rem 0 0; }
#socialMenu .social a { display: block; cursor: pointer; }
#socialMenu [hidden], .offline-status[hidden], #offlineRetry[hidden] { display: none !important; }
#socialStatus { padding: .25rem .75rem; color: #ffdc83; }
.quran-reader { display: block; height: auto; }
.reader-viewport { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.quran-reader .public-footer { max-width: 44rem; margin: 0 auto; padding: .5rem .75rem max(.75rem, env(safe-area-inset-bottom)); }
.quran-reader #socialMenu { border: 1px solid #b99b50; background: #104b34; border-radius: .65rem; }
.quran-reader #socialMenu .panel { padding: .45rem; }
.quran-reader #socialMenu p { text-align: center; margin: .35rem; }
.quran-reader .social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; justify-items: center; }
.quran-reader .social a { width: min(100%, 115px); }
.quran-reader .social img { display: block; width: 100%; height: auto; }
.quran-reader #offlinePercent { font-size: 36px; color: #ffdc83; font-weight: bold; }
.quran-reader #offlineSignal { color: #ffdc83; font-size: 30px; animation: reader-pulse 1.4s ease-in-out infinite; }
@keyframes reader-pulse { 50% { opacity: .45; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) { .quran-reader #offlineSignal { animation: none; } }
