.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.account-button {
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-size: 12px;
  transition: border-color 180ms ease, background 180ms ease;
}

.account-button:hover,
.account-button.signed-in {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.account-cloud {
  color: #dcb4ef;
  font-size: 15px;
}

.account-avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #17131b;
  background: linear-gradient(145deg, #f7d8ea, #b7a8f4);
  font-size: 11px;
  font-weight: 750;
}

.cloud-hint {
  margin: -1px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(176, 213, 255, 0.13);
  border-radius: 13px;
  color: rgba(220, 230, 245, 0.58);
  background: rgba(118, 154, 205, 0.07);
  font-size: 10px;
}

.cloud-hint span {
  margin-right: 5px;
  color: #b8c9ec;
}

.auth-modal,
.account-modal {
  width: min(460px, 100%);
}

.auth-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -7px 0 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 30%, rgba(232, 121, 176, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.auth-orb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #18151b;
  background: linear-gradient(145deg, #fff, #d5b6f7);
  font-family: Georgia, serif;
  font-style: italic;
}

.auth-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
  line-height: 1.65;
}

.auth-tabs {
  margin-bottom: 18px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.43);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.auth-tabs button.active {
  color: #151219;
  background: rgba(255, 255, 255, 0.92);
}

.auth-submit {
  min-height: 48px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 16px;
  color: #18141b;
  background: linear-gradient(105deg, #fff, #efd2e4 48%, #c7c0ef);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.auth-submit:disabled,
.save-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.auth-error {
  min-height: 16px;
  margin: -6px 0 -3px;
  color: #f4a1b2;
  font-size: 11px;
}

.auth-privacy {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  font-size: 9px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.04);
}

.account-profile-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #17131b;
  background: linear-gradient(145deg, #f7d8ea, #b7a8f4);
  font-size: 17px;
  font-weight: 750;
}

.account-profile strong,
.account-profile small,
.sync-status strong,
.sync-status small {
  display: block;
}

.account-profile strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.account-profile small {
  color: rgba(255, 255, 255, 0.43);
  font-size: 11px;
}

.sync-status {
  margin: 13px 0 22px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(152, 213, 138, 0.065);
}

.sync-status strong {
  margin-bottom: 3px;
  font-size: 11px;
}

.sync-status small {
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
}

.logout-button {
  width: 100%;
  min-height: 45px;
  border: 1px solid rgba(255, 122, 146, 0.18);
  border-radius: 15px;
  color: #e9a0ae;
  background: rgba(255, 72, 105, 0.055);
  cursor: pointer;
  font-size: 11px;
}

.toast {
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px);
  position: fixed;
  left: 50%;
  bottom: 30px;
  max-width: calc(100% - 36px);
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(30, 28, 35, 0.93);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  color: #ffd5dc;
  border-color: rgba(255, 118, 143, 0.25);
}

@media (max-width: 720px) {
  .today-pill {
    display: none;
  }

  .account-button {
    min-height: 39px;
    padding: 0 9px;
  }

  .account-button:not(.signed-in) span:last-child,
  .account-name {
    display: none;
  }

  .account-avatar {
    width: 25px;
    height: 25px;
  }

  .toast {
    bottom: calc(91px + env(safe-area-inset-bottom));
    text-align: center;
  }
}
