/* Immediate, shared HTML badges. No icon fonts or image requests. */
.app-store-badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 161px;
  height: 44px;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid #777;
  border-radius: 6px;
  background: #000;
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-family: Arial, 'IBM Plex Sans Arabic', sans-serif;
  text-align: left;
  direction: ltr;
  text-decoration: none;
  cursor: pointer;
}
.app-store-badge:hover, .site-footer--refresh .app-store-badge:hover { border-color: #c5c5c8; background: #000; color: #fff; }
.app-store-badge:focus-visible, .site-footer--refresh .app-store-badge:focus-visible, .app-install-dialog button:focus-visible { outline: 2px solid #dddde2; outline-offset: 4px; }
.app-store-icon { flex: 0 0 25px; width: 25px; height: 28px; color: #fff; }
.app-store-icon--android { height: 24px; }
.app-store-icon--microsoft { height: 29px; }
.app-store-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.app-store-copy small { color: #f5f5f5; font-size: 9px; line-height: 1.3; }
.app-store-copy strong { color: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; letter-spacing: -.3px; }

.app-install-dialog {
  position: fixed;
  inset: 0;
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #47474e;
  border-radius: 18px;
  background: linear-gradient(145deg, #232326 0%, #151517 42%, #111113 100%);
  box-shadow: inset 0 1px 0 #ffffff14, 0 28px 100px #000b;
  color: #f4f4f5;
  font-family: inherit;
  text-align: start;
  scrollbar-width: thin;
  scrollbar-color: #55555d transparent;
}
.app-install-dialog:not([open]), .app-install-dialog [hidden] { display: none !important; }
.app-install-dialog::backdrop { background: #050507d9; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
html.app-install-open { overflow: hidden; }
.app-install-close {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 20px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  background: #ffffff05;
  color: #aaaab3;
  cursor: pointer;
}
.app-install-close:hover { background: #ffffff0f; color: #fff; }
.app-install-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.app-install-heading { display: flex; align-items: center; gap: 12px; margin-inline-end: 40px; margin-bottom: 26px; }
.app-install-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #77778080; border-radius: 12px; background: linear-gradient(140deg, #ffffff17, #ffffff03); box-shadow: inset 0 1px 0 #ffffff14; }
.app-install-mark svg { width: 21px; height: 21px; fill: none; stroke: #e4e4e7; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.app-install-wordmark { font-size: 1.05rem; font-weight: 600; letter-spacing: -.4px; }
.app-install-wordmark b { color: #a1a1aa; }
.app-install-dialog h2 { margin: 0 0 10px; color: #f4f4f5; font: inherit; font-size: 1.65rem; font-weight: 600; line-height: 1.5; letter-spacing: -.6px; }
.app-install-dialog h2:focus { outline: none; }
html[dir="rtl"] .app-install-dialog h2 { letter-spacing: 0; }
.app-install-intro { margin: 0; color: #aaaab3; font-size: .9rem; line-height: 1.85; }
.app-install-options { display: grid; gap: 18px; margin-top: 28px; }
.app-install-options .app-install-choice { display: grid; grid-template-columns: 161px minmax(0, 1fr); align-items: center; gap: 22px; }
.app-install-choice > p { margin: 0; color: #a1a1aa; font-size: .78rem; line-height: 1.8; }
.app-install-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #ffffff14; color: #85858f; font-size: .75rem; line-height: 1.8; }
.app-install-back { padding: 4px 0; border: 0; background: none; color: #d4d4d8; font: inherit; cursor: pointer; }
.app-install-steps { display: grid; gap: 20px; margin: 26px 0; padding: 0; list-style: none; counter-reset: install-step; }
.app-install-steps li { display: flex; align-items: flex-start; gap: 14px; color: #d4d4d8; font-size: .9rem; line-height: 1.85; counter-increment: install-step; }
.app-install-steps li::before { content: counter(install-step, decimal-leading-zero); display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid #ffffff26; border-radius: 8px; color: #c4c4cc; font-size: .75rem; }
.app-install-done { display: block; min-height: 44px; margin-top: 24px; padding: 10px 24px; border: 1px solid #d4d4d8; border-radius: 8px; background: linear-gradient(145deg, #f4f4f5, #bdbdc5); box-shadow: inset 0 1px 0 #ffffffa6; color: #171719; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
@media (max-width: 440px) {
  .app-install-dialog { padding: 26px 22px 22px; border-radius: 16px; }
  .app-install-dialog h2 { font-size: 1.35rem; }
  .app-install-options .app-install-choice { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .app-install-heading { margin-bottom: 22px; }
}
