/* Scoped to the opt-in installation controls: existing catalog styles stay intact. */
.pwa-button, .pwa-guide, .pwa-dialog, .pwa-telegram-help {
  --pwa-accent: var(--gold, #d7b56d);
  --pwa-surface: var(--point-public-top-background, #171211);
  box-sizing: border-box;
}
.pwa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--pwa-accent);
  border-radius: 12px;
  background: var(--pwa-accent);
  color: #17110a;
  font: inherit;
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}
.pwa-button:hover { filter: brightness(1.08); }
.pwa-button:focus-visible, .pwa-text-link:focus-visible, .pwa-close:focus-visible,
.pwa-guide select:focus-visible, .pwa-link-field:focus-visible {
  outline: 3px solid #f8f2e7;
  outline-offset: 4px;
}
.pwa-secondary { background: transparent; color: var(--pwa-accent); }
.pwa-primary { width: 100%; margin: 0 0 18px; }
.pwa-button:disabled { cursor: wait; opacity: .65; }
.topbar .pwa-button { margin-right: auto; box-shadow: 0 4px 20px #0005; }
.pwa-login-cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid #fff2; }
.pwa-login-cta p { margin: 0 0 12px; color: #c4b7a4; font-size: .9rem; line-height: 1.5; }
.pwa-guide {
  width: 100%;
  padding: clamp(24px, 5vw, 36px);
  background: var(--pwa-surface);
  color: #f8f2e7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
.pwa-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding-right: 15px; }
.pwa-brand > div { min-width: 0; }
.pwa-icon { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 16px; object-fit: cover; }
.pwa-eyebrow { margin: 0 0 6px; color: var(--pwa-accent); font-weight: 800; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.pwa-brand h1, .pwa-brand h2 { margin: 0; font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.18; letter-spacing: -.025em; }
.pwa-status { margin: 0 0 20px; font-size: .97rem; }
.pwa-browser-note { padding: 14px; border: 1px solid #d7b56d66; border-radius: 12px; }
.pwa-platform-picker { display: flex; gap: 12px; align-items: center; margin: 22px 0 18px; }
.pwa-platform-picker label { flex: 1; font-size: .83rem; color: #c4b7a4; font-weight: 500; }
.pwa-platform-picker select { width: auto; max-width: 60%; min-height: 44px; border: 1px solid #fff3; border-radius: 10px; padding: 8px; color: #f8f2e7; background: #100d0d; font: inherit; font-size: .9rem; }
.pwa-steps h3 { margin: 0 0 16px; font-size: 1rem; }
.pwa-steps ol { list-style: none; counter-reset: install-step; padding: 0; margin: 0; display: grid; gap: 16px; }
.pwa-steps li { counter-increment: install-step; display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.pwa-steps li::before { content: counter(install-step); flex: 0 0 28px; height: 28px; display: grid; place-items: center; border: 1px solid #d7b56d77; border-radius: 50%; color: var(--pwa-accent); font-size: .8rem; font-weight: 800; }
.pwa-steps > p, .pwa-note { color: #c4b7a4; font-size: .84rem; line-height: 1.6; }
.pwa-steps > p { margin: 18px 0 0; }
.pwa-note { margin: 22px 0; }
.pwa-guide-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 20px; border-top: 1px solid #fff2; }
.pwa-text-link { color: #f8f2e7; font-weight: 600; font-size: .88rem; text-underline-offset: 4px; line-height: 1.5; }
.pwa-footnote { margin: 18px 0 0; }
.pwa-link-field { box-sizing: border-box; width: 100%; margin-top: 14px; min-height: 48px; border: 1px solid #fff5; border-radius: 10px; background: #100d0d; color: #f8f2e7; padding: 10px; font: inherit; font-size: .85rem; }
.pwa-dialog {
  width: min(540px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #fff3;
  border-radius: 22px;
  background: var(--pwa-surface);
  color: #f8f2e7;
  box-shadow: 0 30px 100px #0008;
  overscroll-behavior: contain;
}
.pwa-dialog::backdrop { background: #000b; }
.pwa-dialog:not([open]) { display: none; }
.pwa-dialog .pwa-guide { padding-top: 56px; }
.pwa-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #f8f2e7; font-size: 28px; cursor: pointer; }
.pwa-install-page { background: #090707; }
.pwa-page-background { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; pointer-events: none; z-index: -1; }
.pwa-page-shell { width: min(100%, 540px); margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom)); }
.pwa-back { display: inline-block; margin: 0 0 20px; padding: 8px 0; }
.pwa-page-shell .pwa-guide { border: 1px solid #fff3; border-radius: 22px; box-shadow: 0 24px 80px #0006; }
.pwa-telegram-help { position: fixed; z-index: 9; top: max(78px, calc(env(safe-area-inset-top) + 70px)); left: 16px; width: min(380px, calc(100% - 32px)); padding: 40px 20px 20px; border: 1px solid #fff3; border-radius: 16px; background: var(--pwa-surface); color: #f8f2e7; box-shadow: 0 16px 50px #0008; }
.pwa-telegram-help p { font-size: .9rem; line-height: 1.5; }
.pwa-guide [hidden], .pwa-button[hidden], .pwa-link-field[hidden], .pwa-telegram-help[hidden] { display: none !important; }
@media (max-width: 359px) {
  .pwa-brand { gap: 10px; }
  .pwa-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 12px; }
  .pwa-guide { padding-left: 20px; padding-right: 20px; }
}
