/* Bottom sheet guiding the user through "Add to Home Screen".

   The sheet is dismissible without blocking the app: it is not a <dialog>, it does
   not trap focus, and it never covers the whole viewport, so a user who ignores it
   can keep trading. Pointer events stay on the card only. */

.pwa-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  transform: translateY(calc(100% + 20px));
  transition: transform 260ms cubic-bezier(0.32, 0.72, 0, 1);
}

.pwa-sheet.is-open {
  transform: translateY(0);
}

.pwa-sheet-body {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 40px 14px 14px;
  pointer-events: auto;
  background: #1b1f26;
  border: 1px solid #2c3239;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.46);
  color: #eaecef;
  font-size: 13px;
  line-height: 1.5;
}

.pwa-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.pwa-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.pwa-copy h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.pwa-lead {
  margin: 0 0 10px;
  color: #b7bdc6;
}

.pwa-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 19px;
  line-height: 1;
  color: #8b929c;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pwa-close:hover,
.pwa-close:focus-visible {
  color: #eaecef;
  background: #262b33;
}

.pwa-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pwa-steps li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #cfd4db;
}

.pwa-steps strong {
  color: #f0b90b;
  font-weight: 600;
}

.pwa-step-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: #262b33;
  border-radius: 7px;
  color: #d6dae0;
}

.pwa-step-icon svg {
  width: 15px;
  height: 15px;
}

.pwa-primary {
  width: 100%;
  margin-bottom: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 650;
  color: #16191d;
  background: #f0b90b;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pwa-primary:active {
  background: #d8a70a;
}

.pwa-hint {
  margin: 0;
  font-size: 12px;
  color: #8b929c;
}

.pwa-hint.is-emphasis {
  color: #f0b90b;
}

.pwa-inline-icon {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}

@media (prefers-reduced-motion: reduce) {
  .pwa-sheet {
    transition-duration: 1ms;
  }
}

/* Phone opened in a browser tab: cover the app until it is launched from the desktop. */
body.pwa-gated{overflow:hidden}
.pwa-gate{position:fixed;inset:0;z-index:2147483000;background:#fff;color:#1e2329;display:flex;align-items:center;justify-content:center;padding:24px 20px calc(24px + env(safe-area-inset-bottom,0px));overflow:auto;-webkit-overflow-scrolling:touch}
.pwa-gate-card{width:100%;max-width:380px;text-align:left}
.pwa-gate-card>.pwa-icon{display:block;margin:0 auto 14px;border-radius:15px}
.pwa-gate-card>h2{font-size:21px;font-weight:700;text-align:center;margin:0 0 10px}
.pwa-gate .pwa-lead{font-size:15px;line-height:1.55;color:#474d57;margin:0 0 14px;text-align:center}
.pwa-gate .pwa-steps{margin:0;padding:0;list-style:none;display:grid;gap:12px}
.pwa-gate .pwa-steps li{display:flex;gap:12px;align-items:flex-start;background:#f5f5f5;border-radius:12px;padding:12px;font-size:14px;line-height:1.5}
.pwa-gate .pwa-step-icon{flex:0 0 28px;height:28px;display:flex;align-items:center;justify-content:center;color:#1e2329}
.pwa-gate .pwa-step-icon svg{width:22px;height:22px}
.pwa-gate .pwa-primary{display:block;width:100%;height:46px;margin:16px 0 0;border:0;border-radius:10px;background:#fcd535;color:#1e2329;font-size:16px;font-weight:600}
.pwa-gate .pwa-hint{font-size:13px;color:#707a8a;margin:12px 0;text-align:center}
.pwa-gate .pwa-inline-icon{width:14px;height:14px;vertical-align:-2px}
.pwa-gate .pwa-steps li,.pwa-gate .pwa-steps li div{color:#1e2329}
.pwa-gate .pwa-steps strong,.pwa-gate .pwa-lead strong{color:#1e2329;font-weight:700}
.pwa-gate .pwa-step-icon{background:#fff;border-radius:8px;color:#1e2329}
.pwa-gate .pwa-step-icon svg{stroke:#1e2329}
.pwa-gate .pwa-download{display:flex;flex-direction:column;align-items:center;justify-content:center;height:54px;text-decoration:none;line-height:1.2}
.pwa-gate .pwa-download small{font-size:12px;font-weight:500;color:#5e6673;margin-top:2px}
#app-update-banner{position:fixed;left:50%;bottom:calc(72px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:2147483001;border:0;border-radius:20px;padding:9px 18px;background:#1e2329;color:#fff;font-size:14px;box-shadow:0 4px 16px rgba(0,0,0,.25)}
