/* Home-screen install hint + standalone polish. Does not restyle app chrome. */
.cn-pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  background: #fff;
  color: #1b2430;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  box-sizing: border-box;
}

.cn-pwa-banner[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .cn-pwa-banner {
    left: auto;
    right: 16px;
    width: min(420px, calc(100vw - 32px));
  }
}

.cn-pwa-title {
  font-weight: 700;
  font-size: 15px;
  color: #7e57c2;
  margin: 0 0 4px;
}

.cn-pwa-note {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.cn-pwa-steps {
  margin: 0 0 10px;
  padding-left: 1.15rem;
  color: #374151;
}

.cn-pwa-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cn-pwa-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #1f6fd6;
  color: #fff;
}

.cn-pwa-btn:hover {
  background: #195bb1;
}

.cn-pwa-dismiss {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.cn-pwa-dismiss:hover {
  background: #f8fafc;
}

.cn-pwa-use-app-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}

.cn-pwa-use-app-note .cn-pwa-title {
  margin: 0 0 6px;
}

.cn-pwa-use-app-note .cn-pwa-text {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.45;
}

body.cn-pwa-use-app form,
body.cn-pwa-use-app .oauth-block {
  opacity: 0.45;
  pointer-events: none;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  html {
    min-height: 100dvh;
  }

  body {
    overscroll-behavior-y: contain;
  }
}
