/* BeeHive "updating" standby: the full page and the in-app overlay share this file.
   Kept free of modern-only syntax so old iPhones (Safari 12+) and Android Chrome render it. */
.bh-up {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  background: #f5f7fb;
  background-image: -webkit-linear-gradient(top, #eef3ff 0%, #f5f7fb 60%);
  background-image: linear-gradient(180deg, #eef3ff 0%, #f5f7fb 60%);
  color: #17243a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}
.bh-up *, .bh-up *::before, .bh-up *::after { -webkit-box-sizing: border-box; box-sizing: border-box; }
.bh-up-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2147483000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.bh-up-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 24px 28px;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  background: #fff;
  -webkit-box-shadow: 0 12px 32px rgba(20, 35, 65, .10);
  box-shadow: 0 12px 32px rgba(20, 35, 65, .10);
}
.bh-up-logo {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
}
.bh-up-logo img {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  margin: 12px auto 0;
  -o-object-fit: contain;
  object-fit: contain;
}
.bh-up-ring {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px solid #f5b301;
  opacity: .5;
  -webkit-animation: bh-up-pulse 2.4s ease-out infinite;
  animation: bh-up-pulse 2.4s ease-out infinite;
}
.bh-up-ring2 { -webkit-animation-delay: 1.2s; animation-delay: 1.2s; }
.bh-up h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #000e49;
}
.bh-up-sub { margin: 0 0 18px; font-size: 16px; line-height: 1.45; color: #4a5d78; }
.bh-up-dots { margin: 0 0 16px; height: 12px; }
.bh-up-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  background: #2563eb;
  -webkit-animation: bh-up-bounce 1.2s ease-in-out infinite;
  animation: bh-up-bounce 1.2s ease-in-out infinite;
}
.bh-up-dots span:nth-child(2) { background: #f5b301; -webkit-animation-delay: .2s; animation-delay: .2s; }
.bh-up-dots span:nth-child(3) { -webkit-animation-delay: .4s; animation-delay: .4s; }
.bh-up-status { margin: 0 0 4px; font-size: 14px; color: #60738f; min-height: 20px; }
.bh-up-checked { margin: 0 0 20px; font-size: 13px; color: #7a8aa3; min-height: 18px; }
.bh-up-actions { margin: 0 0 18px; }
.bh-up-btn {
  display: inline-block;
  min-height: 44px;
  margin: 4px;
  padding: 11px 22px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.bh-up-btn:hover { background: #1d4ed8; }
.bh-up-btn-quiet { background: transparent; color: #2563eb; border: 1px solid #c7d6f5; }
.bh-up-btn-quiet:hover { background: #eef3ff; }
.bh-up-btn:focus { outline: 3px solid #93c5fd; outline-offset: 2px; }
.bh-up-safe { margin: 0; font-size: 14px; font-weight: 600; color: #1f7a4d; }
.bh-up-hidden { display: none !important; }
body.bh-up-lock { overflow: hidden; }

@-webkit-keyframes bh-up-bounce { 0%, 80%, 100% { -webkit-transform: translateY(0); opacity: .45; } 40% { -webkit-transform: translateY(-6px); opacity: 1; } }
@keyframes bh-up-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-6px); opacity: 1; } }
@-webkit-keyframes bh-up-pulse { 0% { -webkit-transform: scale(.78); opacity: .6; } 100% { -webkit-transform: scale(1.12); opacity: 0; } }
@keyframes bh-up-pulse { 0% { transform: scale(.78); opacity: .6; } 100% { transform: scale(1.12); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .bh-up-ring, .bh-up-dots span { -webkit-animation: none; animation: none; }
  .bh-up-dots span { opacity: 1; }
}

@media (prefers-color-scheme: dark) {
  .bh-up { background: #0b1220; background-image: -webkit-linear-gradient(top, #0f1b3a 0%, #0b1220 60%); background-image: linear-gradient(180deg, #0f1b3a 0%, #0b1220 60%); color: #e6ecf7; }
  .bh-up-card { background: #131c30; border-color: #26324d; -webkit-box-shadow: 0 12px 32px rgba(0, 0, 0, .45); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
  .bh-up h1 { color: #fff; }
  .bh-up-sub { color: #b7c3d9; }
  .bh-up-status { color: #9fb0cb; }
  .bh-up-checked { color: #8a9bb8; }
  .bh-up-safe { color: #5fd39b; }
  .bh-up-btn-quiet { color: #9cc0ff; border-color: #34466b; }
  .bh-up-btn-quiet:hover { background: #1a2644; }
}
