#cloudGate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 15, 29, .82);
  backdrop-filter: blur(5px);
}
#cloudGate.hidden { display: none; }
#cloudGate .cloud-gate-card {
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  font-family: inherit;
}
#cloudGate .cloud-gate-card .hidden { display: none !important; }
#cloudGate h1 { margin: 0 0 8px; font-size: 22px; }
#cloudGate p { margin: 0 0 18px; color: #59677f; line-height: 1.5; }
#cloudGate label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
#cloudGate input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font: inherit;
}
#cloudGate button {
  padding: 11px 15px;
  border: 0;
  border-radius: 9px;
  background: #3568f5;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#cloudGate .cloud-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#cloudGate .cloud-actions .secondary { background: #e9eef8; color: #172033; }
#cloudLoginMessage { min-height: 20px; margin-top: 12px !important; color: #b42318 !important; font-size: 13px; }
#cloudSyncStatus {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #d8e0ed;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
}
#cloudSyncStatus.error { color: #b42318; }
#cloudSyncStatus button { border: 0; background: transparent; color: #3568f5; font: inherit; cursor: pointer; }
html[data-theme="dark"] #cloudGate .cloud-gate-card { border-color: #344154; background: #151f30; color: #eef3fb; }
html[data-theme="dark"] #cloudGate p { color: #b8c4d7; }
html[data-theme="dark"] #cloudGate input { border-color: #344154; background: #0f1724; color: #eef3fb; }
html[data-theme="dark"] #cloudGate .cloud-actions .secondary { background: #29364b; color: #eef3fb; }
html[data-theme="dark"] #cloudSyncStatus { border-color: #344154; background: #151f30; color: #eef3fb; }
