/* زر التثبيت ودليله وشاشة البداية: تعمل فوق أي ثيمة صفحة */
.ms-install { cursor: pointer; }
.ms-install[hidden] { display: none !important; }
button.header-action-btn.ms-install, button.btn-topbar-link.ms-install { font-family: inherit; }

#msPwaSplash { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-family: Tajawal, Tahoma, system-ui, sans-serif; transition: opacity .3s ease; }
#msPwaSplash.is-out { opacity: 0; pointer-events: none; }
#msPwaSplash img { width: min(160px, 40vw); height: min(160px, 40vw); object-fit: contain; }
#msPwaSplash strong { font-size: 1.3rem; font-weight: 800; }
#msPwaSplash i { width: 26px; height: 26px; border: 3px solid currentColor; border-top-color: transparent; border-radius: 50%; opacity: .7; animation: ms-pwa-spin .8s linear infinite; }
@keyframes ms-pwa-spin { to { transform: rotate(360deg); } }

.ms-guide { width: min(92vw, 440px); padding: 24px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: #1d1d1d; color: #ececec; font-family: Tajawal, Tahoma, system-ui, sans-serif; }
.ms-guide::backdrop { background: rgba(0, 0, 0, .65); }
.ms-guide h2 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; }
.ms-guide p { margin: 0 0 12px; color: #c4c4c4; font-size: .92rem; line-height: 1.75; }
.ms-guide ol { margin: 0 0 14px; padding-inline-start: 20px; font-size: .92rem; line-height: 1.9; }
.ms-guide-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ms-guide-links a, .ms-guide button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 9px; background: transparent; color: #ececec; font: 700 .88rem Tajawal, Tahoma, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.ms-guide-links a { background: #00c1cd; border-color: #00c1cd; color: #052326; }
.ms-guide button:hover { background: rgba(255, 255, 255, .08); }

.ms-toast { position: fixed; inset-block-end: 20px; inset-inline-start: 50%; z-index: 2147483001; max-width: min(92vw, 420px); padding: 12px 18px; border: 1px solid #00c1cd; border-radius: 10px; background: #262626; color: #ececec; font: 600 .9rem Tajawal, Tahoma, system-ui, sans-serif; transform: translateX(50%); }

@media (max-width: 720px) {
  .ms-install-label { display: none; }
}

/* زر الربط مع Claude: أيقونة فقط على الشاشات الصغيرة */
@media (max-width: 720px) {
  .ms-claude-label { display: none; }
}
