.ppd-pwa-entry[hidden], .ppd-pwa-panel[hidden] { display: none !important; }
.ppd-pwa-entry {
  position: fixed;
  z-index: 99999;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  display: grid;
  justify-items: end;
  gap: 10px;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.ppd-pwa-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 16px 8px 9px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 28px;
  background: rgba(0, 0, 60, .94);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 60, .24);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.ppd-pwa-launcher img { width: 34px; height: 34px; border-radius: 9px; }
.ppd-pwa-launcher[aria-expanded="true"] { display: none; }
.ppd-pwa-panel {
  position: relative;
  width: min(390px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 56px rgba(0, 0, 60, .2);
}
.ppd-pwa-heading { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 13px; padding-right: 25px; }
.ppd-pwa-heading img { width: 58px; height: 58px; border-radius: 13px; }
.ppd-pwa-heading strong, .ppd-pwa-heading span { display: block; }
.ppd-pwa-heading strong { color: #00003c; font-size: 18px; line-height: 1.25; }
.ppd-pwa-heading span { margin-top: 4px; color: #4f5866; font-size: 13px; line-height: 1.35; }
.ppd-pwa-panel > p { margin: 17px 0 10px; color: #343d4b; font-size: 14px; line-height: 1.5; }
.ppd-pwa-steps { margin: 0; padding-left: 22px; color: #343d4b; font-size: 14px; line-height: 1.45; }
.ppd-pwa-steps li + li { margin-top: 6px; }
.ppd-pwa-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.ppd-pwa-primary, .ppd-pwa-secondary { min-height: 40px; border-radius: 6px; padding: 0 15px; font-weight: 700; cursor: pointer; }
.ppd-pwa-primary { border: 0; background: #00003c; color: #fff; }
.ppd-pwa-primary:disabled { background: #d9dce5; color: #555d6d; cursor: wait; }
.ppd-pwa-secondary { border: 1px solid #cfd4de; background: #fff; color: #00003c; }
.ppd-pwa-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #4f5866; font-size: 25px; line-height: 1; cursor: pointer; }
.ppd-pwa-progress { padding: 12px 2px 4px; text-align: center; }
.ppd-pwa-progress-icon { position: relative; display: grid; width: 116px; height: 116px; margin: 0 auto 18px; place-items: center; }
.ppd-pwa-progress-icon img { position: relative; z-index: 1; width: 82px; height: 82px; border-radius: 19px; box-shadow: 0 8px 24px rgba(0, 0, 60, .18); }
.ppd-pwa-progress-ring { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #00003c 0deg 12deg, transparent 12deg 22deg, #a29368 22deg 30deg, transparent 30deg 43deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); animation: ppd-pwa-spin 1.15s linear infinite; }
.ppd-pwa-progress strong { display: block; color: #00003c; font-size: 19px; }
.ppd-pwa-progress > p { max-width: 290px; margin: 7px auto 17px; color: #4f5866; font-size: 14px; line-height: 1.45; }
.ppd-pwa-progress-track { width: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: #e7e9f0; }
.ppd-pwa-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #00003c; transition: width .28s ease; }
.ppd-pwa-progress-value { display: block; margin-top: 8px; color: #343d4b; font-size: 13px; font-weight: 750; }
.ppd-pwa-panel.is-installing .ppd-pwa-close,
.ppd-pwa-panel.is-installing .ppd-pwa-heading,
.ppd-pwa-panel.is-installing > #ppd-pwa-message,
.ppd-pwa-panel.is-installing > .ppd-pwa-steps,
.ppd-pwa-panel.is-installing > .ppd-pwa-actions { display: none; }
.ppd-pwa-panel.is-complete .ppd-pwa-progress-ring { animation: none; background: #24845b; }
.ppd-pwa-panel.is-complete .ppd-pwa-progress-track span { background: #24845b; }
@keyframes ppd-pwa-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ppd-pwa-progress-ring { animation-duration: 2.5s; } }
.ppd-pwa-onboarding[hidden], .ppd-pwa-onboarding-slide[hidden] { display: none !important; }
.ppd-pwa-onboarding { position: fixed; z-index: 100000; inset: 0; overflow: auto; background: #f7f8fc; color: #111827; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; opacity: 0; transition: opacity .22s ease; }
.ppd-pwa-onboarding.is-visible { opacity: 1; }
.ppd-pwa-onboarding.is-leaving { opacity: 0; }
.ppd-pwa-onboarding-shell { position: relative; display: grid; grid-template-rows: 1fr auto auto; width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; padding: max(56px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom)); background: #fff; }
.ppd-pwa-onboarding-skip { position: absolute; z-index: 2; top: max(16px, env(safe-area-inset-top)); right: 18px; min-height: 38px; padding: 0 10px; border: 0; background: transparent; color: #343d4b; font-size: 14px; font-weight: 700; cursor: pointer; }
.ppd-pwa-onboarding-viewport { display: grid; align-items: center; min-width: 0; touch-action: pan-y; }
.ppd-pwa-onboarding-slide { min-width: 0; animation: ppd-pwa-slide-in .28s ease both; }
.ppd-pwa-onboarding-visual { display: grid; width: 100%; max-height: 48dvh; aspect-ratio: 1 / 1; overflow: hidden; place-items: center; border-radius: 8px; background: #f0f2f7; }
.ppd-pwa-onboarding-visual img { width: 100%; height: 100%; object-fit: contain; }
.ppd-pwa-onboarding-slide.has-default-image .ppd-pwa-onboarding-visual img { width: min(48%, 210px); height: auto; border-radius: 28px; box-shadow: 0 18px 44px rgba(0, 0, 60, .18); }
.ppd-pwa-onboarding-copy { padding: 24px 4px 8px; text-align: center; }
.ppd-pwa-onboarding-copy h2 { margin: 0; color: #00003c; font-size: 28px; line-height: 1.18; letter-spacing: 0; }
.ppd-pwa-onboarding-copy p { margin: 12px auto 0; max-width: 410px; color: #434c5b; font-size: 16px; line-height: 1.55; }
.ppd-pwa-onboarding-dots { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 8px; }
.ppd-pwa-onboarding-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c6cad5; cursor: pointer; transition: width .2s ease, border-radius .2s ease, background .2s ease; }
.ppd-pwa-onboarding-dots button[aria-current="step"] { width: 26px; border-radius: 5px; background: #00003c; }
.ppd-pwa-onboarding-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding-top: 10px; }
.ppd-pwa-onboarding-actions button { min-height: 50px; border-radius: 7px; padding: 0 20px; font-size: 15px; font-weight: 750; cursor: pointer; }
.ppd-pwa-onboarding-back { border: 1px solid #cfd4de; background: #fff; color: #00003c; }
.ppd-pwa-onboarding-next { border: 0; background: #00003c; color: #fff; }
.ppd-pwa-onboarding-back[hidden] + .ppd-pwa-onboarding-next { grid-column: 1 / -1; }
@keyframes ppd-pwa-slide-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .ppd-pwa-onboarding, .ppd-pwa-onboarding-slide { transition: none; animation: none; } }
@media (max-width: 760px) {
  .ppd-pwa-entry { right: 12px; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .ppd-pwa-panel { width: calc(100vw - 24px); padding: 17px; }
  .ppd-pwa-launcher { min-height: 48px; padding: 7px 14px 7px 8px; }
  .ppd-pwa-launcher img { width: 32px; height: 32px; }
}
