.ca-install-link {
  border: 1px solid #286c50;
  color: #fff;
  background: #286c50;
}

.ca-offline-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: min(380px, calc(100% - 36px));
  min-height: 48px;
  padding: 10px 11px 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8ddd9;
  border-radius: 8px;
  color: #202524;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 27, 25, .16);
  font: 700 .78rem/1.35 Inter, "Segoe UI", Arial, sans-serif;
}

.ca-offline-status[hidden] { display: none !important; }
.ca-offline-status__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #14854f;
  box-shadow: 0 0 0 4px rgba(20, 133, 79, .13);
}
.ca-offline-status__message { min-width: 0; flex: 1 1 auto; }
.ca-offline-status__action {
  min-height: 32px;
  padding: 0 10px;
  flex: 0 0 auto;
  border: 1px solid #cdd2cf;
  border-radius: 6px;
  color: #202524;
  background: #f7f8f6;
  font: inherit;
  cursor: pointer;
}
.ca-offline-status[data-state="offline"] .ca-offline-status__dot,
.ca-offline-status[data-state="error"] .ca-offline-status__dot {
  background: #c34c16;
  box-shadow: 0 0 0 4px rgba(195, 76, 22, .13);
}
.ca-offline-status[data-state="progress"] .ca-offline-status__dot {
  background: #e66a11;
  box-shadow: 0 0 0 4px rgba(230, 106, 17, .13);
  animation: ca-offline-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes ca-offline-pulse {
  from { opacity: .45; }
  to { opacity: 1; }
}

@media (max-width: 620px) {
  .ca-install-link { display: none; }
  .ca-offline-status {
    right: 10px;
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 74px));
    width: calc(100% - 20px);
    font-size: .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-offline-status__dot { animation: none !important; }
}
